Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The ebuild phase 'unpack' has exited unexpectedly.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Thu May 29, 2014 10:35 am    Post subject: The ebuild phase 'unpack' has exited unexpectedly. Reply with quote

Code:

localhost ~ # emerge -av adobe-flash

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild  N     ] sec-policy/selinux-flash-2.20140311-r1  0 kB
[ebuild  N     ] www-plugins/adobe-flash-11.2.202.359  USE="(selinux) sse2 (-debug) -kde" ABI_X86="64 -32 (-x32)" 7,067 kB

Total: 2 packages (2 new), Size of downloads: 7,067 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) sec-policy/selinux-flash-2.20140311-r1
 * refpolicy-2.20140311.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...     [ ok ]
 * patchbundle-selinux-base-policy-2.20140311-r1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                    [ ok ]
[Errno 13] Permission denied:
   /usr/bin/sandbox /usr/lib64/portage/bin/ebuild.sh unpack
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.

>>> Failed to emerge sec-policy/selinux-flash-2.20140311-r1, Log file:

>>>  '/var/tmp/portage/sec-policy/selinux-flash-2.20140311-r1/temp/build.log'

 * Messages for package sec-policy/selinux-flash-2.20140311-r1:

 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.
localhost ~ #

I do not think this is because of selinux. For I disable the selinux, but the problem still exists.
Maybe it is related the X, of course, this is just my guess. For I can emerge everything before using X window by "startx". After using X, this problem appear.

How to solve this question?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13842

PostPosted: Fri May 30, 2014 1:21 am    Post subject: Reply with quote

What is the output of emerge --info? Is your kernel tainted? If so, can you reproduce the problem with an untainted kernel?
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Fri May 30, 2014 10:29 am    Post subject: Reply with quote

Hu wrote:
What is the output of emerge --info? Is your kernel tainted? If so, can you reproduce the problem with an untainted kernel?

Thanks for your attention, Hu!
I think the kernel is ok. And I detailed this question here: https://forums.gentoo.org/viewtopic-t-992140.html
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Fri May 30, 2014 9:49 pm    Post subject: Reply with quote

Hu:what means kernel tainted? The kernel is stored in /boot, and who can taint it?
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 532

PostPosted: Fri May 30, 2014 11:15 pm    Post subject: Reply with quote

This is part of Errno 22.
https://www.gentoo.org/proj/en/hardened/selinux/selinux-handbook.xml?part=2&chap=6&style=printable

You try it:

Code:
FEATURES="-selinux" emerge adobe-flash


If it doesn't work, you try it:

Code:
FEATURES="-selinux" emerge -u world
emerge adobe-flash
rlpkg -a -r
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Sat May 31, 2014 12:06 pm    Post subject: Reply with quote

Thanks for your suggestion, natrix.
But they did not work.
Code:

localhost ~ # FEATURES="-selinux" emerge -av world

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild   R    ] app-arch/xz-utils-5.0.5-r1  USE="nls threads -static-libs" ABI_X86="(64) -32 (-x32)" 1,276 kB
[ebuild   R    ] sys-libs/libsepol-2.2  ABI_X86="(64) -32 (-x32)" 0 kB
[ebuild   R    ] sys-apps/baselayout-2.2  USE="-build" 40 kB
[ebuild   R    ] sys-devel/gnuconfig-20131128  45 kB
[ebuild   R    ] sys-apps/which-2.20-r1  133 kB
[ebuild   R    ] app-arch/bzip2-1.0.6-r6  USE="-static -static-libs" ABI_X86="32 (64) (-x32)" 0 kB
[ebuild   R    ] sys-devel/patch-2.6.1  USE="-static {-test}" 248 kB
[ebuild   R    ] media-fonts/ttf-bitstream-vera-1.10-r3  USE="-X" 0 kB
[ebuild   R    ] media-fonts/freefonts-0.10-r3  USE="-X" 0 kB
[ebuild   R   ~] sys-firmware/iwl6005-ucode-18.168.6.1:1  0 kB
[ebuild   R    ] media-fonts/unifont-5.1.20080914  USE="-X" 0 kB
[ebuild   R    ] sys-boot/os-prober-1.53  0 kB
[ebuild   R    ] sys-power/acpitool-0.5.1-r1  0 kB
[ebuild   R    ] media-fonts/artwiz-aleczapka-en-1.3  USE="-X" 0 kB
[ebuild   R    ] app-laptop/hdapsd-20090401-r2  0 kB
[ebuild   R    ] virtual/os-headers-0  0 kB
[ebuild   R    ] sys-apps/texinfo-4.13-r2  USE="nls -static" 1,528 kB
[ebuild   R    ] sys-devel/make-3.82-r4  USE="nls -static" 1,214 kB
[ebuild   R    ] virtual/man-0-r1  0 kB
[ebuild   R    ] virtual/modutils-0  0 kB
[ebuild   R    ] sys-apps/gawk-4.0.2  USE="nls readline" 1,589 kB
[ebuild   R    ] sys-apps/less-457  USE="pcre unicode" 500 kB
[ebuild   R    ] sys-apps/diffutils-3.3  USE="nls -static" 1,170 kB
[ebuild   R    ] sys-apps/elfix-0.8.4  USE="ptpax xtpax" 366 kB
[ebuild   R    ] virtual/shadow-0  0 kB
[ebuild   R    ] sys-apps/file-5.17  USE="zlib -python -static-libs" PYTHON_TARGETS="python2_7 python3_3 (-python2_6) -python3_2" 694 kB
[ebuild   R    ] virtual/ssh-0  USE="-minimal" 0 kB
[ebuild   R    ] virtual/package-manager-0  0 kB
[ebuild   R    ] app-arch/gzip-1.5  USE="nls -pic -static" 705 kB
[ebuild   R    ] sec-policy/selinux-base-policy-2.20140311-r1  USE="unconfined" 0 kB
[ebuild   R    ] virtual/libc-0  0 kB
[ebuild   R    ] media-fonts/corefonts-1-r4  USE="-X" 0 kB
[ebuild   R    ] x11-misc/xbindkeys-1.8.4  USE="-guile -tk" 0 kB
[ebuild   R    ] sys-libs/libselinux-2.2.2-r5  USE="(python) static-libs -ruby" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_3 -python3_2" RUBY_TARGETS="ruby19 ruby20 (-ruby18)" 0 kB
[ebuild   R    ] sys-apps/sed-4.2.1-r1  USE="acl nls (selinux) -static" 0 kB
[ebuild   R    ] sys-devel/binutils-2.23.2  USE="cxx nls zlib -multislot -multitarget -static-libs {-test} -vanilla" 20,949 kB
[ebuild   R    ] virtual/dev-manager-0  0 kB
[ebuild   R    ] app-shells/bash-4.2_p45  USE="net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins -vanilla" 6,953 kB
[ebuild   R    ] sys-libs/gpm-1.20.7-r1  USE="(selinux) -static-libs" 0 kB
[ebuild   R    ] sys-apps/man-pages-3.63  USE="nls" LINGUAS="-da -de -fr -it -ja -nl -pl -ro -ru -zh_CN" 1,191 kB
[ebuild   R    ] sys-apps/grep-2.16  USE="nls pcre -static" 1,182 kB
[ebuild   R    ] sys-apps/kbd-1.15.5-r1  USE="nls pam" 1,691 kB
[ebuild   R    ] net-misc/rsync-3.0.9-r3  USE="acl iconv ipv6 -static -xattr" 775 kB
[ebuild   R    ] net-misc/iputils-20121221  USE="ipv6 ssl -SECURITY_HAZARD -caps -doc -gnutls -idn -static" 175 kB
[ebuild   R    ] sys-process/procps-3.3.9  USE="ncurses nls unicode -static-libs {-test}" 548 kB
[ebuild   R    ] net-misc/wget-1.14  USE="ipv6 nls pcre ssl zlib -debug -gnutls -idn -ntlm -static -uuid" 1,547 kB
[ebuild   R    ] virtual/pager-0  0 kB
[ebuild   R    ] sys-power/acpid-2.0.20  USE="(selinux)" 0 kB
[ebuild   R    ] media-sound/alsa-utils-1.0.27.2:0.9  USE="libsamplerate ncurses nls (selinux) -doc" 0 kB
[ebuild   R    ] media-fonts/font-bh-type1-1.0.3  USE="-X" 0 kB
[ebuild   R    ] media-fonts/font-bh-ttf-1.0.3  USE="-X" 0 kB
[ebuild   R    ] app-text/goldendict-1.0.1  USE="-debug -kde" LINGUAS="-ar_SA -bg_BG -cs_CZ -de_DE -el_GR -it_IT -lt_LT -ru_RU -uk_UA -vi_VN -zh_CN" 0 kB
[ebuild   R    ] sys-apps/ifplugd-0.28-r9  USE="(selinux) -doc" 0 kB
[ebuild   R    ] net-wireless/wpa_supplicant-2.0-r2  USE="readline (selinux) ssl -ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 -smartcard -wimax -wps" 0 kB
[ebuild   R    ] x11-terms/rxvt-unicode-9.20  USE="256-color alt-font-width blink fading-colors focused-urgency font-styles iso14755 mousewheel perl secondary-wheel unicode3 wcwidth xft -buffer-on-clear -pixbuf -startup-notification -vanilla" 0 kB
[ebuild   R    ] net-misc/dhcpcd-6.2.0-r1  USE="ipv6 udev" 0 kB
[ebuild   R    ] x11-base/xorg-server-1.15.0:0/1.15.0  USE="ipv6 nptl (selinux) suid udev xorg -dmx -doc -kdrive -minimal -static-libs -tslib -unwind -xnest -xvfb" 0 kB
[ebuild   R    ] sys-boot/grub-2.00_p5107-r2:2  USE="multislot nls truetype -custom-cflags -debug -device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test}" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -pc -qemu -qemu-mips -yeeloong" 0 kB
[ebuild   R    ] sys-apps/gradm-3.0.201401291757  USE="pam" 0 kB
[ebuild   R    ] net-firewall/iptables-1.4.20  USE="ipv6 -netlink -static-libs" 0 kB
[ebuild   R    ] app-admin/metalog-3-r1  USE="unicode" 0 kB
[ebuild   R    ] app-editors/vim-7.3.762  USE="acl cscope gpm nls -X -debug -minimal -perl -python -ruby -vim-pager" 0 kB
[ebuild   R    ] sys-libs/libsemanage-2.2  USE="(python) -ruby" PYTHON_TARGETS="python2_7 python3_3 -python3_2" RUBY_TARGETS="ruby19 (-ruby18)" 0 kB
[ebuild   R    ] sys-apps/util-linux-2.24.1-r2  USE="cramfs ncurses nls pam (selinux) suid unicode -bash-completion -caps -cytune -fdformat -python -slang -static-libs {-test} -tty-helpers -udev" PYTHON_SINGLE_TARGET="python2_7 -python3_2 -python3_3 (-python3_4)" PYTHON_TARGETS="python2_7 python3_3 -python3_2 (-python3_4)" 0 kB
[ebuild   R    ] sys-process/psmisc-22.20  USE="ipv6 nls (selinux) -X" 0 kB
[ebuild   R    ] sys-apps/findutils-4.4.2-r1  USE="nls (selinux) -static" 0 kB
[ebuild   R    ] sys-devel/gcc-4.7.3-r1:4.7  USE="cxx hardened (multilib) nls nptl openmp (-altivec) -awt -doc (-fixed-point) -fortran -gcj -go -graphite (-libssp) -mudflap -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 81,024 kB
[ebuild   R    ] sys-apps/busybox-1.21.0  USE="ipv6 pam (selinux) static -livecd -make-symlinks -math -mdev -savedconfig -sep-usr -syslog -systemd" 0 kB
[ebuild   R    ] sys-apps/net-tools-1.60_p20130513023548  USE="nls (selinux) -old-output -static" 0 kB
[ebuild   R    ] app-arch/tar-1.27.1-r2  USE="acl nls (selinux) -minimal -static -xattr" 0 kB
[ebuild   R    ] sys-apps/paxctl-0.7-r2  8 kB
[ebuild   R    ] sys-apps/coreutils-8.21  USE="acl nls (selinux) -caps -gmp -static -vanilla -xattr" 0 kB
[ebuild   R   ~] app-emulation/wine-1.6.2  USE="X alsa fontconfig gecko jpeg mono ncurses nls opengl perl png realtime run-exes (selinux) threads truetype udisks xml -capi -cups -custom-cflags -dos -gphoto2 -gsm -gstreamer -lcms -ldap -mp3 -odbc -openal -opencl -osmesa -oss (-prelink) -pulseaudio -samba -scanner -ssl {-test} -v4l -xcomposite -xinerama" ABI_X86="32 64 (-x32)" LINGUAS="-ar -bg -ca -cs -da -de -el -en -en_US -eo -es -fa -fi -fr -he -hi -hr -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 kB
[ebuild   R    ] sys-process/fcron-3.1.2-r2  USE="mta pam readline (selinux) system-crontab -debug" LINGUAS="-fr" 0 kB
[ebuild   R    ] www-client/firefox-24.5.0  USE="alsa dbus minimal (selinux) -bindist -custom-cflags -custom-optimization -debug -gstreamer -jit -libnotify (-pgo) -pulseaudio -startup-notification -system-cairo -system-icu -system-jpeg -system-sqlite {-test} -wifi" LINGUAS="-af -ak -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -nso -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW -zu" 0 kB
[ebuild   R    ] app-laptop/laptop-mode-tools-1.64  USE="acpi scsi -apm -bluetooth" 0 kB
[ebuild   R    ] sys-fs/e2fsprogs-1.42.7  USE="nls -static-libs" 5,841 kB
[ebuild   R    ] sys-apps/openrc-0.12.4  USE="ncurses netifrc pam (selinux) unicode -debug -newnet (-prefix) -static-libs -tools" 0 kB
[ebuild   R    ] virtual/editor-0  0 kB
[ebuild   R    ] sys-apps/checkpolicy-2.2  USE="-debug" 0 kB
[ebuild   R    ] sys-apps/policycoreutils-2.2.5-r4  USE="pam -audit -dbus" PYTHON_TARGETS="python2_7" 0 kB
[ebuild   R    ] sys-kernel/hardened-sources-3.13.10:3.13.10  USE="symlink -build -deblob" 0 kB
[ebuild   R    ] app-vim/vim-latex-1.8.23.20130116  USE="-html -python" PYTHON_SINGLE_TARGET="python2_7 (-python2_6)" PYTHON_TARGETS="python2_7 (-python2_6)" 0 kB
[ebuild   R    ] app-vim/vim-spell-en-20060123  0 kB
[ebuild   R    ] x11-wm/awesome-3.4.15  USE="dbus -doc -gnome" 0 kB
[ebuild   R    ] virtual/service-manager-0  USE="(-prefix)" 0 kB
[ebuild   R    ] app-admin/sudo-1.8.6_p7  USE="nls pam (selinux) sendmail -ldap -offensive -skey" 0 kB
[ebuild   R    ] sys-kernel/genkernel-3.4.49  USE="crypt (selinux) -cryptsetup (-ibm)" 0 kB
[ebuild   R    ] app-laptop/tp_smapi-0.41  USE="hdaps" 0 kB

