Can't remove a package

Unable to remove snnapper packages with pacman as I deleted some conf.d folder during configuration of snapper. I want a fresh installation of snapper package but cant be going through. DE:Xfce

Can’t you just install it again? with pacman -S package_name It should install any missing files


Welcome to the forum!

What’s your terminal output and terminal command you used? Please post here and format with code brackets.

Also what is your partitioning setup, I assume you use btrfs.

Also have a look at this that might help with your configs.

IT would really help to see what the error would be when you try to install it

sudo pacman -S snapper
[sudo] password for test:
warning: snapper-0.9.1-1 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Package (1) Old Version New Version Net Change

community/snapper 0.9.1-1 0.9.1-1 0.00 MiB

Total Installed Size: 3.11 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [------------------------------------] 100%
(1/1) checking package integrity [------------------------------------] 100%
(1/1) loading package files [------------------------------------] 100%
(1/1) checking for file conflicts [------------------------------------] 100%
(1/1) checking available disk space [------------------------------------] 100%
warning: could not get file information for etc/conf.d/snapper
:: Running pre-transaction hooks…
(1/1) Performing snapper pre snapshots for the following configurations…
Traceback (most recent call last):
File “/usr/share/libalpm/scripts/snap-pac”, line 194, in
for snapper_config in get_snapper_configs(args.snapper_conf_file):
File “/usr/share/libalpm/scripts/snap-pac”, line 135, in get_snapper_configs
for line in conf_file.read_text().split("\n"):
File “/usr/lib/python3.9/”, line 1266, in read_text
with‘r’, encoding=encoding, errors=errors) as f:
File “/usr/lib/python3.9/”, line 1252, in open
return, mode, buffering, encoding, errors, newline,
File “/usr/lib/python3.9/”, line 1120, in _opener
return, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/conf.d/snapper’
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.

I have deleted etc/conf.d during configuration of snapper

I suggest you could try creating a config. This post seem to have a lot of answers.

Post output of sudo snapper list-configs

You can try to create another default config for the respective sub volume. Since you did not post the information it is hard to guess.

sudo snapper create-config /

To generate the root config.

I am by no means a btrfs person. I will refer to @ricklinux and @dalto

What do you get with pacman -Qkk snapper?

sudo snapper list-configs
Config | Subvolume

sudo pacman -Qkk snapper
warning: snapper: /etc/conf.d/snapper (No such file or directory)
snapper: 267 total files, 1 altered file

Listing configs failed (sysconfig-file not found)

Sorry just edited above, try this sudo snapper create-config /

(Also make sure to put your code in single quotes, you can either click on the code symbol just in the left of the emoji above textbox or put your text with ’ ')

Edit: once this thread is solved it might be good to have a look at the following, very informative about options and what does what and avoid future troubles

“sudo snapper create-config /
Listing configs failed (sysconfig-file not found)”

Did you delete the whole folder /etc/conf.d or are you saying you deleted the file snapper inside the folder?

What happens if you just create that folder and file by hand even if it’s an empty file, then try installing again? It’s weird a config file is preventing the package from installing though

You can do the following

sudo nano /etc/conf.d/snapper


## Path: System/Snapper

## Type:        string
## Default:     ""
# List of snapper configurations.

Save the file ctrl + o and enter
Exit Nano ctrl + x

Then you can recreate a config and see if that works.

1 Like

only snapper folder

It’s a file not a folder inside of /etc/conf.d/
There are other files in there also. Did you delete the whole folder?

Edit: The other files have nothing to do with snapper. There is only one file called snapper to create the configs .

That’s the file. I only have one config for root so when i created the config it say’s


I have deleted only etc/conf.d/snapper