mirror of https://github.com/kubernetes/kops.git
Debian 11: python-apt is not available
This commit is contained in:
parent
c2ff89a4a2
commit
13e2b54abc
|
|
@ -51,7 +51,7 @@ func (b *MiscUtilsBuilder) Build(c *fi.ModelBuilderContext) error {
|
||||||
packages = append(packages, "apt-transport-https")
|
packages = append(packages, "apt-transport-https")
|
||||||
|
|
||||||
// TODO: Do we really need python-apt?
|
// TODO: Do we really need python-apt?
|
||||||
if b.Distribution.IsUbuntu() && b.Distribution.Version() >= 20.10 {
|
if (b.Distribution.IsUbuntu() && b.Distribution.Version() >= 20.10) || (!b.Distribution.IsUbuntu() && b.Distribution.Version() >= 11) {
|
||||||
// python-apt not available (though python3-apt is)
|
// python-apt not available (though python3-apt is)
|
||||||
} else {
|
} else {
|
||||||
packages = append(packages, "python-apt")
|
packages = append(packages, "python-apt")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue