You are not logged in.

#1 2015-01-03 19:19:12

free2move
Member
Registered: 2014-12-20
Posts: 10

Database Already Registered

I was trying to install pepper-flash and realized that my system was out of date. So I did a "pacman -Syu" and updated the system. However, now I can't seem to install anything because my output says this.

$ sudo pacman -Syy 
error: could not register 'multilib' database (database already registered)

and if I try install pepper-flash using packer, I get this:

$ sudo packer -S chromium-pepper-flash
error: could not register 'multilib' database (database already registered)
error: could not register 'multilib' database (database already registered)

Aur Targets    (1): chromium-pepper-flash

Proceed with installation? [Y/n] y
Dependencies for `chromium-pepper-flash' are not met, not building...

I've looked all over the forums and Google for a solution, but for some reason can't even find an instance of the problem. Help would be much appreciated. Thanks so much!

Offline

#2 2015-01-03 19:28:26

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Database Already Registered

Post your pacman.conf and your pacman log from the update.


Matt

"It is very difficult to educate the educated."

Offline

#3 2015-01-03 19:31:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,531
Website

Re: Database Already Registered

I just checked the pacman source, I'm pretty sure this would only happen if you had multilib listed twice in your pacman.conf.  Can you post that please.

EDIT: cross posted with the above ... but yeah, I second the request.

Last edited by Trilby (2015-01-03 19:31:42)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#4 2015-01-04 03:20:15

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

Re: Database Already Registered

That is what it means - pacman-4.2 got stricter with people specifying the same database twice.

Offline

#5 2015-01-04 04:56:05

free2move
Member
Registered: 2014-12-20
Posts: 10

Re: Database Already Registered

Where is pacman.conf located? Which directory?

Offline

#6 2015-01-04 05:00:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Database Already Registered

free2move wrote:

Where is pacman.conf located? Which directory?

How did you install Arch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-01-04 16:10:09

codingman
Member
Registered: 2015-01-01
Posts: 32

Re: Database Already Registered

[spoiler]/etc[/spoiler]


Help Vampires --- Linux is NOT Windows! --- The Arch Way --- Get the As to your Qs!

No tak lik dis or NO ANZER!1!1!!1!

Offline

#8 2015-01-05 07:16:18

free2move
Member
Registered: 2014-12-20
Posts: 10

Re: Database Already Registered

Trilby pacman.conf. wrote:

  Can you post that please.

Here you go! Thanks for the help!

# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload

CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs


[multilib]
Include = /etc/pacman.d/mirrorlist
jasonwryan wrote:

How did you install Arch?

I'm switching from Fedora and have no idea where anything is located in arch yet.

Last edited by free2move (2015-01-05 07:16:52)

Offline

#9 2015-01-05 12:54:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,531
Website

Re: Database Already Registered

free2move wrote:

I'm switching from Fedora and have no idea where anything is located in arch yet.

This makes no sense.  How did you actually install arch?  It was not a rhetorical question.  You could not install arch without nowing where pacman.conf was.  You definitely couldn't have a pacman.conf that looked like that unless you already edited it, and you couldn't have edited it unless you knew where it was.  This all makes it look like you either did not install arch, but used some spin-off/derivative, or someone else installed it for you.  Hence the question: how did you install arch linux?

As for the problem at hand.  We've told you what it was.  You showed the file to confirm it.  So is this fixed now?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#10 2015-01-05 13:58:53

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Database Already Registered

The [multilib] repository has been registered twice in your config. Remove the last one. This may not be the "fix" for all your issues", but it still needs fixed.


Matt

"It is very difficult to educate the educated."

Offline

#11 2015-01-06 12:19:40

matersci
Member
From: Hellas
Registered: 2006-01-19
Posts: 167

Re: Database Already Registered

Allan wrote:

That is what it means - pacman-4.2 got stricter with people specifying the same database twice.

It seems that except that, with pacman 4.2 I can't use the name "local" for my local database.

I have the same error with my local repo.

# pacman -Syu
error: could not register 'local' database (database already registered)

and it is registered only once in pacman.conf

# cat /etc/pacman.conf 
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract = usr/bin/balooctl usr/bin/akonadi_baloo_indexer  usr/bin/baloo_file_cleaner  usr/bin/baloosearch
#NoExtract = usr/bin/baloo_file usr/bin/baloo_file_extractor

# Misc options
#UseSyslog
Color
TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

[local]
SigLevel = Optional TrustAll
Server = file:///mnt/Data/Arch/local/pkg

[archlinuxgr-kde4]
SigLevel = Never
Server = http://archlinuxgr.tiven.org/archlinux-kde4/$arch

[archlinuxgr]
SigLevel = Never
Server = http://archlinuxgr.tiven.org/archlinux/$arch

[archlinuxgr-any]
SigLevel = Never
Server = http://archlinuxgr.tiven.org/archlinux/any

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

If I change the name of the repo in pacman.conf it works again.

# pacman -Syuy
:: Synchronising package databases...
 core                             121.7 KiB  2.97M/s 00:00 [################################] 100%
 extra                           1807.2 KiB  9.97M/s 00:00 [################################] 100%
 community                          2.5 MiB  10.7M/s 00:00 [################################] 100%
 multilib                         121.9 KiB  7.44M/s 00:00 [################################] 100%
error: failed retrieving file 'local0.db' from disk : Couldn't open file /mnt/Data/Arch/local/pkg/local0.db
error: failed to update local0 (download library error)
 archlinuxgr-kde4                  19.2 KiB  1127K/s 00:00 [################################] 100%
 archlinuxgr                       12.7 KiB  4.15M/s 00:00 [################################] 100%
 archlinuxgr-any                    7.0 KiB  0.00B/s 00:00 [################################] 100%
:: Starting full system upgrade...
 there is nothing to do

Is this a "feature" or should I open a bug report?

Offline

#12 2015-01-06 12:25:23

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

Re: Database Already Registered

From the pacman.conf man page:

"Repository names must be unique and the name local is reserved for the database of installed packages."

Offline

#13 2015-01-06 12:40:25

matersci
Member
From: Hellas
Registered: 2006-01-19
Posts: 167

Re: Database Already Registered

So its a feature of pacman 4.2.

I didn't notice this change in pacman.conf manpage. I didn't read it because I didn't see pacman creating any pacnew files so I assumed nothing changed there.  Maybe pacman should inform about this change during upgrade, or you can add this in the custom repo part of the pacman.conf tempate.

Thanks. smile

Offline

#14 2015-01-09 22:13:06

Jauch
Member
From: Portugal
Registered: 2010-12-14
Posts: 57

Re: Database Already Registered

Just to add that I was having the same problem with the "Local" name for the local repository.
I didn't had this problem before. So, this changed in the last pacman upgrade, it seems.

Thanks for the explanation. smile

Offline

#15 2015-02-05 11:05:47

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

Re: Database Already Registered

Allan wrote:

From the pacman.conf man page:

"Repository names must be unique and the name local is reserved for the database of installed packages."

I've just been caught out by this too. Has "local" always been reserved (but not enforced) or is this restriction a recent thing?

I bet it'll catch loads of people out roll

Offline

#16 2015-02-05 12:11:42

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

Re: Database Already Registered

It is a pacman-4.2 thing.

Offline

#17 2023-05-18 14:38:24

CloneBoy2116
Member
Registered: 2023-05-17
Posts: 1

Re: Database Already Registered

I was having the same issue after I had installed sublime text.The problem was that i had the database in the pacman.conf file twice so deleting one of the links did the job.

Edit:I forgot to mention the filename

Last edited by CloneBoy2116 (2023-05-18 14:39:19)

Offline

#18 2023-05-18 17:57:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,739

Re: Database Already Registered

Closing this 8 year old thread.

Offline

Board footer

Powered by FluxBB