You are not logged in.
Pages: 1
Topic closed
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
Post your pacman.conf and your pacman log from the update.
Matt
"It is very difficult to educate the educated."
Offline
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
That is what it means - pacman-4.2 got stricter with people specifying the same database twice.
Offline
Where is pacman.conf located? Which directory?
Offline
Where is pacman.conf located? Which directory?
How did you install Arch?
Offline
[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
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
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
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
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
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
From the pacman.conf man page:
"Repository names must be unique and the name local is reserved for the database of installed packages."
Offline
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.
Offline
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.
Offline
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
Offline
Offline
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
Closing this 8 year old thread.
Offline
Pages: 1
Topic closed