You are not logged in.

#1 2011-12-24 18:05:27

braingravyuk
Member
From: Manchester, UK
Registered: 2011-12-24
Posts: 8

Yaourt database path issue

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

#2 2011-12-24 19:05:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt database path issue

You set DBPath in /etc/pacman.conf:

#DBPath      = /var/lib/pacman/

Offline

#3 2011-12-24 19:13:00

braingravyuk
Member
From: Manchester, UK
Registered: 2011-12-24
Posts: 8

Re: Yaourt database path issue

That doesn't fix anything unfortunately.

Offline

#4 2011-12-26 00:04:21

braingravyuk
Member
From: Manchester, UK
Registered: 2011-12-24
Posts: 8

Re: Yaourt database path issue

Tried compiling this from PKGBUILD but still getting the same issue.

Offline

#5 2011-12-26 00:13:20

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

Re: Yaourt database path issue

Do you get the same issue running pacman manually?

Offline

#6 2011-12-26 00:21:44

braingravyuk
Member
From: Manchester, UK
Registered: 2011-12-24
Posts: 8

Re: Yaourt database path issue

Allan wrote:

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

#7 2011-12-26 01:47:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Yaourt database path issue

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.

Offline

#8 2011-12-26 02:42:23

braingravyuk
Member
From: Manchester, UK
Registered: 2011-12-24
Posts: 8

Re: Yaourt database path issue

falconindy wrote:

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

#9 2011-12-26 02:50:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt database path issue

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

#10 2012-01-22 12:01:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt database path issue

Offline

Board footer

Powered by FluxBB