Public bug reported:

Upgrading 16.04, with btrfs and apt-btrfs-snapshot fails with
a message that it cannot create a snapshot.

The package apt-btrfs-snapshot ( 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.

Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-s2c_k3qa/@' in 
Fetched 0 B in 0s (0 B/s)                                                       
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-m5onzpjo/@' in 
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-l8vw4ipx/@' in 
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-p4ob7l8q/@' in 
ERROR: cannot snapshot '/tmp/apt-btrfs-snapshot-mp-p4ob7l8q/@': File exists
Exception during pm.DoInstall():  E:Problem executing scripts DPkg::Pre-Invoke 
'if [ -x /usr/bin/apt-btrfs-snapshot ] && apt-btrfs-snapshot supported; then 
apt-btrfs-snapshot snapshot; fi ', E:Sub-process returned an error code
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 

To continue please press [ENTER]

** Affects: apt-btrfs-snapshot (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Release upgrade fails due to apt-btrfs-snapshot not being able to take
  a snapshot

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to