View previous topic :: View next topic |
Author |
Message |
Utsuho Reiuji Apprentice
Joined: 03 Apr 2013 Posts: 179
|
Posted: Tue Sep 23, 2014 10:06 pm Post subject: [solved] portage failed to unpack java |
|
|
Hey guys,
I'm having this update problem (sorry for wall of paste):
Code: | >>> Failed to emerge dev-java/oracle-jdk-bin-1.8.0.20, Log file:
>>> '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.80, 0.73, 0.55
* Package: dev-java/oracle-jdk-bin-1.8.0.20
* Repository: gentoo
* Maintainer: java@gentoo.org
* USE: X abi_x86_64 alsa amd64 elibc_glibc fontconfig kernel_linux userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking jdk-8u20-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/work
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/distdir/jdk-8u20-linux-x64.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
* ERROR: dev-java/oracle-jdk-bin-1.8.0.20::gentoo failed (unpack phase):
* failure unpacking jdk-8u20-linux-x64.tar.gz
*
* Call stack:
* ebuild.sh, line 93: Called src_unpack
* environment, line 2532: Called default
* phase-functions.sh, line 770: Called default_src_unpack
* phase-functions.sh, line 797: Called __eapi0_src_unpack
* phase-helpers.sh, line 648: Called unpack 'jdk-8u20-linux-x64.tar.gz'
* phase-helpers.sh, line 357: Called __unpack_tar 'gzip -d'
* phase-helpers.sh, line 299: Called __assert_sigpipe_ok 'failure unpacking jdk-8u20-linux-x64.tar.gz'
* isolated-functions.sh, line 39: Called die
* The specific snippet of code:
* [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
*
* If you need support, post the output of `emerge --info '=dev-java/oracle-jdk-bin-1.8.0.20::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-java/oracle-jdk-bin-1.8.0.20::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/work'
* S: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/work/jdk'
* Messages for package dev-java/oracle-jdk-bin-1.8.0.20:
* ERROR: dev-java/oracle-jdk-bin-1.8.0.20::gentoo failed (unpack phase):
* failure unpacking jdk-8u20-linux-x64.tar.gz
*
* Call stack:
* ebuild.sh, line 93: Called src_unpack
* environment, line 2532: Called default
* phase-functions.sh, line 770: Called default_src_unpack
* phase-functions.sh, line 797: Called __eapi0_src_unpack
* phase-helpers.sh, line 648: Called unpack 'jdk-8u20-linux-x64.tar.gz'
* phase-helpers.sh, line 357: Called __unpack_tar 'gzip -d'
* phase-helpers.sh, line 299: Called __assert_sigpipe_ok 'failure unpacking jdk-8u20-linux-x64.tar.gz'
* isolated-functions.sh, line 39: Called die
* The specific snippet of code:
* [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
*
* If you need support, post the output of `emerge --info '=dev-java/oracle-jdk-bin-1.8.0.20::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-java/oracle-jdk-bin-1.8.0.20::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/work'
* S: '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/work/jdk' |
so portage fails to unpack java... unpacking it manually works however...
any ideas?
Last edited by Utsuho Reiuji on Fri Oct 03, 2014 11:19 am; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Utsuho Reiuji Apprentice
Joined: 03 Apr 2013 Posts: 179
|
Posted: Wed Sep 24, 2014 12:38 am Post subject: |
|
|
Jaglover wrote: | Quote: | gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/distdir/jdk-8u20-linux-x64.tar.gz: Permission denied |
That's your error. Did you download it manually? |
that was the 1st thing I checked, but even after changing owner to root, portage fails to unpack it..
edit: is there a way I can just unpack it and order portage to use the unpacked source? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Utsuho Reiuji Apprentice
Joined: 03 Apr 2013 Posts: 179
|
Posted: Sun Sep 28, 2014 1:15 pm Post subject: |
|
|
While doing my weekly updates, I noticed a symlink in "/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.20/distdir/" which curiously was named "jdk-8u20-linux-x64.tar.gz".
Deleting it fixed my problem.
No idea how that symlink appeared however... |
|
Back to top |
|
|
mhex Apprentice
Joined: 18 Feb 2005 Posts: 160 Location: Germany/Berlin
|
Posted: Tue Nov 04, 2014 5:59 am Post subject: |
|
|
Same here with 1.7.0.71 but no fix or solution
Code: |
>>> Unpacking source...
>>> Unpacking jdk-7u71-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.71/work
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.71/distdir/jdk-7u71-linux-x64.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
|
|
|
Back to top |
|
|
Azik Apprentice
Joined: 03 Apr 2005 Posts: 151 Location: Russia, Ufa
|
Posted: Mon Nov 10, 2014 3:33 pm Post subject: |
|
|
mhex wrote: | Same here with 1.7.0.71 but no fix or solution
Code: |
>>> Unpacking source...
>>> Unpacking jdk-7u71-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.71/work
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.71/distdir/jdk-7u71-linux-x64.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
|
|
Do this:
Code: | chown -R portage:portage /usr/portage/distfiles/jdk-7u71-linux-x64.tar.gz |
_________________ From Siberia with Love! |
|
Back to top |
|
|
mhex Apprentice
Joined: 18 Feb 2005 Posts: 160 Location: Germany/Berlin
|
Posted: Mon Nov 10, 2014 9:20 pm Post subject: |
|
|
that helped. Спасибо! |
|
Back to top |
|
|
aharel n00b
Joined: 16 Nov 2011 Posts: 36
|
Posted: Wed Dec 10, 2014 12:53 pm Post subject: Same here. Can this be added to the instructions? |
|
|
Same here: manual download, emerge fails with the "permission denied" error from gzip, removing the symlink does not resolve the issue, changing the .tar.gz file ownership as Azik suggested resolved the issue.
It would be nice to add this line to the automated ebuild, or at least to the download instructions.
Meanwhile, thanks Azik! |
|
Back to top |
|
|
lennyd n00b
Joined: 22 Aug 2003 Posts: 1
|
Posted: Wed Dec 17, 2014 5:51 pm Post subject: |
|
|
Thanks Azik, it works.
-ld |
|
Back to top |
|
|
papandreoos Apprentice
Joined: 17 Dec 2014 Posts: 163
|
Posted: Mon Feb 09, 2015 7:26 pm Post subject: |
|
|
Azik wrote: | mhex wrote: | Same here with 1.7.0.71 but no fix or solution
Code: |
>>> Unpacking source...
>>> Unpacking jdk-7u71-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.71/work
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.71/distdir/jdk-7u71-linux-x64.tar.gz: Permission denied
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
|
|
Do this:
Code: | chown -R portage:portage /usr/portage/distfiles/jdk-7u71-linux-x64.tar.gz |
|
thanks also from here |
|
Back to top |
|
|
|