You are not logged in.

#1 2012-06-09 19:29:53

tinySpark
Member
Registered: 2012-06-09
Posts: 19

yaourt failed to initialize alpm library

I just did a fresh install this morning and now I am trying to get yaourt working. This is my first time working with Arch. I installed package-query and yaourt using the directions found here, but when I run yaourt I get this error:

[andy@myhost ~]$ yaourt dropbox
failed to initialize alpm library (could not find or read directory)

There are a few other forum posts about similar issues but I wasn't able to use any of them to fix the problem. If anyone has any suggestions for fixing the problem it would be much appreciated.

Offline

#2 2012-06-10 08:28:50

msx
Member
From: solar.system/earth/ar/bue/mdp
Registered: 2010-08-08
Posts: 184
Website

Re: yaourt failed to initialize alpm library

Did you install yaourt/package-query by wgetting their PKGBUILDs or by adding the repo to /etc/pacman.conf? Usually that repo is behind the AUR/yaourt package.
Please try this:
1. uninstall yaourt and rename -if it's still there- /etc/yaourtrc to anything else.
2. issue a # pacman -Syyuu to make sure your system is up to date.
3. download packer-color's PKGBUILD: https://aur.archlinux.org/packages/pa/p … r/PKGBUILD
4. compile and install it: makepkg -cis (refer to man pages to get used to makepkg and also check the conf file at /etc/makepkg.conf)
5. if things went allright now you can try to install yaourt: packer -S yaourt

I want to warn you that latest yaourt may fail from time to time while installing packages from AUR so if you find that you can't build a package try downloading and building it with packer or try any of the other AUR helpers like cower, aurget, tupac, tusdah, etc.


Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org

Offline

#3 2012-06-10 12:49:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: yaourt failed to initialize alpm library

tinySpark wrote:

I just did a fresh install this morning and now I am trying to get yaourt working. This is my first time working with Arch. I installed package-query and yaourt using the directions found here, but when I run yaourt I get this error:

[andy@myhost ~]$ yaourt dropbox
failed to initialize alpm library (could not find or read directory)

There are a few other forum posts about similar issues but I wasn't able to use any of them to fix the problem. If anyone has any suggestions for fixing the problem it would be much appreciated.

Do NOT use the [archlinuxfr] repository. It sucks and is full of outdated and broken stuff.

Read the AUR wiki page and build yaourt and package-query using makepkg instead. (or better, get cower instead of yaourt)

Last edited by Mr.Elendig (2012-06-10 12:50:09)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2012-06-10 13:15:26

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: yaourt failed to initialize alpm library

Or use the yaourt package from the AUR. Works rather flawlessly her since quite some time.


To know or not to know ...
... the questions remain forever.

Offline

#5 2012-06-10 13:41:48

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: yaourt failed to initialize alpm library

That is what I said!


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2012-06-10 19:30:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: yaourt failed to initialize alpm library

Packer seems to be a good alternative yaourt fails, but why on earth would you recommend someone install packer just to install yaourt?  As already said, just use the yaourt PKGBUILD in the AUR.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-08-23 15:20:57

jawbonegroove
Member
From: pdx / usa
Registered: 2013-07-05
Posts: 7

Re: yaourt failed to initialize alpm library

resurrecting this thread because of a the same error running pacman under bedrock linux.

still looking into where the problem is exactly, but i'm pretty certain it's a due to locale environment variables.

in my case it seems that the system is confused by the "difference" between

en_US.UTF-8

and

"en_US.UTF-8"

Offline

#8 2014-08-23 15:25:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: yaourt failed to initialize alpm library

jawbonegroove wrote:

resurrecting this thread because of a the same error running pacman under bedrock linux.

still looking into where the problem is exactly, but i'm pretty certain it's a due to locale environment variables.

in my case it seems that the system is confused by the "difference" between

en_US.UTF-8

and

"en_US.UTF-8"

So you bumped an old thread, which is against the rules to get help with a different distro, which is against the rules.

Do I have that right?

Offline

#9 2014-08-23 15:43:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: yaourt failed to initialize alpm library

Closed for reasons noted above.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB