Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1207204
  • 博文数量: 49
  • 博客积分: 10237
  • 博客等级: 上将
  • 技术积分: 2764
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-02 16:19
个人简介

满随天外云卷云舒 静观庭前花开花落

文章分类

全部博文(49)

文章存档

2013年(18)

2012年(9)

2011年(1)

2010年(5)

2009年(3)

2008年(13)

分类: LINUX

2013-06-12 20:48:46

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

阅读(3335) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~