Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge dev-java/oracle-jre-bin [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Faraclas
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2014
Posts: 117

PostPosted: Thu Feb 12, 2015 1:05 am    Post subject: Failed to emerge dev-java/oracle-jre-bin [solved] Reply with quote

I'm having a problem installing this package. I downloaded the tar.gz file from Oracle and placed it in /usr/portage/distfiles.

Code:
elias@EpicLinux ~/Downloads $ ls /usr/portage/distfiles/ | grep jre   
jre-7u71-linux-x64.tar.gz
jre-7u76-linux-x64.tar.gz


Then I get the following error trying to emerge it:

Code:
EpicLinux elias # emerge -avuDN oracle-jre-bin

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


 * IMPORTANT: 7 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

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

Calculating dependencies... done!
[ebuild    fU  ] dev-java/oracle-jre-bin-1.7.0.76:1.7 [1.7.0.71:1.7] USE="X alsa nsplugin -fontconfig -jce -pax_kernel (-selinux)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB
Fetch Restriction: 1 package

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

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/oracle-jre-bin-1.7.0.76::gentoo
 * jre-7u76-linux-x64.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking jre-7u76-linux-x64.tar.gz to /var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/work
gzip: /var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/distdir/jre-7u76-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-jre-bin-1.7.0.76::gentoo failed (unpack phase):
 *   failure unpacking jre-7u76-linux-x64.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 2457:  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 'jre-7u76-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 jre-7u76-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-jre-bin-1.7.0.76::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/oracle-jre-bin-1.7.0.76::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-java:oracle-jre-bin-1.7.0.76:20150212-005838.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/work'
 * S: '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/work/jre1.7.0_76'

>>> Failed to emerge dev-java/oracle-jre-bin-1.7.0.76, Log file:

>>>  '/var/log/portage/dev-java:oracle-jre-bin-1.7.0.76:20150212-005838.log'

 * Messages for package dev-java/oracle-jre-bin-1.7.0.76:

 * ERROR: dev-java/oracle-jre-bin-1.7.0.76::gentoo failed (unpack phase):
 *   failure unpacking jre-7u76-linux-x64.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 2457:  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 'jre-7u76-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 jre-7u76-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-jre-bin-1.7.0.76::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/oracle-jre-bin-1.7.0.76::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-java:oracle-jre-bin-1.7.0.76:20150212-005838.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/work'
 * S: '/var/tmp/portage/dev-java/oracle-jre-bin-1.7.0.76/work/jre1.7.0_76'


I'm not really sure what to do at this point.[/code]


Last edited by Faraclas on Thu Feb 12, 2015 1:56 am; edited 1 time in total
Back to top
View user's profile Send private message
Section_8
l33t
l33t


Joined: 22 May 2004
Posts: 627

PostPosted: Thu Feb 12, 2015 1:31 am    Post subject: Reply with quote

Looks to me like the jre tar.gz is corrupted. If you go back to that Oracle download page, they list the file sizes of those and there is a link to a page with md5 checksums of those downloads you can check against.
Back to top
View user's profile Send private message
Faraclas
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2014
Posts: 117

PostPosted: Thu Feb 12, 2015 1:57 am    Post subject: Reply with quote

Thanks!

I found the answer here: https://forums.gentoo.org/viewtopic-t-972978.html?sid=7c33fd0039be03b395e955386f2ebadf.

Code:
chown -R portage:portage /usr/portage/distfiles/jre-7u76-linux-x64.tar.gz
chown -R portage:portage /var/tmp/portage


did the trick.
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Sun Feb 22, 2015 2:39 pm    Post subject: Reply with quote

Thank you very much :-)
Working perfectly.
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
rb258
n00b
n00b


Joined: 04 Mar 2015
Posts: 1

PostPosted: Wed Mar 04, 2015 6:32 am    Post subject: Reply with quote

:lol: thanks a lot
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Tue Mar 17, 2015 1:53 pm    Post subject: Reply with quote

I have the same problem, but I did not have such problems before.

My question, why should I do this (code bellow), as I did not earlier and it worked for years (since 2005)?. Is it safe to change default system permission? Or maybe something should be done with Gentoo system, so those permission should be set automaticly?
Code:

Kod:
chown -R portage:portage /usr/portage/distfiles/jre-7u76-linux-x64.tar.gz
chown -R portage:portage /var/tmp/portage


