[Bug 1983171] [NEW] apt-get install can fail for language-pack-XX due to phased updates
Gunnar Kreitz
1983171 at bugs.launchpad.net
Sat Jul 30 11:28:32 UTC 2022
Public bug reported:
Language packs in Ubuntu are packaged as a package language-pack-XX
which depends on language-pack-XX-base. Currently, language-pack-sv and
language-pack-sv-base are both on a phased update. Due to how these
packages depend on each other, apt-get install language-pack-sv may fail
(depending on machine-id and apt config) if a machine gets the most
recent package of language-pack-sv, but is held back due to phasing for
language-pack-sv-base.
```
root at 1232eabd9c61:/etc/apt# apt policy language-pack-sv language-pack-sv-base
language-pack-sv:
Installed: (none)
Candidate: 1:22.04+20220721
Version table:
1:22.04+20220721 500 (phased 70%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
1:22.04+20220415 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
language-pack-sv-base:
Installed: (none)
Candidate: 1:22.04+20220415
Version table:
1:22.04+20220721 1 (phased 70%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
1:22.04+20220415 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
root at 1232eabd9c61:/# apt-get install language-pack-sv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
language-pack-sv : Depends: language-pack-sv-base (>= 1:22.04+20220721) but 1:22.04+20220415 is to be installed
E: Unable to correct problems, you have held broken packages.
```
Setting `APT::Get::Always-Include-Phased-Updates true;` in a file
/etc/apt/apt.conf.d/98-no-phased works around the issue.
N.B., This happened for us in CI, I was able to reproduce on a docker
image, but was not able to run ubuntu-bug on that machine, so ubuntu-bug
was run on a different machine. Sorry for the inconvenience.
Version information from the machine where I reproduced the error:
```
root at 1232eabd9c61:/etc/apt# lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
root at 1232eabd9c61:/etc/apt# apt-cache policy apt
apt:
Installed: 2.4.5
Candidate: 2.4.6
Version table:
2.4.6 500 (phased 80%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
*** 2.4.5 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
```
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: apt 2.4.6
ProcVersionSignature: Ubuntu 5.15.0-40.43-generic 5.15.35
Uname: Linux 5.15.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: Regolith:GNOME-Flashback:GNOME
Date: Sat Jul 30 13:16:04 2022
InstallationDate: Installed on 2022-07-08 (22 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug jammy
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1983171
Title:
apt-get install can fail for language-pack-XX due to phased updates
Status in apt package in Ubuntu:
New
Bug description:
Language packs in Ubuntu are packaged as a package language-pack-XX
which depends on language-pack-XX-base. Currently, language-pack-sv
and language-pack-sv-base are both on a phased update. Due to how
these packages depend on each other, apt-get install language-pack-sv
may fail (depending on machine-id and apt config) if a machine gets
the most recent package of language-pack-sv, but is held back due to
phasing for language-pack-sv-base.
```
root at 1232eabd9c61:/etc/apt# apt policy language-pack-sv language-pack-sv-base
language-pack-sv:
Installed: (none)
Candidate: 1:22.04+20220721
Version table:
1:22.04+20220721 500 (phased 70%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
1:22.04+20220415 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
language-pack-sv-base:
Installed: (none)
Candidate: 1:22.04+20220415
Version table:
1:22.04+20220721 1 (phased 70%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
1:22.04+20220415 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
root at 1232eabd9c61:/# apt-get install language-pack-sv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
language-pack-sv : Depends: language-pack-sv-base (>= 1:22.04+20220721) but 1:22.04+20220415 is to be installed
E: Unable to correct problems, you have held broken packages.
```
Setting `APT::Get::Always-Include-Phased-Updates true;` in a file
/etc/apt/apt.conf.d/98-no-phased works around the issue.
N.B., This happened for us in CI, I was able to reproduce on a docker
image, but was not able to run ubuntu-bug on that machine, so ubuntu-
bug was run on a different machine. Sorry for the inconvenience.
Version information from the machine where I reproduced the error:
```
root at 1232eabd9c61:/etc/apt# lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
root at 1232eabd9c61:/etc/apt# apt-cache policy apt
apt:
Installed: 2.4.5
Candidate: 2.4.6
Version table:
2.4.6 500 (phased 80%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
*** 2.4.5 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
```
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: apt 2.4.6
ProcVersionSignature: Ubuntu 5.15.0-40.43-generic 5.15.35
Uname: Linux 5.15.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: Regolith:GNOME-Flashback:GNOME
Date: Sat Jul 30 13:16:04 2022
InstallationDate: Installed on 2022-07-08 (22 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1983171/+subscriptions
More information about the foundations-bugs
mailing list