Total: 89 packages (89 reinstalls), Size of downloads: 131,380 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sec-policy/selinux-base-policy-2.20140311-r1
>>> Running pre-merge checks for x11-base/xorg-server-1.15.0
>>> Running pre-merge checks for sys-boot/grub-2.00_p5107-r2
>>> Running pre-merge checks for app-emulation/wine-1.6.2
>>> Running pre-merge checks for www-client/firefox-24.5.0
 * Checking for at least 4 GiB disk space at "/var/tmp/portage/www-client/firefox-24.5.0/temp" ...                                                       [ ok ]
>>> Running pre-merge checks for app-laptop/tp_smapi-0.41
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.13.10-hardened/build
 * Found sources for kernel version:
 *     3.13.10-hardened
 * Checking for suitable kernel configuration options...                 [ ok ]
 * Checking for suitable kernel configuration options...                 [ ok ]

>>> Emerging (1 of 89) app-arch/xz-utils-5.0.5-r1
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.
[Errno 13] Permission denied:
   /bin/bash -c >> /usr/portage/distfiles/.__portage_test_write__ 2>/dev/null ; rval=$? ; rm -f  /usr/portage/distfiles/.__portage_test_write__ ; exit $rval
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
>>> Downloading 'http://mirrors.xmu.edu.cn/gentoo/distfiles/xz-5.0.5.tar.gz'
[Errno 13] Permission denied:
   /bin/bash -c exec "$@" wget wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/xz-5.0.5.tar.gz http://mirrors.xmu.edu.cn/gentoo/distfiles/xz-5.0.5.tar.gz
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
>>> Downloading 'http://mirrors.163.com/gentoo/distfiles/xz-5.0.5.tar.gz'
[Errno 13] Permission denied:
   /bin/bash -c exec "$@" wget wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/xz-5.0.5.tar.gz http://mirrors.163.com/gentoo/distfiles/xz-5.0.5.tar.gz
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
>>> Downloading 'rsync://mirrors.xmu.edu.cn/gentoo/distfiles/xz-5.0.5.tar.gz'
[Errno 13] Permission denied:
   /bin/bash -c exec "$@" rsync rsync -avP rsync://mirrors.xmu.edu.cn/gentoo/distfiles/xz-5.0.5.tar.gz /usr/portage/distfiles/xz-5.0.5.tar.gz
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
>>> Downloading 'http://tukaani.org/xz/xz-5.0.5.tar.gz'
[Errno 13] Permission denied:
   /bin/bash -c exec "$@" wget wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/xz-5.0.5.tar.gz http://tukaani.org/xz/xz-5.0.5.tar.gz
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
!!! Couldn't download 'xz-5.0.5.tar.gz'. Aborting.
 * Fetch failed for 'app-arch/xz-utils-5.0.5-r1', Log file:
 *  '/var/tmp/portage/app-arch/xz-utils-5.0.5-r1/temp/build.log'

