2

oracle-java7-installer通过存储库安装时ppa:webupd8team/java,我看到以下错误:

dpkg: error processing /var/cache/apt/archives/oracle-java7-installer_7u25-0~webupd8~1_all.deb (--unpack):
 trying to overwrite '/usr/share/applications/JB-java.desktop', which is also in package oracle-java6-installer 6u37-0~eugenesan~precise1
Errors were encountered while processing:
 /var/cache/apt/archives/oracle-java7-installer_7u25-0~webupd8~1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我是否需要/usr/share/applications/JB-java.desktop手动删除文件才能使此安装工作?

4

2 回答 2

1

这就是我安装的方式

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


sudo apt-get install openjdk-6-jdk
于 2013-08-05T07:27:42.887 回答
1

我不得不删除包裹oracle-java6-installer

apt-get purge oracle-java6-installer

然后安装oracle-java7-installer

apt-get install oracle-java7-installer

它奏效了。但这不是推荐的方式。

于 2013-08-08T17:21:05.867 回答