You are not logged in.

#1 2011-01-06 23:42:36

kradle
Member
Registered: 2010-07-21
Posts: 31

[SOLVED] error : /var/lib/pacman//local : No such file or directory

After playing a bit with pacman-cage, which I've now uninstalled (and uncaged the database), seems like pacman is now broken.

When attempting to install with yaourt I get (for example):

$ yaourt -S lesspipe
error: 'lesspipe': could not find or read package
error : /var/lib/pacman//local : No such file or directory

And when attempting to install with pacman:

error: 'lesspipe': could not find or read package


Searching with pacman brings back no results.

What happened? How can I fix it?

Last edited by kradle (2011-01-07 00:04:36)

Offline

#2 2011-01-06 23:47:48

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: [SOLVED] error : /var/lib/pacman//local : No such file or directory

By "uncaged the database" you must mean "derp I deleted my entire list of installed packages". Not good. Without /var/lib/pacman/local/, pacman has lost track of everything that is installed on your system. You should really try and find the last copy of it you have and restore that, otherwise your system is all but hosed.

And seriously, don't post a pacman question and then show yaourt output. That's stupid, especially when you state "pacman is broken".

Offline

#3 2011-01-07 00:00:08

kradle
Member
Registered: 2010-07-21
Posts: 31

Re: [SOLVED] error : /var/lib/pacman//local : No such file or directory

No, I just did sudo pacman-cage and sudo pacman-uncage a couple of times because caged pacman would complain about lack of disk space.

No reason to be so blatant IMO. I posted yaourt output just because it gave additional information that just pacman didn't... I just pasted both outputs. Is that so bad?

I fixed this now by replacing the files in /var/lib/pacman/ with the backup I had in /var/lib/pacman/pacman.bak/pacman.bak/pacman.bak/ (which was the only backup to have the /local/ directory). It works now, anyway.

Last edited by kradle (2011-01-07 00:02:53)

Offline

#4 2011-01-07 00:02:30

kradle
Member
Registered: 2010-07-21
Posts: 31

Re: [SOLVED] error : /var/lib/pacman//local : No such file or directory

And I didn't touch /var/lib/pacman/ or do anything other than running sudo pacman-cage and sudo pacman-uncage. Your arrogance isn't helpful...

Offline

Board footer

Powered by FluxBB