You are not logged in.
Pages: 1
Hi,
Just installed yaourt via the instructions on http://archlinux.fr/yaourt-en, choosing to add the repo to pacman.conf and install yaourt. However after doing a sync and then searching for an item I get an error: problem setting dbpath
# yaourt -Syu
:: Synchronising package databases...
core is up to date
extra is up to date
community-testing is up to date
community is up to date
multilib is up to date
archlinuxfr is up to date
# yaourt -Ss <<query>>
problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory)
Is there a way I can set this path to the correct location?
Cheers
Last edited by braingravyuk (2011-12-24 19:32:25)
Offline
You set DBPath in /etc/pacman.conf:
#DBPath = /var/lib/pacman/
Offline
That doesn't fix anything unfortunately.
Offline
Tried compiling this from PKGBUILD but still getting the same issue.
Offline
Do you get the same issue running pacman manually?
Offline
Do you get the same issue running pacman manually?
No, pacman is running just fine, looked at yaourt conf file but there isn't anywhere I could override the pacman dbase location.
Offline
Sounds like package-query is misconfigured. Based on the code, it defaults to /usr/local/var/lib/pacman if you were to ./configure && make by hand.
Hi,
I removed yaourt and package-query and ran ./configure on package-query which gave me the following output:
package-query:
Build information:
source code location : .
prefix : /usr/local
sysconfdir : /usr/local/etc
conf file : /usr/local/etc/pacman.conf
localstatedir : /usr/local/var
database dir : /usr/local/var/lib/pacman/
compiler : gcc
compiler flags : -g -O2
package-query version : 0.9
using git version : no
git ver :
Variable information:
root working directory : /
aur base url : http://aur.archlinux.org
Since I was still getting /usr/local, I changed the prefix by running ./configure --prefix "" which gave me:
package-query:
Build information:
source code location : .
prefix :
sysconfdir : /etc
conf file : /etc/pacman.conf
localstatedir : /var
database dir : /var/lib/pacman/
compiler : gcc
compiler flags : -g -O2
package-query version : 0.9
using git version : no
git ver :
Variable information:
root working directory : /
aur base url : http://aur.archlinux.org
Installed package-query onto the system and then ran make install with yaourt, I then tried to install an application which gives errors with dbpath plus pkgbuild.
# yaourt -S firefox
==> WARNING: problem in pkgbuild.sh library
problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory)
problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory)
problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory)
warning: firefox-9.0.1-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (1): firefox-9.0.1-1
Total Download Size: 0.00 MB
Total Installed Size: 34.10 MB
Proceed with installation? [Y/n] n
# yaourt -Ss firefox
problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory)
Offline
Try installing these packages from the AUR. I installed yaourt this way and I have no problems.
Last edited by karol (2011-12-26 02:52:45)
Offline
It may be related to http://superuser.com/questions/380149/w … cman-works
Offline
Pages: 1