mv: cannot stat '/var/lib/docker.migrating/*': No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker.io (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Got this postinst failure when release-upgrading a focal laptop to groovy. /var/lib/docker was already on its own datase as per upstream's recommendation. I called it rpool/docker.
Preparing to unpack .../110-
Unpacking docker.io (19.03.11-0ubuntu1) over (19.03.8-0ubuntu1) ...
(...)
Setting up docker.io (19.03.11-0ubuntu1) ...
mv: cannot stat '/var/lib/
dpkg: error processing package docker.io (--configure):
installed docker.io package post-installation script subprocess returned error exit status 1
Attempts to run apt -f install just repeat the error:
Setting up docker.io (19.03.11-0ubuntu1) ...
mv: cannot stat '/var/lib/
dpkg: error processing package docker.io (--configure):
installed docker.io package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
docker.io
Changed in docker.io (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Adding set -x to the postinst section, we see this: rpool/docker docker. migrating/ * /var/lib/docker/ docker. migrating/ *': No such file or directory
Setting up docker.io (19.03.11-0ubuntu1) ...
+ modinfo zfs
+ zfs mount
+ + awkcut -d/ -f1
$2=="/" {print $1}
+ rpool=rpool
+ [ -n rpool ]
+ findmnt -n -o SOURCE /var/lib/docker
+ dockermnt=
+ echo rpool/docker
+ grep -qE ^$|/ROOT/
+ dpkg --compare-versions 19.03.8-0ubuntu1 le-nl 19.03.8-0ubuntu2
+ mv /var/lib/
mv: cannot stat '/var/lib/
dpkg: error processing package docker.io (--configure):
installed docker.io package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
docker.io