3

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.

1 Answers1

3

I succeeded with the answer by @John to the question The program Anki won't start, with the simple suggestion to install python3-distutils

sudo apt-get install python3-distutils

I must_withdraw_my old answer below, as I could not reproduce it a couple of times:

(The problem disappeared for me after I added the LC_ALL line to the file /etc/default/locale:

LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

That one line was somehow missing. )