$sudo apt-get -f install google-chrome-stable
I tried to install java in ubuntu but it's not successfully installed, but after that when I am trying to install/remove any other packages, I'm getting these errors:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
bleachbit : Depends: menu but it is not going to be installed
ca-certificates-java : Depends: openjdk-6-jre-headless (>= 6b16-1.6.1-2) or
java6-runtime-headless
icedtea-6-plugin : Depends: openjdk-6-jre
icedtea-netx : Depends: openjdk-6-jre (>= 6b23~pre10~) or
openjdk-7-jre
**E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).**
When i run the sudo dpkg --configure -a
to get the all dependencies, i found:
dpkg: dependency problems prevent configuration of icedtea-netx:
icedtea-netx depends on openjdk-6-jre (>= 6b23~pre10~) | openjdk-7-jre; however:
Package openjdk-6-jre is not installed.
Package openjdk-7-jre is not installed.
dpkg: error processing icedtea-netx (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bleachbit:
bleachbit depends on python-central (>= 0.6.7); however:
Package python-central is not installed.
bleachbit depends on menu; however:
Package menu is not installed.
dpkg: error processing bleachbit (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ca-certificates-java:
ca-certificates-java depends on openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless; however:
Package openjdk-6-jre-headless is not installed.
Package java6-runtime-headless is not installed.
dpkg: error processing ca-certificates-java (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-6-plugin:
icedtea-6-plugin depends on openjdk-6-jre; however: Package openjdk-6-jre is not installed. icedtea-6-plugin depends on icedtea-netx (= 1.2-2ubuntu1); however:
Package icedtea-netx is not configured yet.
dpkg: error processing icedtea-6-plugin (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
icedtea-netx
bleachbit
ca-certificates-java
icedtea-6-plugin
When I open ubuntu soft. center to install/remove any packages I also get this error:
Package dependencies cannot be resolved
The following packages have unmet dependencies:
bleachbit: Depends: python (>= 2.4) but 2.7.3-0ubuntu2 is installed
Depends: python-gtk2 (>= 2.6) but 2.24.0-3 is installed
Depends: python-central (>= 0.6.7) but it is not installed
Depends: menu but it is not installed
ca-certificates-java: Depends: java6-runtime-headless but it is a virtual package
icedtea-6-plugin: Depends: openjdk-6-jre but it is not installed
Depends: icedtea-netx (= 1.2-2ubuntu1) but 1.2-2ubuntu1 is installed
Depends: libc6 (>= 2.4) but 2.15-0ubuntu10.3 is installed
Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is installed
Depends: libglib2.0-0 (>= 2.31.8) but 2.32.3-0ubuntu1 is installed
Depends: libgtk2.0-0 (>= 2.8.0) but 2.24.10-0ubuntu6 is installed
Depends: libstdc++6 (>= 4.6) but 4.6.3-1ubuntu5 is installed
icedtea-netx: Depends: icedtea-netx-common (>= 1.2-2ubuntu1) but 1.2-2ubuntu1 is installed
Depends: openjdk-7-jre but it is not installed
sudo apt-get -f install
– totti Aug 21 '13 at 08:46default-jre
and/ordefault-jdk
. In most use cases that is painless. – Johannes Kohnen Aug 26 '13 at 19:27