You are not logged in.

#1 2009-07-21 22:29:49

webframp
Member
Registered: 2008-11-15
Posts: 35
Website

[SOLVED] Permission denied in /var/lib/pacman/local

Could someone please explain this output to me:

$ ls -l /var/lib/pacman/local/syslog-ng-3.0.3-1/ 
ls: cannot access /var/lib/pacman/local/syslog-ng-3.0.3-1/desc: Permission denied
ls: cannot access /var/lib/pacman/local/syslog-ng-3.0.3-1/depends: Permission denied
ls: cannot access /var/lib/pacman/local/syslog-ng-3.0.3-1/files: Permission denied
ls: cannot access /var/lib/pacman/local/syslog-ng-3.0.3-1/install: Permission denied
total 0
?????????? ? ? ? ?                ? depends
?????????? ? ? ? ?                ? desc
?????????? ? ? ? ?                ? files
?????????? ? ? ? ?                ? install

It's the same for 4 pacakge subdir in /var/lib/pacman/local/*:

/var/lib/pacman/local/sdparm-1.03-2/
/var/lib/pacman/local/syslog-ng-3.0.3-1/
/var/lib/pacman/local/syslog-ng-3.0.3-1/
/var/lib/pacman/local/usbutils-0.84-1/

Unfortunately this means some package operations give permission denied as well.

Thanks

Last edited by webframp (2009-07-29 23:05:25)

Offline

#2 2009-07-21 23:06:53

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

Re: [SOLVED] Permission denied in /var/lib/pacman/local

Did you run out of space at all?  Reinstalling those packages should fix the issue.

Offline

#3 2009-07-22 04:31:24

webframp
Member
Registered: 2008-11-15
Posts: 35
Website

Re: [SOLVED] Permission denied in /var/lib/pacman/local

I think it may be a more involved filesystem issue. I have plenty of space.

/dev/sda5             7.5G  286M  7.2G   4% /var

attempting to remove/reinstall the packages also gives errors.

lots of

error: could not open file /var/lib/pacman/local/sdparm-1.03-2/depends: Permission denied

then

error: could not open file /var/lib/pacman/local/sdparm-1.03-2/files: No such file or directory
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
sdparm: /usr/bin/sdparm exists in filesystem
sdparm: /usr/share/licenses/sdparm/COPYING exists in filesystem
sdparm: /usr/share/man/man8/sdparm.8.gz exists in filesystem
Errors occurred, no packages were upgraded.

even pacman -Sf gives the above errors.

I'm stumped, but I'm leaning towards file system corruption at this point.

Offline

#4 2009-07-25 14:31:47

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] Permission denied in /var/lib/pacman/local

Ive got such an ??? type issue in my filesystem recently (reiserfs), but temproraily i moved this to another position of my sytem where it doesn't bother me, and when i was so much time, i've rebuild the filesystem from tree.

It was a such a hard issue with my filesystem sad

Offline

#5 2009-07-29 23:05:08

webframp
Member
Registered: 2008-11-15
Posts: 35
Website

Re: [SOLVED] Permission denied in /var/lib/pacman/local

Turns out it was filesystem related. even though the filesystem would mount and was mostly readable, jfs_fsck reported issues. I copied everything to a temp location with 'cp -a', formatted the device, copied everything back and reinstalled the few packages with missing pacman db entries. no issues now.

Offline

Board footer

Powered by FluxBB