You are not logged in.
I saw another thread solved with the same title. I have similar symptoms, but slightly different. I imagine there is some variation to my problem, so I started a new thread rather than reanimating a zombie.
Still quite in the learning process with Arch.
I've had this broken pacman problem for over a week now. It started as just a problem of unable to get pacman upgraded, but then I must have followed the wrong advice in another thread, uninstalled pacman, and reinstalled it wrong. I tried downloading the tarball from the repos and installing it with ./configure make make install, and I am guessing it all went to local instead of root.
Result;
error: no usable package repositories configured.
Should I have used
./configure --prefix=/
?
I found what I thought was a simple fix to reinstall pacman in another thread:
sudo tar -xvpf pacman-3.5.1-1-i686.pkg.tar.gz -C / --exclude .PKGINFO --exclude .INSTALL
but the result of sudo pacman -Syy is still
error: no usable package repositories configured.
The following is some of what I found in this thread I see:
Root : /
Conf File : /usr/local/etc/pacman.conf
DB Path : /usr/local/var/lib/pacman/
Cache Dirs: /usr/local/var/cache/pacman/pkg/
Lock File : /usr/local/var/lib/pacman/db.lck
Log File : /usr/local/var/log/pacman.log
Targets : None
Not installed to root?
which pacman
/usr/local/bin/pacman
This confirms not installed to root?
Furthermore,
sudo pacman -Qil pacman
Password:
error: package "pacman" not found
/usr/local/bin/pacman -Qil pacman
error: package "pacman" not found
What does this tell me?
I am guessing there are several problems.
/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
HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl -C - -f %u > %o
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload
#CheckSpace
#
# 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
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
/etc/pacman.d/mirrorlist
# Server list generated by rankmirrors on 2011-03-24
##
## Arch Linux repository mirrorlist
## Generated on 2011-03-25
##
## Any
#Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
#Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
## Australia
## Austria
#Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/$arch
#Server = http://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/$arch
## Belarus
#Server = ftp://ftp.byfly.by/pub/archlinux/$repo/os/$arch
#Server = http://ftp.byfly.by/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.datacenter.by/pub/archlinux/$repo/os/$arch
#Server = http://mirror.datacenter.by/pub/archlinux/$repo/os/$arch
## Belgium
#Server = ftp://archlinux.mirror.kangaroot.net/pub/archlinux/$repo/os/$arch
#Server = http://archlinux.mirror.kangaroot.net/$repo/os/$arch
## Brazil
## Canada
## Chile
#Server = ftp://mirror.archlinux.cl/$repo/os/$arch
## China
#Server = http://mirrors.163.com/archlinux/$repo/os/$arch
#Server = http://mirror.bjtu.edu.cn/archlinux/$repo/os/$arch
#Server = http://mirror6.bjtu.edu.cn/archlinux/$repo/os/$arch
## Colombia
#Server = http://www.laqee.unal.edu.co/archlinux/$repo/os/$arch
## Czech Republic
#Server = http://mirror.vpsfree.cz/archlinux/$repo/os/$arch
## Denmark
#Server = ftp://mirrors.dotsrc.org/archlinux/$repo/os/$arch
#Server = http://mirrors.dotsrc.org/archlinux/$repo/os/$arch
#Server = ftp://ftp.klid.dk/archlinux/$repo/os/$arch
## Estonia
#Server = ftp://ftp.eenet.ee/pub/archlinux/$repo/os/$arch
#Server = http://ftp.eenet.ee/pub/archlinux/$repo/os/$arch
## Finland
#Server = ftp://mirror.academica.fi/archlinux/$repo/os/$arch
#Server = http://mirror.academica.fi/archlinux/$repo/os/$arch
#Server = ftp://mirror.archlinux.fi/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.fi/archlinux/$repo/os/$arch
## France
#Server = http://mir.archlinux.fr/$repo/os/$arch
#Server = ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch
#Server = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://mir1.archlinux.fr/archlinux/$repo/os/$arch
#Server = http://mir1.archlinux.fr/archlinux/$repo/os/$arch
#Server = ftp://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
#Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
#Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/$arch
## Germany
#Server = http://archlinux.limun.org/$repo/os/$arch
#Server = http://mirror.c9h.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
#Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
#Server = ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
#Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
#Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
#Server = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
#Server = ftp://mirror.selfnet.de/archlinux/$repo/os/$arch
#Server = http://mirror.selfnet.de/archlinux/$repo/os/$arch
#Server = ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
#Server = http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
#Server = ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
## Great Britain
#Server = ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch
#Server = http://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch
#Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/$arch
#Server = http://archlinux.mirrors.uk2.net/$repo/os/$arch
## Greece
#Server = ftp://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
#Server = http://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.otenet.gr/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.otenet.gr/linux/archlinux/$repo/os/$arch
## Hungary
#Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## India
#Server = ftp://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
#Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
## Ireland
#Server = ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
#Server = http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
## Israel
#Server = ftp://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
#Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
## Italy
#Server = http://mirrors.prometeus.net/archlinux/$repo/os/$arch
## Japan
#Server = ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
## Kazakhstan
#Server = ftp://archlinux.kz/archlinux/$repo/os/$arch
#Server = http://archlinux.kz/$repo/os/$arch
## Latvia
#Server = http://archlinux.goodsoft.lv/$repo/os/$arch
## Luxembourg
#Server = ftp://archlinux.mirror.root.lu/archlinux/$repo/os/$arch
#Server = http://archlinux.mirror.root.lu/$repo/os/$arch
## Netherlands
#Server = ftp://mirror.leaseweb.com/archlinux/$repo/os/$arch
#Server = http://mirror.leaseweb.com/archlinux/$repo/os/$arch
#Server = ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch
#Server = http://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch
## New Caledonia
#Server = ftp://archlinux.nautile.nc/archlinux/$repo/os/$arch
#Server = http://archlinux.nautile.nc/archlinux/$repo/os/$arch
## Norway
#Server = ftp://mirror.archlinux.no/$repo/os/$arch
#Server = http://mirror.archlinux.no/$repo/os/$arch
## Poland
#Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
#Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## Portugal
#Server = ftp://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch
#Server = http://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch
## Romania
#Server = ftp://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch
#Server = http://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch
#Server = ftp://mirror.archlinux.ro/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.ro/archlinux/$repo/os/$arch
#Server = ftp://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch
#Server = http://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch
## Russia
#Server = http://mirror.worldis.me/archlinux/$repo/os/$arch
#Server = ftp://mirror.yandex.ru/archlinux/$repo/os/$arch
#Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
## Slovakia
#Server = ftp://mirror.ynet.sk/pub/archlinux/$repo/os/$arch
#Server = http://mirror.ynet.sk/pub/archlinux/$repo/os/$arch
## Spain
#Server = ftp://ftp.rediris.es/mirror/archlinux/$repo/os/$arch
#Server = http://sunsite.rediris.es/mirror/archlinux/$repo/os/$arch
## Sweden
#Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/$arch
#Server = http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.linuxmirror.org/arch/$repo/os/$arch
#Server = http://linuxmirror.org/arch/$repo/os/$arch
## Switzerland
#Server = ftp://archlinux.puzzle.ch/$repo/os/$arch
#Server = http://archlinux.puzzle.ch/$repo/os/$arch
## Taiwan
#Server = ftp://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch
#Server = http://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch
#Server = ftp://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
#Server = http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
#Server = ftp://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
## Turkey
#Server = ftp://ftp.linux.org.tr/archlinux/$repo/os/$arch
#Server = http://ftp.linux.org.tr/archlinux/$repo/os/$arch
## Ukraine
#Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
## United States
## Uzbekistan
#Server = ftp://mirrors.st.uz/archlinux/$repo/os/$arch
#Server = http://mirrors.st.uz/archlinux/$repo/os/$arch
Server = http://mirrors.xmission.com/archlinux/$repo/os/$arch
Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
Server = http://mirror.mocker.org/archlinux/$repo/os/$arch
Server = http://mirrors.hosef.org/archlinux/$repo/os/$arch
Server = http://hpc.arc.georgetown.edu/mirror/archlinux/$repo/os/$arch
Server = http://mirror.ece.vt.edu/archlinux/$repo/os/$arch
Server = ftp://mirror.rit.edu/archlinux/$repo/os/x86_64
Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
Offline
Well, you should have taken the configure options out of the pacman PKGBUILD from ABS:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-doc
Recompile with those options. You don't even need to install, just run it from the built directory (binary will be $buildroot/src/pacman/pacman) and reinstall the binary pacman package.
Offline
Your confidence in my competence is generous.
Is $buildroot/src/pacman/pacman the directory I originally ran ./configure...?
Wait! Don't answer yet! My brain is starting to stir...
No, false alarm. Still confused.
Last edited by schly (2011-03-28 01:51:51)
Offline
Okay, I ran the ./configure, make, and make install, but I realize you said I don't even need to install.
Resulting in;
sudo pacman -Syy
error: no usable package repositories configured.
But again, re-reading your instructions, "and reinstall the binary pacman package" reminds me I am still not familiar enough with this process to understand this part.
What am I missing?
Offline
You need to run the built pacman binary, notthe one that's on your system... from where you ran configure/make:
./src/pacman/pacman -Syu pacman
Which will probably give you the same prompt that lead you to following aforementioned bad advice... remove whatever it is that's causing the conflict (not pacman).
Offline
I too have this same issue. However i could install and update/upgrade packages from kpackagekit. I tried to run "./src/pacman/pacman -Syu pacman" after compiling packman package but the result is "error: no usable package repositories configured.".
Before i had this issue i could not upgarde packman package because of confilicting package requirement (packaman-glib require packman <=3.4.0 and packman 3.4.x). Even now i am not able to upgade packaman through kpackagekit. Rest all working fine with kpackagekit.
Offline
Moved all my important files to an external hd and reinstalled arch.
Offline
For anyone with this pacman issue the following steps worked for me:
1) Grab the pacman 3.5.1 source from here: ftp://ftp.archlinux.org/other/pacman/pa … 5.1.tar.gz
2) extract it somewhere, I extracted to /tmp/pacman-3.5.1 and opened a terminal from there
3) run configure using "./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-doc"
4) run "make"
5) replace the installed pacman with the latest from the repos using "./src/pacman -S pacman"
Cheers
Offline
Thank you for the reply...
For anyone with this pacman issue the following steps worked for me:
1) Grab the pacman 3.5.1 source from here: ftp://ftp.archlinux.org/other/pacman/pa … 5.1.tar.gz
2) extract it somewhere, I extracted to /tmp/pacman-3.5.1 and opened a terminal from there
3) run configure using "./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-doc"
4) run "make"
5) replace the installed pacman with the latest from the repos using "./src/pacman -S pacman"Cheers
i am getting following error while replacing pacman...
[root@arch pacman-3.5.1]# ./src/pacman/pacman -S pacman
error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'
error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'
error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'
error: local database version is too old
error: failed to init transaction (database is incorrect version)
try running pacman-db-upgrade
[root@arch pacman-3.5.1]# pacman-db-upgrade
==> ERROR: /usr/local/var/lib/pacman/ does not exist or is not a directory.
[root@arch pacman-3.5.1]#
Any idea?
Offline
./src/pacman/pacman-db-upgrade
Offline
[root@arch pacman-3.5.1]# pacman-db-upgrade
==> ERROR: /usr/local/var/lib/pacman/ does not exist or is not a directory.
[root@arch pacman-3.5.1]#Any idea?
Pass it the correct path to your database since you configured with /usr/local/ ...
Offline
./scripts/pacman-db-upgrade
That worked for me and here is the output.
[root@arch pacman-3.5.1]# ./scripts/pacman-db-upgrade
==> Pre-3.5 database format detected - upgrading...
==> Done.
However again there is a problem while replacing pacman
[root@arch pacman-3.5.1]# ./src/pacman/pacman -S pacman
error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'
error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'
error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'
error: target not found: pacman
When i checked "/var/lib/pacman/sync/" i found this...
[root@arch pacman-3.5.1]# ls /var/lib/pacman/sync/
community core extra
and when i checked " ls /var/lib/pacman/" i got this
[root@arch pacman-3.5.1]# ls /var/lib/pacman/
community.db.tar.gz core.db.tar.gz extra.db.tar.gz local sync
any idea?
Offline
This worked for me:
pacman-db-upgrade
pacman -Sy
pacman -S pacman
Offline
This worked for me:
pacman-db-upgrade pacman -Sy pacman -S pacman
That worked for me but i could not cross the last hurdle of dependencies
[root@arch pacman-3.5.1]# ./src/pacman/pacman -S pacman
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: pacman-glib: requires pacman<3.5.0
[root@arch pacman-3.5.1]#
Offline
Ya i got installed by using
./src/pacman/pacman -Sdd pacman
After installation pacman said
>>> The pacman database format has changed as of pacman 3.5.0.
>>> You will need to run `pacman-db-upgrade` as root.
When i performed "pacman-db-upgrade" i got an error message
[root@arch pacman-3.5.1]# pacman-db-upgrade
==> ERROR: /usr/local/var/lib/pacman/ does not exist or is not a directory.
Bur i can confirm that "/usr/local/var/lib/pacman/" is exist
[root@arch pacman-3.5.1]# ls /usr/local/var/lib/
pacman
[root@arch pacman-3.5.1]#
Also i am not able to use kpackagekit any more. it says unkown error.
Offline
Ya i got installed by using
./src/pacman/pacman -Sdd pacman
Why did you do that? Why don't you just simply removed kpackagekit, pacman-glib, update pacman with pacman -Syu? You running pacman from $src directory and skipping all dependency checks to install/update pacman? Your AUR kpackagekit+pacman-glib is incompatible with pacman 3.5, this is what prevents pacman from updating in the first place. Packagekit is now in [community] and works fine with kpackagekit from AUR. You messed up your system pretty good, congratulations!
Offline
You messed up your system pretty good, congratulations!
Thank you :-(
I have reinstalled the system and now it is working fine.
Offline