>>> Failed to emerge app-arch/xz-utils-5.0.5-r1, Log file:

>>>  '/var/tmp/portage/app-arch/xz-utils-5.0.5-r1/temp/build.log'

 * Messages for package app-arch/xz-utils-5.0.5-r1:

 * Fetch failed for 'app-arch/xz-utils-5.0.5-r1', Log file:
 *  '/var/tmp/portage/app-arch/xz-utils-5.0.5-r1/temp/build.log'
localhost ~ # FEATURES="-selinux" emerge -avu world

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; quitting.

localhost ~ # FEATURES="-selinux" emerge -avuDN world

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; quitting.

localhost ~ # FEATURES="-selinux" emerge adobe-flash

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) sec-policy/selinux-flash-2.20140311-r1
 * refpolicy-2.20140311.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...     [ ok ]
 * patchbundle-selinux-base-policy-2.20140311-r1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                    [ ok ]
[Errno 13] Permission denied:
   /usr/bin/sandbox /usr/lib64/portage/bin/ebuild.sh unpack
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.

>>> Failed to emerge sec-policy/selinux-flash-2.20140311-r1, Log file:

>>>  '/var/tmp/portage/sec-policy/selinux-flash-2.20140311-r1/temp/build.log'

 * Messages for package sec-policy/selinux-flash-2.20140311-r1:

 * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.
