apt-get dist-upgrade failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Julian Andres Klode | ||
dpkg (Ubuntu) |
Fix Released
|
Medium
|
Julian Andres Klode | ||
packagekit (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
python-apt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hello, something went amiss with a recent apt-get -u dist-upgrade:
root@wopr:~# apt-get update && apt-get -u dist-upgrade
Get:1 file:/srv/
Get:1 file:/srv/
Get:2 file:/srv/
Get:2 file:/srv/
Get:3 http://
Get:4 file:/srv/
Get:5 file:/srv/
Get:6 file:/srv/
Get:7 file:/srv/
Get:8 file:/srv/
Get:9 file:/srv/
Get:10 file:/srv/
Get:11 file:/srv/
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Fetched 2,135 kB in 1s (1,520 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libzstd0 linux-headers-
linux-
linux-
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
apt apt-transport-https apt-utils initramfs-tools initramfs-tools-bin initramfs-
libapt-pkg5.0 libpam-systemd libpci-dev libpci3 libsystemd0 libudev-dev libudev1 lshw makedumpfile pciutils
python-crypto systemd systemd-sysv udev
21 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 246 kB/8,157 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 file:/srv/
Get:2 file:/srv/
Get:3 file:/srv/
Get:4 file:/srv/
Get:5 file:/srv/
Get:6 file:/srv/
Get:7 file:/srv/
Get:8 http://
Get:9 file:/srv/
Get:10 file:/srv/
Get:11 file:/srv/
Get:12 file:/srv/
Get:13 file:/srv/
Get:14 file:/srv/
Get:15 file:/srv/
Get:16 file:/srv/
Get:17 file:/srv/
Get:18 file:/srv/
Get:19 file:/srv/
Get:20 file:/srv/
Get:21 file:/srv/
Fetched 246 kB in 0s (491 kB/s)
(Reading database ... 186732 files and directories currently installed.)
Preparing to unpack .../libapt-
Unpacking libapt-pkg5.0:amd64 (1.2.26) over (1.2.25) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libapt-pkg5.0:amd64 (1.2.26) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 186732 files and directories currently installed.)
Preparing to unpack .../libapt-
Unpacking libapt-
Preparing to unpack .../a/apt/
Unpacking apt (1.2.26) over (1.2.25) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up apt (1.2.26) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
dpkg: error: dpkg status database is locked by another process
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@wopr:~# apt-get update && apt-get -u dist-upgrade
Get:1 file:/srv/
Get:1 file:/srv/
Get:2 file:/srv/
Get:2 file:/srv/
Hit:3 http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
apt-utils : Depends: apt (= 1.2.25) but 1.2.26 is installed
E: Unmet dependencies. Try using -f.
root@wopr:~# ubuntu-bug apt
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt 1.2.26
ProcVersionSign
Uname: Linux 4.4.0-108-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Tue Apr 3 12:57:30 2018
InstallationDate: Installed on 2016-04-04 (729 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Beta amd64 (20160325)
ProcEnviron:
TERM=rxvt-unicode
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
Well, yes, that happens sometimes. There is a race, because apt needs to release the dpkg lock before starting dpkg. Guess I should poke guillem about https:/ /lists. debian. org/debian- dpkg/2017/ 01/msg00044. html again.