Current Position:Home > Synchronize/Permission Issues With Pacman-Solved

Synchronize/Permission Issues With Pacman-Solved

Update:11-30Source: network consolidation
Advertisement
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

The Best Answer

Advertisement
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.