How to delete btrfs snapshots made by apt?

Asked by Lena Wildervanck

I'm almost out of diskspace on my root btrfs partition.

According to `btrfs subvolume show` there are a couple snapshots called @apt-snapshots-release-upgrade... followed by the release name.

I want to delete those so I tried a couple commands like `sudo btrfs subvolume delete @apt-snapshot-release-upgrade-groovy-2021-07-23_18:52:08` and others. However they all failed with the error `ERROR: Could not statfs: No such file or directory`.

Then I found a thread on the internet saying that `apt-btrfs-snapshot` could be used for that. I installed it on impish, however, trying to use that program gave the following error:
`
Traceback (most recent call last):
  File "/usr/bin/apt-btrfs-snapshot", line 94, in <module>
    if args.command == "supported":
AttributeError: 'Namespace' object has no attribute 'command'
`

I'm on impish, is it broken on that release?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt-btrfs-snapshot Edit question
Assignee:
No assignee Edit question
Solved by:
Lena Wildervanck
Solved:
Last query:
Last reply:
Revision history for this message
Lena Wildervanck (l-wildervanck) said :
#1

Okay I managed to do it by mounting the root volume like the op here did in the end: https://askubuntu.com/q/441375/

But I still have the question if should submit the bugreport to apt-btrfs-snapshot?

Revision history for this message
Lena Wildervanck (l-wildervanck) said :
#2

Okay, apparently, the bug has been reported. I was just not passing any arguments to it.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3