Netbeans won't install

Bug #240502 reported by yman
This bug report is a duplicate of:  Bug #239679: broken dependency. Edit Remove
2
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Confirmed
Undecided
Marek Slama
tzdata (Ubuntu)
New
Undecided
Unassigned

Bug Description

I did this:
sudo apt-get remove sun-java*
sudo apt-get remove openjdk*
sudo apt-get autoremove
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

Which resulted also in the removal of Netbeans. I tried installing it but got errors similar to the following:

yman@hardy:~$ sudo apt-get install netbeans
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  netbeans: Depends: libnb-apisupport1-java (>= 6.0.1) but it is not going to be installed
            Depends: libnb-ide8-java (>= 6.0.1) but it is not going to be installed
            Depends: libnb-java1-java (>= 6.0.1) but it is not going to be installed
E: Broken packages

So then I did this:
sudo apt-get remove sun-java6-jre sun-java6-plugin sun-java6-jdk
sudo apt-get autoremove

and got this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  unixodbc odbcinst1debian1
The following packages will be REMOVED:
  odbcinst1debian1 unixodbc
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1090kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 176718 files and directories currently installed.)
Removing unixodbc ...
Removing odbcinst1debian1 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

then I did this:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk

--Little mixup: I cancelled the above operation, so in effect I did not perform it. It is only by accident that I specified that inmformation.

sudo apt-get install netbeans

And got the above error message. I'm rather certain from all of this that I broke it, but I'm not absolutely sure. I only got into this mess because of trying to make Java applets work inside Firefox3, as described here:
http://ubuntuforums.org/showthread.php?t=825920

yman (s-y-schwarz)
description: updated
Revision history for this message
Marek Slama (mslama-email) wrote :

I will try to test/reproduce this. netbeans depends on libnb-java1-java which depends on openjdk-6-jdk | sun-java6-jdk and netbeans depends on libnb-platform7-java which depends on openjdk-6-jre | sun-java6-jre. If I understand this correctly presence of sun-java6-jdk and sun-java6-jre should be sufficient to install netbeans package.

Changed in netbeans:
assignee: nobody → mslama-email
yman (s-y-schwarz)
description: updated
Revision history for this message
Gregory Gay (gregoryg) wrote :

After tracing back a few levels, it seems like there is a version problem with package tzdata. This prevents tzdata-java from being installed, which in turn prevents several other required dependencies from being installed.

Revision history for this message
Gregory Gay (gregoryg) wrote :

Message from tzdata-java:

The following packages have unmet dependencies:
  tzdata-java: Depends: tzdata (= 2008b-1ubuntu1) but 2008c-1ubuntu0.8.04 is to be installed
E: Broken packages

Gregory Gay (gregoryg)
Changed in netbeans:
status: New → Confirmed
Revision history for this message
Marek Slama (mslama-email) wrote :

tzdata-java update is already available. It fixes these broken dependencies.

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.