apt-btrfs-snapshot reports "Sorry, your system lacks support for the snapshot feature" on btrfs with existing @apt-snapshot-release-upgrade snapshots

Bug #1634871 reported by Karl-Philipp Richter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

apt-btrfs-snapshot reports "Sorry, your system lacks support for the snapshot feature" on btrfs with existing @apt-snapshot-release-upgrade snapshots which doesn't make sense because btrfs supports snapshots and snapshots exist.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt-btrfs-snapshot 0.3.4.2
Uname: Linux 4.8.0-040800-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Wed Oct 19 14:07:26 2016
InstallationDate: Installed on 2015-04-20 (547 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
PackageArchitecture: all
ProcEnviron:
 TERM=screen.xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: apt-btrfs-snapshot
UpgradeStatus: Upgraded to xenial on 2016-10-19 (0 days ago)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Revision history for this message
Jay Carlson (nop-nop) wrote :

I ran into this too. I think this is because there is no longer a /sbin/btrfs. In /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py :

        if not os.path.exists("/sbin/btrfs"):
            return False

Ubuntu 16.04 apparently places btrfs in /bin.

Revision history for this message
Claudius Raphael Paeth (claudiusraphaelpaeth) wrote :

I am sure this is duplicate to:

  https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/1454306

, whereas the only problem is (as Jay Carlson (nop-nop) wrote on 2017-09-20 in here) that the path has changed.

Due to inexpressible nonsense, the 'fix' is not available, even in the fourth point-release.

Solution is simple; create a symbolic link:

sudo ln -s /bin/btrfs /sbin/btrfs

Hope, it helps

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-btrfs-snapshot (Ubuntu):
status: New → Confirmed
Revision history for this message
johnny lee (johnnyl33-k) wrote :

I can confirm this still happens on Ubuntu/Xubuntu 20.04 with apt-btrfs-snapshot v353. Is there any intention or when are they planning to fix this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.