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
no
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/pathlib.pyâ, line 1266, in read_text
with self.open(mode=ârâ, encoding=encoding, errors=errors) as f:
File â/usr/lib/python3.9/pathlib.pyâ, line 1252, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File â/usr/lib/python3.9/pathlib.pyâ, line 1120, in _opener
return self._accessor.open(self, 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
add
## Path: System/Snapper
## Type: string
## Default: ""
# List of snapper configurations.
SNAPPER_CONFIGS=""
Save the file ctrl + o and enter
Exit Nano ctrl + x
Then you can recreate a config and see if that works.
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
SNAPPER_CONFIGS="root"
I have deleted only etc/conf.d/snapper