localhost ~ #


localhost ~ # FEATURES="-selinux" emerge -av world
/var/tmp/portage/app-arch/xz-utils-5.0.5-r1/temp/build.log
Code:

[Errno 13] Permission denied:
   /bin/bash -c >> /usr/portage/distfiles/.__portage_test_write__ 2>/dev/null ; rval=$? ; rm -f  /usr/portage/distfiles/.__portage_test_write__ ; exit $rval
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn
  File "/usr/lib64/portage/pym/portage/process.py", line 511, in _exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 119, in _pre_exec
  File "/usr/lib64/portage/pym/portage/_selinux.py", line 80, in setexec
OSError: [Errno 13] Permission denied
......
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Sat May 31, 2014 12:10 pm    Post subject: Reply with quote

natrix, I have reviewed the error information.
It seems not Errno22, but Errno13.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 532

PostPosted: Sat May 31, 2014 9:28 pm    Post subject: Reply with quote

Add it in the /etc/portage/make.conf

Code:
FEATURES="-userfetch"


Or try it in the features "parallel-fetch".

Read it.

http://linuxreviews.org/man/make.conf/

If no work, what say de 5 news?
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Sun Jun 01, 2014 1:53 am    Post subject: Reply with quote

No work. I tried FEATURES="-userfetch" and FEATURES="-userfetch parallel-fetch", but neither worked.

5 news:
Code:

localhost ~ # eselect news list
News items:
  [1]   N  2012-05-21  Portage config-protect-if-modified default
  [2]   N  2012-11-06  PYTHON_TARGETS deployment
  [3]   N  2013-06-07  Portage preserve-libs default
  [4]   N  2013-08-23  Language of messages in emerge logs and output
  [5]   N  2013-09-27  Separate /usr on Linux requires initramfs
