You are not logged in.

#1 2006-10-18 10:14:15

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Synchronize/Permission Issues With Pacman-Solved

Hi Friends,

I just re-installed Arch (base only) and wanted to get gui. So, I edited pacman.conf and included a directory in "custom" where many packages are saved. I had logged in as root.

Now, when I do "pacman -Syu" I get:

:: Synchronizing package databases...
:: current is up to date
:: extra is up to date
:: unstable is up to date
:: community is up to date
failed copying /home/pacman/custom.db.tar.gz

failed to synchronize custom
error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
db_read: error: /var/lib/pacman/community/perl-net-ipv6addr-0.2-2/depends: Permission denied
error: could not open sync database: custom
       have you used --refresh yet?


Again, on doing "pacman -S xfce4" I get

error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
db_read: error: /var/lib/pacman/community/perl-net-ipv6addr-0.2-2/depends: Permission denied
error: could not open sync database: custom
       have you used --refresh yet?


Then I edited pacman.conf and commented out custom and then did "pacman -Syu" and got

:: Synchronizing package databases...
:: current is up to date
:: extra is up to date
:: unstable is up to date
:: community is up to date
error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
db_read: error: /var/lib/pacman/community/perl-net-ipv6addr-0.2-2/depends: Permission denied
:: Replace mkinitrd with mkinitcpio from "current"? [Y/n] y
:: Replace devfsd with udev from "current"? [Y/n] y

Remove:  mkinitrd devfsd

Targets: klibc-1.4.29-2 klibc-extras-2.1-1 klibc-udev-102-1
         gen-init-cpio-2.6.17-1 mkinitcpio-0.5.8-1 udev-102-1 autoconf-2.60-1
         binutils-2.17-1 bison-2.3-1 coreutils-5.97-1 cracklib-2.8.9-1
         db-4.4.20-3 dcron-3.2-1 dialog-1.0_20060221-1 e2fsprogs-1.39-1
         filesystem-0.7.2-5 gcc-4.1.1-3 gettext-0.14.6-2 kernel-headers-2.6.18-3
         glibc-2.4-4 groff-1.19.2-1 gzip-1.2.4b-4 initscripts-0.7.2-9
         iputils-021109-5 jfsutils-1.1.11-1 kbd-1.12-5 kernel26-2.6.18.1-1
         libpcap-0.9.5-1 libusb-0.1.12-1 lilo-22.7.3-1 m4-1.4.7-1 man-1.6d-1
         man-pages-2.39-1 mkinitrd-1.01-31 module-init-tools-3.2.2-3
         openssl-0.9.8d-1 pam-0.81-2 perl-5.8.8-4 ppp-2.4.4-3 procps-3.2.7-1
         rp-pppoe-3.8-1 shadow-4.0.18.1-2 slocate-3.1-2 vim-7.0.118-1
         wget-1.10.2-2 xfsprogs-2.8.10-1

Total Package Size:   110.4 MB

Proceed with upgrade? [Y/n] n


So, after excluding "custom," pacman is working but still giving "permission denied" error at the begining.

Now, when I do "pacman -S kde" I get

error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
db_read: error: /var/lib/pacman/community/perl-net-ipv6addr-0.2-2/depends: Permission denied
error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
db_read: error: /var/lib/pacman/community/perl-net-ipv6addr-0.2-2/depends: Permission denied
error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
kde: not found in sync db


So, it seems pacman has problems installing packages which are not currently installed, like xfce4 or kde. With the packages currently installed, it behaves properly as when I did "pacman -S wget" which is already installed, it gave me as

error: /var/lib/pacman/extra/cl-sdraw-1.0.0-1/desc: Permission denied
db_read: error: /var/lib/pacman/community/perl-net-ipv6addr-0.2-2/depends: Permission denied

Targets: wget-1.10.2-2

Total Package Size:   0.5 MB

Proceed with upgrade? [Y/n] n


Hence, I'm unable to install any single packages and also could not understand that "permission denied" error. Also, I am unable to delete /var/lib/pacman/current, extra, etc., or change their permission using chmod 751. Please help.

Thanks in advance.

Ravi S Ghosh

Offline

#2 2006-10-18 14:48:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Synchronize/Permission Issues With Pacman-Solved

Are you running as root?  Root should be able to overwrite those files and delete them

Offline

#3 2006-10-18 19:52:57

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Synchronize/Permission Issues With Pacman-Solved

yes, i'm logged in as root only but even then i'm not able to do anything, change permission of fold/files  or delete folder/files.

Offline

#4 2006-10-18 22:09:42

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Synchronize/Permission Issues With Pacman-Solved

Sounds like filesystem corruption. Boot into single user mode and run the fsck tools for your specific filesystem.

Offline

#5 2006-10-19 14:04:02

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Synchronize/Permission Issues With Pacman-Solved

Now i'm unable to boot, hangs when mounting / partition. While trying to mount the arch partition from other linux, it hangs.

Offline

#6 2006-10-19 15:57:30

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: Synchronize/Permission Issues With Pacman-Solved

ravisghosh wrote:

Now i'm unable to boot, hangs when mounting / partition. While trying to mount the arch partition from other linux, it hangs.

Try to just fsck the partitions, don't mount them.  Certainly doesn't sound good though.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#7 2006-10-21 01:45:21

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Synchronize/Permission Issues With Pacman-Solved

Well, it seems that i was getting that error because at times I would chroot to arch partition using ubuntu and then pacman and other commands. Now, I've reinstalled arch and have not done chroot from ubuntu and not getting the same error.

Thanks for advices.

Offline

Board footer

Powered by FluxBB