osrf / docker_images

A repository to hold definitions of docker images maintained by OSRF
Apache License 2.0
579 stars 172 forks source link

osrf/ros:rolling-desktop can't install udev, due to unmet dependencies #627

Closed ErikAtApex closed 2 years ago

ErikAtApex commented 2 years ago

Steps to reproduce

$ docker pull osrf/ros:rolling-desktop
$ docker run -it osrf/ros:rolling-desktop bash
# apt-get update
# apt-get install udev

Error

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:
 udev : Depends: libudev1 (= 249.11-0ubuntu3) but 249.11-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Other notes

This works fine in ubuntu:jammy, on which osrf/ros:rolling-desktop is based. Thanks for any suggestions!

ruffsl commented 2 years ago

Perhaps you pulled an old image that was out of sync with upstream? I can not seem to reproduce this now:

``` ruffsl@burano:~$ docker pull osrf/ros:rolling-desktop rolling-desktop: Pulling from osrf/ros 405f018f9d1d: Already exists 80d1d4bf62a3: Already exists 9b5c906965a7: Already exists f4c1af53ce2d: Already exists 8b8d3945eb76: Already exists 8c9c71936f08: Already exists 6ba72d83ed0d: Already exists e141275ac844: Already exists 7ecab1f16ec2: Already exists 3e01aa968f97: Already exists 69cf2ef0c2f0: Already exists 2e917b72852b: Pull complete Digest: sha256:e336bdcb0a3295840ad4a18fce62b2d4d464a03d5cd4178cb023feca7fd517ec Status: Downloaded newer image for osrf/ros:rolling-desktop docker.io/osrf/ros:rolling-desktop ruffsl@burano:~$ docker run -it --rm osrf/ros:rolling-desktop root@2348f68a8f0f:/# apt update Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:3 http://packages.ros.org/ros2/ubuntu jammy InRelease [4670 B] Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB] Get:5 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [94.9 kB] Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB] Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB] Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [212 kB] Get:9 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4648 B] Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [238 kB] Get:11 http://packages.ros.org/ros2/ubuntu jammy/main amd64 Packages [631 kB] Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB] Get:13 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB] Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB] Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [4648 B] Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [406 kB] Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [162 kB] Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [250 kB] Get:19 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [5157 B] Fetched 22.3 MB in 1s (16.5 MB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 43 packages can be upgraded. Run 'apt list --upgradable' to see them. W: http://packages.ros.org/ros2/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. root@2348f68a8f0f:/# apt install udev Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libpam-systemd libsystemd0 libudev-dev libudev1 systemd systemd-sysv Suggested packages: systemd-container libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 policykit-1 Recommended packages: networkd-dispatcher systemd-timesyncd | time-daemon libnss-systemd The following NEW packages will be installed: udev The following packages will be upgraded: libpam-systemd libsystemd0 libudev-dev libudev1 systemd systemd-sysv 6 upgraded, 1 newly installed, 0 to remove and 37 not upgraded. Need to get 6766 kB of archives. After this operation, 9787 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd-sysv amd64 249.11-0ubuntu3.3 [10.5 kB] Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpam-systemd amd64 249.11-0ubuntu3.3 [203 kB] Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd amd64 249.11-0ubuntu3.3 [4579 kB] Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsystemd0 amd64 249.11-0ubuntu3.3 [318 kB] Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libudev-dev amd64 249.11-0ubuntu3.3 [20.7 kB] Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libudev1 amd64 249.11-0ubuntu3.3 [77.4 kB] Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 udev amd64 249.11-0ubuntu3.3 [1557 kB] Fetched 6766 kB in 0s (14.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 113883 files and directories currently installed.) Preparing to unpack .../systemd-sysv_249.11-0ubuntu3.3_amd64.deb ... Unpacking systemd-sysv (249.11-0ubuntu3.3) over (249.11-0ubuntu3.1) ... Preparing to unpack .../libpam-systemd_249.11-0ubuntu3.3_amd64.deb ... Unpacking libpam-systemd:amd64 (249.11-0ubuntu3.3) over (249.11-0ubuntu3.1) ... Preparing to unpack .../systemd_249.11-0ubuntu3.3_amd64.deb ... Unpacking systemd (249.11-0ubuntu3.3) over (249.11-0ubuntu3.1) ... Preparing to unpack .../libsystemd0_249.11-0ubuntu3.3_amd64.deb ... Unpacking libsystemd0:amd64 (249.11-0ubuntu3.3) over (249.11-0ubuntu3.1) ... Setting up libsystemd0:amd64 (249.11-0ubuntu3.3) ... (Reading database ... 113883 files and directories currently installed.) Preparing to unpack .../libudev-dev_249.11-0ubuntu3.3_amd64.deb ... Unpacking libudev-dev:amd64 (249.11-0ubuntu3.3) over (249.11-0ubuntu3.1) ... Preparing to unpack .../libudev1_249.11-0ubuntu3.3_amd64.deb ... Unpacking libudev1:amd64 (249.11-0ubuntu3.3) over (249.11-0ubuntu3.1) ... Setting up libudev1:amd64 (249.11-0ubuntu3.3) ... Selecting previously unselected package udev. (Reading database ... 113883 files and directories currently installed.) Preparing to unpack .../udev_249.11-0ubuntu3.3_amd64.deb ... Unpacking udev (249.11-0ubuntu3.3) ... Setting up systemd (249.11-0ubuntu3.3) ... /usr/lib/tmpfiles.d/static-nodes-permissions.conf:17: Failed to resolve group 'kvm'. /usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to resolve group 'kvm'. /usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to resolve group 'kvm'. Setting up udev (249.11-0ubuntu3.3) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of start. Setting up libudev-dev:amd64 (249.11-0ubuntu3.3) ... Setting up systemd-sysv (249.11-0ubuntu3.3) ... Setting up libpam-systemd:amd64 (249.11-0ubuntu3.3) ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.) debconf: falling back to frontend: Readline Processing triggers for dbus (1.12.20-2ubuntu4) ... Processing triggers for libc-bin (2.35-0ubuntu3) ... root@2348f68a8f0f:/# ```
ErikAtApex commented 2 years ago

@ruffsl This error occurred on both our CI pipelines, and my local machine, for several hours. I just pulled again this morning, and it is working again, in both places. Thanks for checking!