apt-get failure with libgbm1-22.0.1-1ubuntu2.1

Asked by Brandon Chinn

We started getting the following failures in CI when installing libgbm-dev:

libgbm-dev : Depends: libgbm1 (= 22.0.1-1ubuntu2) but 22.0.1-1ubuntu2.1 is to be installed

Looking at the logs, libgbm1-22.0.1-1ubuntu2.1 was installed in June 2022, so I'm not sure why this started failing today.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu mesa Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the following commands:

uname -a
lsb_release -crid
apt policy libgbm-dev libgbm1
sudo apt update
apt policy libgbm-dev libgbm1

My expectation is that an update installs version 22.0.5-0ubuntu0.3

Revision history for this message
Brandon Chinn (brandon-leapyear) said :
#2

I see that before `sudo apt update`, libgbm-dev and libgbm1 both have 22.0.1-1ubuntu2.1, but after, libgbm-dev removes 22.0.1-1ubuntu2.1.

============================

$ uname -a
Linux ip-10-10-20-200 5.15.0-1014-aws #18-Ubuntu SMP Wed Jun 15 20:04:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

$ apt policy libgbm-dev libgbm1
libgbm-dev:
  Installed: (none)
  Candidate: 22.0.1-1ubuntu2.1
  Version table:
     22.0.1-1ubuntu2.1 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     22.0.1-1ubuntu2 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     21.2.6-0ubuntu0.1~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
libgbm1:
  Installed: 22.0.1-1ubuntu2.1
  Candidate: 22.0.1-1ubuntu2.1
  Version table:
 *** 22.0.1-1ubuntu2.1 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     22.0.1-1ubuntu2 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     21.2.6-0ubuntu0.1~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages

$ sudo apt update
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 https://download.docker.com/linux/ubuntu jammy InRelease [48.9 kB]
Get:2 https://cli-assets.heroku.com/apt ./ InRelease [2,550 B]
Get:7 https://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:9 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease [23.8 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [801 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [178 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [12.0 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [527 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [80.6 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [552 B]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [783 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [135 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [14.6 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [7,988 B]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [2,448 B]
Hit:21 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu jammy InRelease
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [432 B]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3,324 B]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [1,580 B]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [272 B]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [6,748 B]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [9,460 B]
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [348 B]
Get:29 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages [11.2 kB]
Get:30 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [558 kB]
Get:31 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [118 kB]
Get:32 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [7,572 B]
Get:33 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [489 kB]
Get:34 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [74.9 kB]
Get:35 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [556 B]
Get:36 https://cli-assets.heroku.com/apt ./ Packages [624 B]
Get:37 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [627 kB]
Get:38 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [83.7 kB]
Get:39 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [11.0 kB]
Get:40 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4,268 B]
Get:41 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [972 B]
Get:42 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [228 B]
Get:43 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,062 B]
Get:44 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,303 kB]
Get:45 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [399 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.2 kB]
Get:47 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy/main amd64 Packages [2,832 B]
Fetched 7,787 kB in 2s (3,431 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
251 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://cli-assets.heroku.com/apt/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

$ apt policy libgbm-dev libgbm1
libgbm-dev:
  Installed: (none)
  Candidate: 22.0.1-1ubuntu2
  Version table:
     22.0.5-0ubuntu0.3 1 (phased 20%)
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
     22.0.1-1ubuntu2 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     21.2.6-0ubuntu0.1~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
libgbm1:
  Installed: 22.0.1-1ubuntu2.1
  Candidate: 22.0.1-1ubuntu2.1
  Version table:
     22.0.5-0ubuntu0.3 1 (phased 20%)
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
 *** 22.0.1-1ubuntu2.1 100
        100 /var/lib/dpkg/status
     22.0.1-1ubuntu2 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     21.2.6-0ubuntu0.1~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages

$ sudo apt-get install libgbm-dev
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:
 libgbm-dev : Depends: libgbm1 (= 22.0.1-1ubuntu2) but 22.0.1-1ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Revision history for this message
Best Manfred Hampl (m-hampl) said (last edit ):
#3

1. Your package management configuration is not correct. You are running Ubuntu jammy, but you are also loading the package list for focal-updates. (This probably has no effect on your current problem.)

2. Before trying to install additional packages or installing updates you should update the local copy of the package inventory (e.g. with the "apt update" command). See the difference in output of the apt policy command

3. Currently there is a version update for the libgbm packages in progress, and there is a known problem covering your case (sorry, I can't find the bug number)
see also https://people.canonical.com/~ubuntu-archive/phased-updates.html
The simple solution is waiting for the phased update to complete, this should take maximum 36 hours from now.
If you need the libgbm-dev package immediately, then you can either manually download and install it (in version 22.0.1-1ubuntu2.1 e.g. from https://launchpad.net/ubuntu/+source/mesa/22.0.1-1ubuntu2.1/+build/23741068 ), or you can add certain options (APT::Get::Always-Include-Phased-Updates = true) to the apt install command.

Revision history for this message
Brandon Chinn (brandon-leapyear) said :
#4

1. Hm interesting. We're just using the base Circle CI ubuntu AMI, so it's probably Circle CI needing to fix their config. Regardless, probably unrelated to this issue
2. We do run `apt-get update`. Notice how installing libgbm-dev still fails after running apt-get update
3. ah I see, I didn't realize that phased updates were a thing. I'm surprised it takes so long, though. For now, I just downgraded the package (apt-get install libgbm-dev libgbm1=22.0.1-1ubuntu2 --allow-downgrades), since 36 hours is too long for our CI to be broken. But good to know that we can remove this workaround shortly.

Thank you!

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Re: "I'm surprised it takes so long, though."
In the phased updates process there is an increase by 10% every 6 hours, that gives a maximum time span of 2 1/2 days.