package sun-java6-doc 6-03-0ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #151183 reported by Lars Noodén
158
This bug affects 2 people
Affects Status Importance Assigned to Milestone
synaptic
New
Undecided
Unassigned
sun-java6 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Trying to use Eclipse IDE with Java.

# apt-get install eclipse-jdt
Reading package lists... Done
Building dependency tree
Reading state information... Done
eclipse-jdt is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  sun-java6-demo: Depends: sun-java6-jre (= 6-03-0ubuntu2) but it is not going to be installed
                  Depends: sun-java6-jdk (= 6-03-0ubuntu2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

ProblemType: Package
Architecture: i386
Date: Wed Oct 10 08:45:54 2007
Dependencies:
 libgcc1 1:4.2.1-5ubuntu3
 unzip 5.52-10ubuntu1
 gcc-4.2-base 4.2.1-5ubuntu3
 libc6 2.6.1-1ubuntu7
DistroRelease: Ubuntu 7.10
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: sun-java6-doc 6-03-0ubuntu2
PackageArchitecture: all
SourcePackage: sun-java6
Title: package sun-java6-doc 6-03-0ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux ubuntu 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux

Revision history for this message
Lars Noodén (larsnooden) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

from the attached log:

Setting up sun-java6-doc (6-03-0ubuntu2) ...

This package is an installer package, it does not actually contain the

JDK documentation. You will need to go download one of the

archives:

    jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).

Please visit

    http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied

to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]

This package is an installer package, it does not actually contain the

JDK documentation. You will need to go download one of the

archives:

    jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).

Please visit

    http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied

to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]

This package is an installer package, it does not actually contain the

JDK documentation. You will need to go download one of the

archives:

    jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).

Please visit

    http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied

to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]

This package is an installer package, it does not actually contain the

JDK documentation. You will need to go download one of the

archives:

    jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).

Please visit

    http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied

to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort] no

Abort installation of JDK documentation

dpkg: error processing sun-java6-doc (--configure):

 subprocess post-installation script returned error exit status 1

Changed in sun-java6:
status: New → Invalid
Revision history for this message
Lars Noodén (larsnooden) wrote :

Yes, I saw that message. However, the point of a package manager is to automatically install jdk-6-doc.zip and jdk-6-doc-ja.zip. Neither are installed manually hence the bug report.

Changed in sun-java6:
status: Invalid → New
Revision history for this message
Matthias Klose (doko) wrote :

cannot be fixed due to the license of the documentation

Changed in sun-java6:
status: New → Won't Fix
Revision history for this message
Gimfred (bhuxham) wrote :

It can be installed (manually -- Lars and Matt, you probably know but it took me awhile to figure it out. Hope this helps someone)

Copy the archive file over to /tmp and chown. Somewhere I got the idea the file should be expanded and of course that didn't work...

as such...

$ cp /the_folder(s)_you_downloaded_to/jdk-6-doc.zip /tmp
$ sudo chown root:root /tmp/jdk-6-doc

Good luck

Revision history for this message
José Roberto (tickbrown) wrote : Re: [Bug 151183] Re: package sun-java6-doc 6-03-0ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

per_automatik escreveu:
> ** Also affects: synaptic
> Importance: Undecided
> Status: New
>
>
Thanks for report the problem to me!

Revision history for this message
Vivek Cherian (vivekvc) wrote :

You are welcome Jose.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.