Release upgrade fails due to apt-btrfs-snapshot not being able to take a snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-btrfs-snapshot (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Upgrading 16.04, with btrfs and apt-btrfs-snapshot fails with
a message that it cannot create a snapshot.
The package apt-btrfs-snapshot (0.3.4.2) is installed. Notice that
on Xenial you need to create a symlink /sbin/btrfs -> /bin/btrfs in
order to get the snapshooting to work with apt.
From the error messages it looks like it is trying to create a second
snapshot with the same name. Perhaps it's a race condition.
=======
Upgrading
Create a snapshot of '/tmp/apt-
Fetched 0 B in 0s (0 B/s)
Supported
Create a snapshot of '/tmp/apt-
Supported
Create a snapshot of '/tmp/apt-
Supported
Create a snapshot of '/tmp/apt-
ERROR: cannot snapshot '/tmp/apt-
Exception during pm.DoInstall(): E:Problem executing scripts DPkg::Pre-Invoke 'if [ -x /usr/bin/
No pending crash reports. Try --help for more information.
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]
=======
The quick workaround is to remove the symlink in /sbin.
You can/should make a snapshot before removing the symlink.