You are not logged in.
when i try to install or upgrade, i get
error: invalid name for database entry 'local'output from ls -l /var/lib/pacman:
total 44
drwxr-xr-x 684 root root 36864 Jan 6 16:46 local
drwxr-xr-x 2 root root 4096 Jan 6 16:55 syncLast edited by Zorro no (2024-01-13 18:27:51)
Offline
REPOSITORY SECTIONS Each repository section defines a section name and at least one location where the packages can be found. The section name is defined by the string within square brackets (the two above are core and custom). Repository names must be unique and the name local is reserved for the database of installed packages.
Post the output of the pacman-conf command. Use code tags.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 1
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = https://nox.panibrez.com/archlinux/core/os/x86_64
Server = https://mirror.librelabucm.org/archlinux/core/os/x86_64
Server = http://mirror.librelabucm.org/archlinux/core/os/x86_64
Server = http://ftp.rediris.es/mirror/archlinux/core/os/x86_64
[extra]
Usage = All
Server = https://nox.panibrez.com/archlinux/extra/os/x86_64
Server = https://mirror.librelabucm.org/archlinux/extra/os/x86_64
Server = http://mirror.librelabucm.org/archlinux/extra/os/x86_64
Server = http://ftp.rediris.es/mirror/archlinux/extra/os/x86_64
[multilib]
Usage = All
Server = https://nox.panibrez.com/archlinux/multilib/os/x86_64
Server = https://mirror.librelabucm.org/archlinux/multilib/os/x86_64
Server = http://mirror.librelabucm.org/archlinux/multilib/os/x86_64
Server = http://ftp.rediris.es/mirror/archlinux/multilib/os/x86_64Offline
ls /var/lib/pacman/sync/
pacman -v --debug -Syu 2>&1 | tee /tmp/pacman.log
cat /tmp/pacman.log | curl -F 'file=@-' 0x0.stOffline
core.db
extra.db
multilib.dbhttp://0x0.st/H6hW.txtOffline
rien.
cat /etc/pacman.conf /etc/pacman.d/mirrorlist | curl -F 'file=@-' 0x0.stOffline
Offline
I may be misinterpreting the error, but it looks like there is something installed locally that has an invalid name. Not sure how to find it, though, except using a debugger to see what it's reading when it hits the error.
Edit: Do you have a dir /var/lib/pacman/local/local/?
Last edited by Scimmia (2024-01-07 21:34:13)
Offline
Edit: Do you have a dir /var/lib/pacman/local/local/?
Looking at the code, that is exactly what this is saying. Pacman is try to parse the directory name "local" as "pkgname-pkgver" and failing.
Offline
how would i fix that?
Offline
Look around in that directory tree, figure what the bogus subdir is and in doubt, just try to move it away.
(Don't just delete it in case it's the actual /var/lib/pacman/local)
Offline
Everything in /var/lib/pacman/local should be pkgname-pkgver-pkgrel. It appears you have a dir called 'local' (/var/lib/pacman/local/local/) which should not be there. If there's nothing in it, get rid of it. If there's something in it, you'll have to figure out what it is and what happened.
Offline
/var/lib/pacman/local/local/ is an outdated version of /var/lib/pacman/local/ from what im seeing
do i delete it?
Last edited by Zorro no (2024-01-09 19:16:10)
Offline
If you're confident that's all it is, sure. If you're not certain, I would move it somewhere as a backup.
Offline
i deleted it and it got fixed
Offline