PDA

View Full Version : [ubuntu] H.T. force an update to take place?



gunnartr
January 8th, 2013, 06:13 PM
How do I force an update to take place. I run apt-get upate and abt-get ugrade and got following errors.:

trying to overwrite '/user/lib/jvm/java-1.6.0-open.jdk', which is also in open.jdk-6-jre-headless 0:6b24-1.11.4-1ubuntu0.10.04.1
Errors were encountered while processing:
/var/cache/apt/archives/default-jre-headless_1%3a1.6-43ubuntuZ_i386.deb
E:sub-process /usr/bin/dpkg returned an error code (1)

dino99
January 8th, 2013, 07:19 PM
purge everything related to java, then reinstall openjdk

gunnartr
January 9th, 2013, 12:06 PM
Can you help me how I remove all java install and then how to reinstall openjdk all done in command window.

It went wrong when I tried to install Qgis- it was missing som java dep.

Thanks

blackbird34
January 10th, 2013, 12:45 AM
You could try this first, to see if it's an update error:

sudo apt-get install -f

Otherwise, to remove and reinstall java

sudo apt-get purge openjdk7* && sudo apt-get install openjdk