Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]emerge gets permission denied?
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pirata
n00b
n00b


Joined: 13 Sep 2004
Posts: 51
Location: Peru

PostPosted: Sun Jul 06, 2008 7:14 pm    Post subject: [solved]emerge gets permission denied? Reply with quote

Just to be clear _I am_ running as root.

when I emerge sync I get this

Code:

MOTD brought to you by motd-o-matic, version 0.3

receiving file list ... done
rsync: readlink "/usr/portage/dev-perl/CPAN-Checksums" failed: Permission denied (13)
IO error encountered -- skipping file deletion
rsync: recv_generator: mkdir "/usr/portage/dev-perl/CPAN-Checksums" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
dev-perl/CPAN-Checksums/
rsync: recv_generator: failed to stat "/usr/portage/metadata/cache/dev-java/asm-1.4.3-r3": Permission denied (13)
rsync: recv_generator: failed to stat "/usr/portage/metadata/cache/dev-java/commons-dbutils-1.1": Permission denied (13)
rsync: recv_generator: failed to stat "/usr/portage/metadata/cache/dev-java/fastutil-4.4.2-r1": Permission denied (13)
rsync: recv_generator: failed to stat "/usr/portage/metadata/cache/dev-java/java-getopt-1.0.13": Permission denied (13)

Number of files: 126064
Number of files transferred: 0
Total file size: 160462451 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 2967571
File list generation time: 25.446 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 171
Total bytes received: 2968005

sent 171 bytes  received 2968005 bytes  25261.07 bytes/sec
total size is 160462451  speedup is 54.06
rsync error: some files could not be transferred (code 23) at main.c(1497) [generator=3.0.2]
>>> Exceeded PORTAGE_RSYNC_RETRIES: 3


and when I try to emerge a package , for example emerge -pvu codeine, I get:

Code:
galeon_del_pirata pirata # emerge -pvu codeine

These are the packages that would be merged, in order:

Calculating dependencies |!!! A file is not listed in the Manifest: '/usr/portage/dev-perl/libwww-perl/libwww-perl-5.803-r1.ebuild'
 -!!! A file is not listed in the Manifest: '/usr/portage/dev-python/simplejson/simplejson-1.7.3.ebuild'
 \!!! A file is not listed in the Manifest: '/usr/portage/media-video/vlc/vlc-0.9.0_alpha20080625.ebuild'
 \!!! A file is not listed in the Manifest: '/usr/portage/www-client/opera/opera-9.51_pre2059.ebuild'
 /!!! A file is not listed in the Manifest: '/usr/portage/net-analyzer/wireshark/wireshark-0.99.8.ebuild'
 /!!! A file is not listed in the Manifest: '/usr/portage/media-libs/imlib/imlib-1.9.15-r1.ebuild'
 \!!! A file is not listed in the Manifest: '/usr/portage/dev-perl/URI/URI-1.36.ebuild'
 |!!! A file is not listed in the Manifest: '/usr/portage/net-www/netscape-flash/netscape-flash-9.0.115.0.ebuild'
... done!

Total: 0 packages, Size of downloads: 0 kB


Any Ideas?


Last edited by pirata on Wed Jul 09, 2008 2:34 am; edited 1 time in total
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 471
Location: The Two Niles, Africa

PostPosted: Mon Jul 07, 2008 12:50 am    Post subject: Reply with quote

Do you have portage on NFS or something like that?

What do the file permissions say:

Code:
ls -l /usr/portage/metadata/cache/dev-java/asm-1.4.3-r3

_________________
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Back to top
View user's profile Send private message
pirata
n00b
n00b


Joined: 13 Sep 2004
Posts: 51
Location: Peru

PostPosted: Mon Jul 07, 2008 5:08 pm    Post subject: Reply with quote

No, I have gentoo installed on an reiserfs partition which is my root and my home dir on another partition, xfs iirc. and my music in an ext3 particion

First time i've ever experienced emerge issues since 2004 when I started using gentoo exclusively (except that time that in my noobness I uninstalled python :oops: )

when I type ls - l /usr/portage/metadata/cache/dev-java/asm-1.4.3-r3

I get
Code:
ls: cannot access /usr/portage/metadata/cache/dev-java/asm-1.4.3-r3: Permission denied


do you think it is a fsck error?

Any help would be appreciated.
Back to top
View user's profile Send private message
cyrillic
Veteran
Veteran


Joined: 18 Feb 2003
Posts: 7086
Location: Groton, Massachusetts USA

PostPosted: Mon Jul 07, 2008 6:55 pm    Post subject: Reply with quote

What is the output of
Code:
# df -hT
# mount
Back to top
View user's profile Send private message
pirata
n00b
n00b


Joined: 13 Sep 2004
Posts: 51
Location: Peru

PostPosted: Mon Jul 07, 2008 7:13 pm    Post subject: Reply with quote

Code:
galeon_del_pirata pirata # df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda3 reiserfs     29G   22G  6.8G  77% /
udev         tmpfs     10M  196K  9.9M   2% /dev
/dev/sda1     ext2    122M   25M   91M  22% /boot
/dev/hda1     ext2    111G  101G  3.9G  97% /home/pirata/Data
/dev/sda5     ext3    160G   69G   83G  46% /home/pirata/Music


Code:
galeon_del_pirata pirata # mount
/dev/sda3 on / type reiserfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,noexec,nosuid)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid)
/dev/sda1 on /boot type ext2 (rw)
/dev/hda1 on /home/pirata/Data type ext2 (rw)
/dev/sda5 on /home/pirata/Music type ext3 (rw)
Back to top
View user's profile Send private message
cyrillic
Veteran
Veteran


Joined: 18 Feb 2003
Posts: 7086
Location: Groton, Massachusetts USA

PostPosted: Mon Jul 07, 2008 9:27 pm    Post subject: Reply with quote

pirata wrote:
do you think it is a fsck error?

It could be. Take a look at dmesg to see if the kernel is reporting filesystem errors.

The other things you posted look OK.
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 471
Location: The Two Niles, Africa

PostPosted: Tue Jul 08, 2008 12:28 am    Post subject: Reply with quote

cyrillic wrote:
pirata wrote:
do you think it is a fsck error?

It could be. Take a look at dmesg to see if the kernel is reporting filesystem errors.

The other things you posted look OK.

It sounds like file system corruption. I can't see any other reason while root user is denied access to certain files. Try to fsck the drive.
_________________
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Back to top
View user's profile Send private message
pirata
n00b
n00b


Joined: 13 Sep 2004
Posts: 51
Location: Peru

PostPosted: Wed Jul 09, 2008 2:35 am    Post subject: Reply with quote

yeah, apparently there were some bad blocks not handled correctly. Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum