You are not logged in.

#1 2024-01-06 16:02:19

Zorro no
Member
Registered: 2024-01-06
Posts: 7

[SOLVED] error: invalid name for database entry 'local'

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 sync

Last edited by Zorro no (2024-01-13 18:27:51)

Offline

#2 2024-01-06 16:37:11

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,193
Website

Re: [SOLVED] error: invalid name for database entry 'local'

man pacman.conf wrote:
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

#3 2024-01-06 19:30:17

Zorro no
Member
Registered: 2024-01-06
Posts: 7

Re: [SOLVED] error: invalid name for database entry 'local'

[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_64

Offline

#4 2024-01-06 20:58:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,689

Re: [SOLVED] error: invalid name for database entry 'local'

ls /var/lib/pacman/sync/
pacman -v --debug -Syu 2>&1 | tee /tmp/pacman.log
cat /tmp/pacman.log | curl -F 'file=@-' 0x0.st

Offline

#5 2024-01-07 16:33:12

Zorro no
Member
Registered: 2024-01-06
Posts: 7

Re: [SOLVED] error: invalid name for database entry 'local'

core.db
extra.db
multilib.db
http://0x0.st/H6hW.txt

Offline

#6 2024-01-07 17:03:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,689

Re: [SOLVED] error: invalid name for database entry 'local'

rien.

cat /etc/pacman.conf /etc/pacman.d/mirrorlist | curl -F 'file=@-' 0x0.st

Offline

#7 2024-01-07 21:06:05

Zorro no
Member
Registered: 2024-01-06
Posts: 7

Re: [SOLVED] error: invalid name for database entry 'local'

Offline

#8 2024-01-07 21:08:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] error: invalid name for database entry 'local'

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

#9 2024-01-07 22:41:28

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,620
Website

Re: [SOLVED] error: invalid name for database entry 'local'

Scimmia wrote:

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

#10 2024-01-09 16:09:43

Zorro no
Member
Registered: 2024-01-06
Posts: 7

Re: [SOLVED] error: invalid name for database entry 'local'

how would i fix that?

Offline

#11 2024-01-09 16:15:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,689

Re: [SOLVED] error: invalid name for database entry 'local'

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

#12 2024-01-09 16:22:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] error: invalid name for database entry 'local'

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

#13 2024-01-09 19:15:20

Zorro no
Member
Registered: 2024-01-06
Posts: 7

Re: [SOLVED] error: invalid name for database entry 'local'

/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

#14 2024-01-09 20:45:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] error: invalid name for database entry 'local'

If you're confident that's all it is, sure. If you're not certain, I would move it somewhere as a backup.

Offline

#15 2024-01-13 18:25:13

Zorro no
Member
Registered: 2024-01-06
Posts: 7

Re: [SOLVED] error: invalid name for database entry 'local'

i deleted it and it got fixed

Offline

Board footer

Powered by FluxBB