Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7093817
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类: LINUX

2013-06-13 09:25:56

原文地址:oracle-java7-installer error 作者:iceglacier

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

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