After installing Kubuntu 18.04 on a Thinkpad W520 on btrfs over LUKS I came to the activation of the automatic APT snapshots. Here it shows up that any call of apt-btrfs-snapshot crashes, complaining the missing module 'distutils.spawn'. Here an example with the list action:
# sudo apt-btrfs-snapshot list
Traceback (most recent call last):
File "/usr/bin/apt-btrfs-snapshot", line 33, in <module>
from apt_btrfs_snapshot import AptBtrfsSnapshot
File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 28, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
Every call of apt-btrfs-snapshot brings the same traceback message, including the APT functions, whith their internal call.
Reinstalling apt-btrfs-snapshot brougth no improvement.
My Python is:
python --version
Python 2.7.15rc1
How can I repair apt-btrfs-snapshot ?
I choosed here not to upgrade my old Ubuntu 16.04:
I did a new install on another disk, hoping to get a cleaner KDE install.
I must probably also report the bug.
Against the lack of an automated, forced snapshotting on updates, I am helping myself by running my own backup utility mylinuxsync before and after all updates. So I create snapshots before/after, both locally and on my backup raid on the desktop.