Linux 运行 apt-get install 就出现jdk installer 错误的解决方法

时间:2024-11-28 13:34:44

解决办法如下:

sudo rm /var/lib/dpkg/info/oracle-java7-installer* 

sudo apt-get purge oracle-java7-installer* 

sudo rm /etc/apt/sources.list.d/*java* 

sudo apt-get update 

sudo add-apt-repository ppa:webupd8team/java 

sudo apt-get update 

sudo apt-get install oracle-java7-installer

http://askubuntu.com/questions/163429/error-when-installing-oracle-java7-installer