Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] portage failed to unpack java
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Utsuho Reiuji
Apprentice
Apprentice


Joined: 03 Apr 2013
Posts: 179

PostPosted: Tue Sep 23, 2014 10:06 pm    Post subject: [solved] portage failed to unpack java Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Sep 23, 2014 10:41 pm    Post subject: Reply with quote

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?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Utsuho Reiuji
Apprentice
Apprentice


Joined: 03 Apr 2013
Posts: 179

PostPosted: Wed Sep 24, 2014 12:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Sep 24, 2014 2:52 am    Post subject: Reply with quote

Changing the owner to root will certainly be a showstopper, portage does not run as root as far as I know, it runs as portage:portage.
Indeed there is a way to use unpacked sources, see man ebuild.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Utsuho Reiuji
Apprentice
Apprentice


Joined: 03 Apr 2013
Posts: 179

PostPosted: Sun Sep 28, 2014 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 160
Location: Germany/Berlin

PostPosted: Tue Nov 04, 2014 5:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Azik
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 151
Location: Russia, Ufa

PostPosted: Mon Nov 10, 2014 3:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 160
Location: Germany/Berlin

PostPosted: Mon Nov 10, 2014 9:20 pm    Post subject: Reply with quote

that helped. Спасибо!
Back to top
View user's profile Send private message
aharel
n00b
n00b


Joined: 16 Nov 2011
Posts: 36

PostPosted: Wed Dec 10, 2014 12:53 pm    Post subject: Same here. Can this be added to the instructions? Reply with quote

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
View user's profile Send private message
lennyd
n00b
n00b


Joined: 22 Aug 2003
Posts: 1

PostPosted: Wed Dec 17, 2014 5:51 pm    Post subject: Reply with quote

Thanks Azik, it works.
-ld
Back to top
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Mon Feb 09, 2015 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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