Debian 11: python-apt is not available

This commit is contained in:
Reilly Brogan 2021-08-10 14:33:48 -05:00
parent c2ff89a4a2
commit 13e2b54abc
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (b *MiscUtilsBuilder) Build(c *fi.ModelBuilderContext) error {
packages = append(packages, "apt-transport-https")
// 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)
} else {
packages = append(packages, "python-apt")