Code:
# ls -ls /usr/portage/distfiles/
total 62288
62288 -rw-r----- 1 user user 63777545 Mar 17 14:38 jre-8u40-linux-x64.tar.gz


Code:
# emerge -uDN world
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/oracle-jre-bin-1.8.0.40::gentoo
 * jre-8u40-linux-x64.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking jre-8u40-linux-x64.tar.gz to /mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/work
gzip: /mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/distdir/jre-8u40-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-jre-bin-1.8.0.40::gentoo failed (unpack phase):
 *   unpack: failure unpacking jre-8u40-linux-x64.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 2481:  Called default
 *      phase-functions.sh, line  770:  Called default_src_unpack
 *      phase-functions.sh, line  797:  Called __eapi0_src_unpack
 *        phase-helpers.sh, line  736:  Called unpack 'jre-8u40-linux-x64.tar.gz'
 *        phase-helpers.sh, line  386:  Called __unpack_tar 'gzip -d'
 *        phase-helpers.sh, line  317:  Called __assert_sigpipe_ok 'unpack: failure unpacking jre-8u40-linux-x64.tar.gz'
 *   isolated-functions.sh, line   41:  Called __helpers_die 'unpack: failure unpacking jre-8u40-linux-x64.tar.gz'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-java/oracle-jre-bin-1.8.0.40::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/oracle-jre-bin-1.8.0.40::gentoo'`.
 * The complete build log is located at '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/temp/build.log'.
 * The ebuild environment file is located at '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/temp/environment'.
 * Working directory: '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/work'
 * S: '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/work/jre'

>>> Failed to emerge dev-java/oracle-jre-bin-1.8.0.40, Log file:

>>>  '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/temp/build.log'

 * Messages for package dev-java/oracle-jre-bin-1.8.0.40:

 * ERROR: dev-java/oracle-jre-bin-1.8.0.40::gentoo failed (unpack phase):
 *   unpack: failure unpacking jre-8u40-linux-x64.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 2481:  Called default
 *      phase-functions.sh, line  770:  Called default_src_unpack
 *      phase-functions.sh, line  797:  Called __eapi0_src_unpack
 *        phase-helpers.sh, line  736:  Called unpack 'jre-8u40-linux-x64.tar.gz'
 *        phase-helpers.sh, line  386:  Called __unpack_tar 'gzip -d'
 *        phase-helpers.sh, line  317:  Called __assert_sigpipe_ok 'unpack: failure unpacking jre-8u40-linux-x64.tar.gz'
 *   isolated-functions.sh, line   41:  Called __helpers_die 'unpack: failure unpacking jre-8u40-linux-x64.tar.gz'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-java/oracle-jre-bin-1.8.0.40::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/oracle-jre-bin-1.8.0.40::gentoo'`.
 * The complete build log is located at '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/temp/build.log'.
 * The ebuild environment file is located at '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/temp/environment'.
 * Working directory: '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/work'
 * S: '/mnt/video/tmp/portage/dev-java/oracle-jre-bin-1.8.0.40/work/jre'
Back to top
View user's profile Send private message
CrazyApe
n00b
n00b


Joined: 26 Apr 2003
Posts: 14
Location: Australia

PostPosted: Sun Apr 05, 2015 7:51 am    Post subject: Reply with quote

Xywa wrote:
I have the same problem, but I did not have such problems before.

My question, why should I do this (code bellow), as I did not earlier and it worked for years (since 2005)?. Is it safe to change default system permission? Or maybe something should be done with Gentoo system, so those permission should be set automaticly?


While I'm not sure of the cause to the change in the default behaviour, it is perfectly safe to change ownership / permissions of the downloaded file to portage:portage. Compare the permissions with everything else in /usr/portage/distfiles and you'll see that all auto downloaded packages are in fact portage:portage. The difference is that you had to manually download the file, so it ended up with different ownership.
Back to top
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Sat Apr 18, 2015 7:10 pm    Post subject: Reply with quote

Faraclas wrote:
Thanks!

I found the answer here: https://forums.gentoo.org/viewtopic-t-972978.html?sid=7c33fd0039be03b395e955386f2ebadf.

Code:
chown -R portage:portage /usr/portage/distfiles/jre-7u76-linux-x64.tar.gz
chown -R portage:portage /var/tmp/portage


did the trick.


thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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