You are not logged in.

#1 2011-02-27 08:38:31

codetrick
Member
Registered: 2011-02-24
Posts: 5

[Solved]Yaourt sync issue

I installed yaourt according to the instruction here http://archlinux.fr/yaourt-en
But when I run yaourt -Syu --devel --aur , I get an error: problem setting dbpath '//usr/local/var/lib/pacman/' (could not find or read directory)
The directory doesn't exist and pacman -v shows nothing related to that directory. What should I do?[]

Last edited by codetrick (2011-03-04 14:28:03)

Offline

#2 2011-02-27 09:54:34

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [Solved]Yaourt sync issue

The default dbpath is "/var/lib/pacman". Change it in your pacman.conf

Offline

#3 2011-02-27 10:37:05

codetrick
Member
Registered: 2011-02-24
Posts: 5

Re: [Solved]Yaourt sync issue

shadyabhi wrote:

The default dbpath is "/var/lib/pacman". Change it in your pacman.conf

I've checked pacman.conf and didn't find any problem. By the way, pacman works just fine. The problem is with yaourt.

Offline

#4 2011-02-27 10:39:39

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

Re: [Solved]Yaourt sync issue

There are multiple way to achieve installing yaourt on the page you linked.  Which one did you use?

Offline

#5 2011-03-04 10:14:42

codetrick
Member
Registered: 2011-02-24
Posts: 5

Re: [Solved]Yaourt sync issue

Ok. Now I am sure there's something wrong with package-query. So I tried to change the configuration file with  package-query --config "/etc/pacman.conf"    But I still got the same error. What should I try next?

Offline

#6 2011-03-04 13:02:06

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [Solved]Yaourt sync issue

codetrick wrote:

Ok. Now I am sure there's something wrong with package-query. So I tried to change the configuration file with  package-query --config "/etc/pacman.conf"    But I still got the same error. What should I try next?

Because you didnt confirm as to what procedure you used to install yaourt, install it again the safest way.

$pacman -R yaourt

Now, check if you have [archlinuxfr] enabled in your pacman.conf, if not add it.

[archlinuxfr] 
Server = http://repo.archlinux.fr/$arch"

Now,

$pacman -Syyu
$pacman -S yaourt

See if the error is still there.

Offline

#7 2011-03-04 13:34:08

codetrick
Member
Registered: 2011-02-24
Posts: 5

Re: [Solved]Yaourt sync issue

Same error sad
maybe there's some bad conf files remaining in the system...... I installed package-query with "./configure make make install" method before. And later using makepkg to "overlap" it. Will it cause mess? I tried pacman -Rsn but no help at all...... any suggestions?
I'm new to arch and doesn't know much about how linux works. Maybe I should consider reinstalling the os to see if the problem remains?

Offline

#8 2011-03-04 13:53:56

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [Solved]Yaourt sync issue

Nowhere on the page you linked does it advise you to to install using the method you did.  This is why you have ended up with it looking for files in /usr/local.  Uninstall everything you installed manually to do with package-query and delete any left over files in /usr/local... then install using pacman.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#9 2011-03-04 14:01:31

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [Solved]Yaourt sync issue

codetrick wrote:

Same error sad
maybe there's some bad conf files remaining in the system...... I installed package-query with "./configure make make install" method before. And later using makepkg to "overlap" it. Will it cause mess? I tried pacman -Rsn but no help at all...... any suggestions?
I'm new to arch and doesn't know much about how linux works. Maybe I should consider reinstalling the os to see if the problem remains?


Why did you try installing things manually? Always use pacman.
As loafer correctly pointed out, you should have chosen the right path with "--prefix=" while doing ./configure...

Now, its all messed up so you are now left with doing all things manually..

Last edited by shadyabhi (2011-03-04 14:02:13)

Offline

#10 2011-03-04 14:26:30

codetrick
Member
Registered: 2011-02-24
Posts: 5

Re: [Solved]Yaourt sync issue

My fault...
Now yaourt works. I should read some wiki to learn more about pacman and archlinux.
Thanks for your help.

Offline

#11 2011-12-18 00:05:22

Grandma
Member
Registered: 2011-12-17
Posts: 3

Re: [Solved]Yaourt sync issue

I have the same problem. I get it when try to install 'package-query' and 'yaourt' from AUR, but i install it manually.
In INSTALL file of package-query I found interesting thing:

By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc.  You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX', where PREFIX must be an
absolute file name.

I uninstall yaourt and package-query using pacman and delete /usr/local directory (the system is fresh and this directory is not important)
Then i do

./configure --prefix=''
sudo make install

With yaourt i have more problems... Iven if you delete "/usr/local" from Makefile you don't solve the problem.
I find all "/usr/local" substrings in files from yaourt.x.x.x.tar.gz with commands:

tar -xzvf yaourt.x.x.x.tar.gz
cd yaourt.x.x.x
grep -RiHn 'usr/local/' *

and manually delete them.
Then i make and install my yaourt. It worked.

Oh, i know that it is unnormal, but i can't find anything in internet and write it to others.

P.S. I may install yaourt with this instruction^ http://archlinux.fr/yaourt-en  (with pacman)

Last edited by Grandma (2011-12-18 00:06:52)

Offline

Board footer

Powered by FluxBB