Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133847 - Portage 2.1_rc1 has died - Errno 13 - Permission denied
Summary: Portage 2.1_rc1 has died - Errno 13 - Permission denied
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 133846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-20 01:41 UTC by Bob
Modified: 2006-05-20 23:49 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 Bob 2006-05-20 01:41:30 UTC
# emerge portage -vp

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

Calculating dependencies... done!
[ebuild     U ] sys-apps/portage-2.1_rc1-r3 [2.1_rc1-r1] USE="-build -doc" 0 kB

Total size of downloads: 0 kB


# emerge portage
Calculating dependencies... done!
>>> Emerging (1 of 1) sys-apps/portage-2.1_rc1-r3 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
[Errno 13] Permission denied:
   /usr/bin/sandbox /usr/lib/portage/bin/ebuild.sh unpack


# emerge --info
Portage 2.1_pre9 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Pentium Pro
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentiumpro -pipe -O3 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentiumpro -pipe -O3 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cli crypt cups dri eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-20 02:26:12 UTC
*** Bug 133846 has been marked as a duplicate of this bug. ***
Comment 2 Zac Medico gentoo-dev 2006-05-20 02:53:35 UTC
It looks like you need to `chmod o+rx /usr/bin/sandbox` (or disable userpriv).
Comment 3 Zac Medico gentoo-dev 2006-05-20 14:18:11 UTC
I'm not sure how your sandbox lost it's o+x bit, but I'm pretty sure it's not a portage bug.  Please reopen if you have evidence indicating otherwise.
Comment 4 Bob 2006-05-20 23:30:13 UTC
I don't know how the bits would have changed either, as I did not change them.  I did recently (May 15) update the sandbox ebuild from 1.2.12 to 1.2.17.  Perhaps this is a sandbox ebuild issue?

(In reply to comment #2)
> It looks like you need to `chmod o+rx /usr/bin/sandbox` (or disable userpriv).
> 


The chmod command doesn't appear to have helped:

# chmod o+rx /usr/bin/sandbox
# vdir /usr/bin/sandbox
-rwxr-xr-x 1 root root 16112 May 14 16:29 /usr/bin/sandbox
# emerge portage
Calculating dependencies... done!
>>> Emerging (1 of 1) sys-apps/portage-2.1_rc1-r3 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
[Errno 13] Permission denied:
   /usr/bin/sandbox /usr/lib/portage/bin/ebuild.sh unpack
#

Interestingly, removing FEATURES=userpriv *did* solve the problem.  Can you explain this?
Comment 5 Zac Medico gentoo-dev 2006-05-20 23:49:12 UTC
(In reply to comment #4)
> Interestingly, removing FEATURES=userpriv *did* solve the problem.  Can you
> explain this?

Bad permissions on /usr or /usr/bin could also cause it.  Can you run /usr/bin/sandbox from the command line as a normal user (not root)?