upgrade problem when using packages from security (docker.io and containerd)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker.io (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Starting from the following situation:
Ubuntu 20.04.3 LTS with up-to-date packages EXCEPT docker.io and containerd. Normal archive and security repositories enabled. The following happens on two individual systems:
$ apt-cache policy docker.io containerd
docker.io:
Installed: 19.03.8-0ubuntu1
Candidate: 20.10.7-
Version table:
20.
500 http://
500 http://
*** 19.03.8-0ubuntu1 500
500 http://
100 /var/lib/
containerd:
Installed: 1.3.3-0ubuntu2
Candidate: 1.5.2-0ubuntu1~
Version table:
1.
500 http://
500 http://
*** 1.3.3-0ubuntu2 500
500 http://
100 /var/lib/
When I try to update, both packages have a new version, but neither of these succeed to update:
$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
containerd docker.io
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 standard security updates
Need to get 0 B/69.8 MB of archives.
After this operation, 20.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 233087 files and directories currently installed.)
Preparing to unpack .../docker.
The aufs storage-driver is no longer supported.
Please ensure that none of your containers are
using the aufs storage driver, remove the directory
/var/lib/
dpkg: error processing archive /var/cache/
new docker.io package pre-installation script subprocess returned error exit status 1
dpkg: error while cleaning up:
installed docker.io package post-installation script subprocess returned error exit status 1
Preparing to unpack .../containerd_
Unpacking containerd (1.5.2-
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
I can also try these packages individually, also with errors:
$ sudo apt-get install docker.io
$ sudo apt-get install containerd
As a work-around, I can reset to the last (non-security) version, and then set the two packages on hold:
$ sudo apt-get install docker.
$ sudo apt-mark hold containerd docker.io
description: | updated |
summary: |
- upgrade dependency problem (together with containerd) + upgrade problem when using packages from security (docker.io and + containerd) |
description: | updated |
Looks related to https:/ /bugs.launchpad .net/ubuntu/ +source/ docker. io/+bug/ 1939140