Oracle JDK 7 is NOT installed.
dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oracle-java7-installer
1:
Open a terminal (ctrl + alt + T) and type those two commands successively:
cd /var/lib/dpkg/info/
sudo rm oracle-java7-installer*
Open synaptic, search for "oracle-java7-installer", mark it for complete removal and click "apply".
Edit: For those that don't have synaptic installed, after you rm the oracle installer files, just do:
sudo apt-get purge oracle-java7-installer
And you should be good.
2:
The fix is quite simple, actually. Please install Synaptic Package Manager in the Ubuntu Software Center, first. After installed, you will need to open it with root privilages:
sudo synaptic
Search for Oracle-java7-installer, right click on it, and completely remove it. Apply the changes, remove the PPA, and your error messages will be gone.
3:
Add webupd8 ppa again
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Open the terminal and type:
sudo apt-get update
sudo apt-get install -f
Then purge the ppa using ppa purge
sudo apt-get install ppa-purge
sudo ppa-purge ppa:webupd8team/java
4:
Running these commands should fix your problem:
sudo apt-get update
sudo apt-get --purge reinstall oracle-java7-installer
sudo apt-get upgrade
阅读(667) | 评论(0) | 转发(0) |