localhost ~ # eselect news read 1
2012-05-21-portage-config-protect-if-modified
  Title                     Portage config-protect-if-modified default
  Author                    Zac Medico <zmedico@gentoo.org>
  Posted                    2012-05-21
  Revision                  1

Beginning with sys-apps/portage-2.1.10.61, FEATURES=config-protect-if-modified
is enabled by default. This causes the CONFIG_PROTECT behavior to be skipped
for files that have not been modified since they were installed.

If you would like to disable this behavior by default, then set
FEATURES="-config-protect-if-modified" in make.conf. See the make.conf(5) man
page for more information about this feature.
localhost ~ # eselect news read 2
2012-11-06-PYTHON_TARGETS-deployment
  Title                     PYTHON_TARGETS deployment
  Author                    MichaÅ Górny <mgorny@gentoo.org>
  Posted                    2012-11-06
  Revision                  1

Recently, a few new Python eclasses have been deployed. As ebuilds
migrate, the way they support multiple Python implementations will
change. The previous method built Python modules for Python
implementations selected through `eselect python'. The new method uses
the PYTHON_TARGETS USE flags to explicitly name the implementations the
modules shall be built for.

If you are running a modern system with only Python 2.7 & 3.2 installed,
then you don't have to do anything. The defaults will simply fit you,
and let you keep your system up-to-date when new Python versions are
deployed.

However, if you'd like to use another set of Python implementations, you
will need to set PYTHON_TARGETS in your make.conf file appropriately.
This variable names the enabled implementations in the standard way
common to all USE_EXPAND variables.

For example, a setup enabling all major Python implementations would
look like:

   PYTHON_TARGETS="python2_7 python3_2 pypy1_9 jython2_5"

The variable should list all Python implementations which are going to
be used on the system; missing a particular value there will result
in missing Python modules.

A complete list of all possible values can be obtained using a command
equivalent to the following:

   emerge -1pv dev-python/python-exec

For more details, please see the python-r1 User's Guide [1].

[1] http://www.gentoo.org/proj/en/Python/python-r1/user-guide.xml

localhost ~ # eselect news read 3
2013-06-07-portage-preserve-libs-default
  Title                     Portage preserve-libs default
  Author                    Zac Medico <zmedico@gentoo.org>
  Posted                    2013-06-07
  Revision                  1

Beginning with sys-apps/portage-2.1.12, FEATURES=preserve-libs is
enabled by default. Even though preserve-libs makes it unnecessary to
use revdep-rebuild for most common updates, it is still a good practice
to run `revdep-rebuild -ip` after updates, in order to check if there
are any broken library dependencies that preserve-libs was not able to
handle. For example, see http://bugs.gentoo.org/show_bug.cgi?id=459038.

If you would like to disable preserve-libs by default, then set
FEATURES="-preserve-libs" in make.conf. See the make.conf(5) man page
or the following wiki page for more information:

http://wiki.gentoo.org/wiki/Preserve-libs
localhost ~ # eselect news read 4
2013-08-23-emerge-language
  Title                     Language of messages in emerge logs and output
  Author                    Andreas K. Huettel <dilfridge@gentoo.org>
  Posted                    2013-08-23
  Revision                  1

As of today, messages and logs of emerge do not use the system
locale anymore but default to English. The intention behind this
is to ease the work of bug wranglers and package maintainers,
who may have a hard time reading build logs in foreign
languages. This change only affects the language of messages
in emerge output, nothing else.

If you really want to have e.g. localized compiler error messages
in your builds, set LC_MESSAGES in your /etc/portage/make.conf.
Note that submitting localized build logs to the Gentoo Bugzilla
is discouraged. If maintainers are unable to translate the
necessary information from the build log, your bug may be closed
as NEEDINFO and you may be asked to re-open it submitting an
English build log [1] before any further action can be taken.

For more details with respect to localization, see
https://wiki.gentoo.org/wiki/Localization/HOWTO

[1] LC_MESSAGES=C emerge ...
localhost ~ # eselect news read 5
2013-09-27-initramfs-required
  Title                     Separate /usr on Linux requires initramfs
  Author                    William Hubbs <williamh@gentoo.org>
  Posted                    2013-09-27
  Revision                  1

Linux systems which have / and /usr on separate file systems but do not
use an initramfs will not be supported starting on 01-Nov-2013.

If you have / and /usr on separate file systems and you are not
currently using an initramfs, you must set one up before this date.
Otherwise, at some point on or after this date, upgrading packages
will make your system unbootable.

For more information on setting up an initramfs, see this URL:

https://wiki.gentoo.org/wiki/Initramfs/HOWTO

Due to many upstream changes, properly supporting Linux systems that
have /usr missing at boot time has become increasingly difficult.
Despite all our efforts, it already breaks in some exotic
configurations, and this trend is likely to grow worse.

For more information on the upstream changes and why using an initramfs
is the cleanest route forward, see the following URLs:

http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
https://blog.flameeyes.eu/2013/01/the-boot-process


AND, I MUST WRITE DOWN THE MOST IMPORTANT INFOMATION HERE: before using "startx", I can emerge packages, but after using "startx", the problem appeared. I did install gentoo basic system from small liveCD. Because I cannot use links without X to connect to Internet (The ID and password verification page need javascript, but links does not support these features), I just used a GUI debian system to connect to Internet, then I chroot to gentoo basic system in debian, after that I fetched only the required packages with the following command:
emerge --fetchonly -av *packages*
After fetching complete, I logout debian, go back to the initial small liveCD, chroot to gentoo basic system in the small gentoo liveCD, then I installed the packages fetched in debian system before to the basic gentoo system: emerge -av *packages*
Till here, everything is ok.
I installed metalog, dhcpcd, wpa_supplicant, ..., and I installed firefox sucessfully.
Because I have installed firefox in gentoo basic system, so now I can connect to Internet with firefox in this gentoo basic system. Thus, I startx, then run firefox, open the verification page, input the ID and password, succeeded in conecting to Internet, then I run the following command:
emerge -av adobe-flash
THE PROBLEM APPEARED.
I went out of X, run "emerge adobe-flash" in console, problem exists. Then I emerge other packages such as "emerge dhcpcd""emerge sandbox" with or without FEATURES="-selinux", the problem still exists. I go back to the gentoo liveCD, chroot to basic gentoo system, run merge, the problem still exists; I go back to the debian, chroot to basic gentoo system, run emerge, the problem still exists. EVERYTHING CHANGED AFTER STARTX IN GENTOO SYSTEM.

An additional observation: before startx in gentoo system, during the produce I chroot to basic gentoo system through debian, after I mount /dev/sdaN ( the root patition of the basic gentoo system ) to /mnt/gentoo in debian, I can cd to /mnt/gentoo directory. BUT, after startx in gentoo system, or more strictly say, after the problem appearing, during the produce I chroot to basic gentoo system through debian, after I mount /dev/adaN to /mnt/gentoo, I CANNOT cd to /mnt/gentoo, it shows "Permission denied". Interestingly, this change directory Permission deny does not appear when chroot from gentoo liveCD to basic gentoo system.

Extra information: I tried adding a staff_u login--"auser", but I cannot login with "auser". After I input the login name and password, the console go back to input interface right now. Is it related to the emerge problem above? My input is correct definitely. If I input the wrong login name or password, the console will show "Incorrect login".
add auser code:
useradd -m -G users,wheel,audio,portage -s /bin/bash auser
semanage login -a -s staff_u auser
restorecon -R -F /home/auser
localhost ~ # ls -la /home
total 28
drwxr-xr-x. 4 root root 4096 May 29 21:45 .
drw-r--r--. 23 root root 4096 May 29 09:10 ..
-rw-r--r--. 1 root root 0 May 22 19:13 .keep
drwx------. 2 root root 16384 May 28 12:54 lost+found
drwxr-xr-x. 3 auser auser 4096 May 29 21:45 auser


SO, IN MY OPINION, (of couse, it is just my guess,) if I did not use X in basic gentoo system, just still fetchonly the packages with debian, and install these packages in gentoo basic system, everything is ok.
I wonder what is the cause of this problem. I want to fix it. And re-install the gentoo system is time-consuming.
Back to top
View user's profile Send private message
XQZS
n00b
n00b


Joined: 20 Oct 2013
Posts: 56

PostPosted: Sun Jun 01, 2014 2:33 am    Post subject: Reply with quote

I also changed /etc/fstab, just added the sixth field with "1" in / partition and "2" in other partitions, but the problem still exists.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
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