You are not logged in.
Pages: 1
Topic closed
I was trying to delete the db.lck file but I deleted the entire directory by accident.
Total newbie here, what should I do? Help!!
Offline
https://wiki.archlinux.org/index.php/Pa … l_database
What did you try to remove the lock file for in the first place? It's there for a reason and I can't imagine many legitimate scenarios for why you'd want to try to do that in the first place.
Offline
Because I couldn't updated it. Read this a while ago: https://ostechnix.com/how-to-fix-unable … rch-linux/
How can I install pacutils without pacman?
Offline
If you really just deleted that directory you only deleted the database, nothing should stop you from installing packages. If something stops you, post the error messages
Offline
The error says: could not find or read directory: /var/lib/pacman
Offline
I deleted the entire directory, not just "local"
Offline
Well, create the directory?
Once the directory is there again, an -Sy will refresh the db and allow you to install pacutils.
Last edited by V1del (2021-01-03 19:49:48)
Offline
Oh thanks! But now I have to do the instructions from the link you shared, but I can't install pacutils either it says "exists in the filesystem" for every package it tries to update/download and then the message: Errors occurred, no packages were upgraded.
Offline
Maybe It was because I did the following?
Downloaded pacman at https://sources.archlinux.org/other/pacman/.
$ ./configure
$ make
# make install
Offline
If pacutils is already installed you do not need to reinstall it to fix the issue.
Why did you install pacman from source?
Offline
Because I didn't know what to do... I thought I deleted it all
Offline
pacutils is not installed
Offline
Uninstall the source built pacman, hopefully it supports the following
# make uninstallthen follow the instructions from V1del's link.
Offline
As an additional argument --overwrite "*" or -dd to ignore the dep checks as the dependencies are likely there for other cases anyway, in order to install pacutils
Offline
Install pacutils skipping dependency checking which is broken with the empty pacman database
# pacman -Sdd pacutilsOffline
I'm geting this error now:
[skywalker@Tesla ~]$ sudo pacman "$@" --log /dev/null --noscriptlet --dbonly --overwrite "*" --nodeps --needed -S $(< pkglist)
error: no targets specified (use -h for help)
[skywalker@Tesla ~]$ recovery-pacman
bash: recovery-pacman: command not found
I pasted the bash funciton in .bashrc but it doesn't seem to work
Offline
I pasted the bash funciton in .bashrc
Did you re-source the bashrc?
I'm geting this error now:
Looks like the file "pkglist" is empty.
Online
Thank you all!! It worked like a charm.
I'm curious... What happens with my pacman? Since I installed ffrom source does it mean I can't update it automatically anymore?
Offline
As you built pacman without passing any options to configure
$ ./configureIt will be installed under the prefix /usr/local while the pacman supplied by the pacman package is under the prefix /usr.
As the prefixes are different the installation does not conflict. Which one you would be using depends on what is in $PATH and how it is ordered.
Offline
And how could I uinstall the one installed from source?
Offline
See post #13
Offline
"make uninstall" didn't work
Offline
"Didn't work" isn't an error message, https://bbs.archlinux.org/viewtopic.php?id=57855
Online
Oh, my God, I ignored this directory when backing up the system, so I'm also facing this problem now
Offline
puzzle, you have been asked not to bump old topics. Please stop. Consider this your final warning.
Closing.
Offline
Pages: 1
Topic closed