Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111873 - emerge world fails with message errno 13 permission denied.
Summary: emerge world fails with message errno 13 permission denied.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 06:24 UTC by Giorgos Akrivas
Modified: 2005-11-08 06:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giorgos Akrivas 2005-11-08 06:24:10 UTC
When I try to emerge world, I get a permission denied message. I think it may  
be related to bug 111871, which I submitted.   
    
   
    

Reproducible: Always
Steps to Reproduce:
1.emerge -uDf world 
2. 
3. 
 
Actual Results:  
Calculating world dependencies /Traceback (most recent call last):  
  File "/usr/bin/emerge", line 3112, in ?  
    if not mydepgraph.xcreate(myaction):  
  File "/usr/bin/emerge", line 1424, in xcreate  
    if not self.create(myk,myuse=binpkguseflags):  
  File "/usr/bin/emerge", line 1012, in create  
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):  
  File "/usr/bin/emerge", line 1199, in select_dep  
    myeb_matches = portage.portdb.xmatch("match-visible",x)  
  File "/usr/lib/portage/pym/portage.py", line 5538, in xmatch  
     
myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep=mydep,mykey=mykey))  
  File "/usr/lib/portage/pym/portage.py", line 5524, in xmatch  
    myval=self.gvisible(self.visible(self.cp_list(mykey)))  
  File "/usr/lib/portage/pym/portage.py", line 5622, in gvisible  
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])  
  File "/usr/lib/portage/pym/portage.py", line 5361, in aux_get  
    self.auxdb[mylocation][cat][pkg] = mydata  
  File "/usr/lib/portage/pym/portage_db_template.py", line 85, in __setitem__  
    return self.set_values(key,values)  
  File "/usr/lib/portage/pym/portage_db_flat.py", line 95, in set_values  
    os.rename(update_fp, self.fullpath+key)  
OSError: [Errno 13] Permission denied  
 

Expected Results:  
proceed without errors. 

Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r5 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3800+ 
Gentoo Base System version 1.6.13 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5-r2, 2.4.2 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo  
http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.mirror.icd.hu/ 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" 
LANG="en_US.utf8" 
LINGUAS="en el" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X a52 aalib alsa apache2 arts audiofile avi bash-completion berkdb 
bitmap-fonts bonobo bzip2 cdr crypt cups curl directfb divx4linux dts dv dvd 
dvdread eds emboss encode esd exif expat fam fame fbcon ffmpeg flac foomaticdb 
fortran gdbm ggi gif gimpprint gimprint glut gmp gnome gnutls gpm gstreamer gtk 
gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 jack java jpeg junit kde 
kdeenablefinal lcms libcaca libwww lzw lzw-tiff mad matroska mhash mng mozilla 
mp3 mpeg mysql nas ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss 
pam pcre pdflib perl pic png ppds python qt quicktime readline real recode 
samba sdl spell ssl subtitles symlink tcpd tetex theora tiff truetype 
truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xinerama 
xml xml2 xmms xpm xv xvid xvmc zlib linguas_en linguas_el userland_GNU 
kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 lzap 2005-11-08 06:31:44 UTC
Provide output of these commands:

# whoami

# ls /usr/lib/portage/pym -la
Comment 2 lzap 2005-11-08 06:33:27 UTC
and

# mount
Comment 3 Giorgos Akrivas 2005-11-08 06:42:24 UTC
It seems that my /usr ReiserFS filesystem is corrupted (I have an AMD64 64-bit 
system). Thank you for your time. 
 
whoami  
root  
 
ls /usr/lib/portage/pym -la 
total 850 
drwxr-xr-x  2 root root   1832 Νοέ  8 12:41 . 
drwxr-xr-x  4 root root     96 Αύγ  6 16:23 .. 
-rw-r--r--  1 root root   9815 Νοέ  8 12:40 cvstree.py 
-rw-r--r--  1 root root   9291 Νοέ  8 12:40 cvstree.pyo 
-rw-r--r--  1 root root  12884 Νοέ  8 12:40 dcdialog.py 
-rw-r--r--  1 root root  12913 Νοέ  8 12:40 dcdialog.pyo 
-rw-r--r--  1 root root   6176 Νοέ  8 12:40 dispatch_conf.py 
-rw-r--r--  1 root root   5472 Νοέ  8 12:40 dispatch_conf.pyo 
-rw-r--r--  1 root root  22900 Νοέ  8 12:40 emergehelp.py 
-rw-r--r--  1 root root  22200 Νοέ  8 12:41 emergehelp.pyo 
-rw-r--r--  1 root root  15220 Νοέ  8 12:40 getbinpkg.py 
-rw-r--r--  1 root root  15566 Νοέ  8 12:40 getbinpkg.pyo 
-rw-r--r--  1 root root   4231 Νοέ  8 12:40 output.py 
-rw-r--r--  1 root root   6123 Νοέ  8 12:40 output.pyo 
-rw-r--r--  1 root root   3900 Νοέ  8 12:40 portage_checksum.py 
-rw-r--r--  1 root root   4420 Νοέ  8 12:40 portage_checksum.pyo 
-rw-r--r--  1 root root   2367 Νοέ  8 12:40 portage_const.py 
-rw-r--r--  1 root root   1983 Νοέ  8 12:40 portage_const.pyo 
-rw-r--r--  1 root root   4614 Νοέ  8 12:40 portage_contents.py 
-rw-r--r--  1 root root   5225 Νοέ  8 12:40 portage_contents.pyo 
-rw-r--r--  1 root root   2856 Νοέ  8 12:40 portage_data.py 
-rw-r--r--  1 root root   2894 Νοέ  8 12:40 portage_data.pyo 
-rw-r--r--  1 root root   1564 Νοέ  8 12:40 portage_db_anydbm.py 
-rw-r--r--  1 root root   2425 Νοέ  8 12:40 portage_db_anydbm.pyo 
-rw-r--r--  1 root root   1782 Νοέ  8 12:40 portage_db_cpickle.py 
-rw-r--r--  1 root root   2781 Νοέ  8 12:40 portage_db_cpickle.pyo 
-rw-r--r--  1 root root   3062 Νοέ  8 12:40 portage_db_flat.py 
-rw-r--r--  1 root root   3424 Νοέ  8 12:40 portage_db_flat.pyo 
-rw-r--r--  1 root root   4301 Νοέ  8 12:40 portage_db_template.py 
-rw-r--r--  1 root root   6066 Νοέ  8 12:40 portage_db_template.pyo 
-rw-r--r--  1 root root    861 Νοέ  8 12:40 portage_db_test.py 
-rw-r--r--  1 root root    751 Νοέ  8 12:40 portage_db_test.pyo 
-rw-r--r--  1 root root   4893 Νοέ  8 12:40 portage_dep.py 
-rw-r--r--  1 root root   3838 Νοέ  8 12:40 portage_dep.pyo 
-rw-r--r--  1 root root   4457 Νοέ  8 12:40 portage_exception.py 
-rw-r--r--  1 root root   9594 Νοέ  8 12:40 portage_exception.pyo 
-rw-r--r--  1 root root   5403 Νοέ  8 12:40 portage_exec.py 
-rw-r--r--  1 root root   5370 Νοέ  8 12:40 portage_exec.pyo 
-rw-r--r--  1 root root   1630 Νοέ  8 12:40 portage_file.py 
-rw-r--r--  1 root root   1871 Νοέ  8 12:40 portage_file.pyo 
-rw-r--r--  1 root root   4918 Νοέ  8 12:40 portage_gpg.py 
-rw-r--r--  1 root root   4388 Νοέ  8 12:40 portage_gpg.pyo 
-rw-r--r--  1 root root    846 Νοέ  8 12:40 portage_localization.py 
-rw-r--r--  1 root root    856 Νοέ  8 12:40 portage_localization.pyo 
-rw-r--r--  1 root root  10215 Νοέ  8 12:40 portage_locks.py 
-rw-r--r--  1 root root   9334 Νοέ  8 12:40 portage_locks.pyo 
-rw-r--r--  1 root root 233683 Νοέ  8 12:40 portage.py 
-rw-r--r--  1 root root 195429 Νοέ  8 12:40 portage.pyo 
-rw-r--r--  1 root root   1960 Νοέ  8 12:40 portage.py.rej 
-rw-r--r--  1 root root  12573 Νοέ  8 12:40 portage_util.py 
-rw-r--r--  1 root root  13482 Νοέ  8 12:40 portage_util.pyo 
-rw-r--r--  1 root root  10621 Νοέ  8 12:40 xpak.py 
-rw-r--r--  1 root root  12227 Νοέ  8 12:40 xpak.pyo 
  
mount 
/dev/hda7 on / type reiserfs (rw,noatime,notail) 
proc on /proc type proc (rw) 
sysfs on /sys type sysfs (rw) 
udev on /dev type tmpfs (rw,nosuid) 
devpts on /dev/pts type devpts (rw) 
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) 
/dev/hda1 on /mnt/windows type ntfs (rw,noatime,utf8) 
/dev/hda9 on /mnt/media_A type vfat (rw,noexec,nosuid,nodev,noatime,utf8) 
/dev/mapper/vg-home on /home type reiserfs (rw,noatime,notail) 
/dev/hda12 on /mnt/media_B type vfat (rw,noexec,nosuid,nodev,noatime,utf8) 
/dev/mapper/vg-opt on /opt type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-tmp on /tmp type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-usr on /usr type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-backup on /.snapshots type reiserfs (rw,noatime,notail) 
/dev/mapper/vg-var on /var type reiserfs (rw,noatime,notail) 
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)