自从第一个Alpha版本发布以来,我一直在运行可信赖的软件,每天都会更新。我还从WebUpd8 PPA安装了oracle-java7-installer。今天,我在dist-upgrade期间注意到oracle-java7-installer被删除了。在我的边缘系统上,我只允许所有默认值,因此我允许删除,无论如何都希望尝试Java 8版本。但是,当我去安装oracle-java8-installer软件包时,它想删除“ apt”!显然,这引起了我的关注,甚至感觉像是安全方面的关注。帮助理解这一点将不胜感激。
$ sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho
ttf-arphic-uming
The following packages will be REMOVED:
apt apturl nautilus-share python3-software-properties software-center software-properties-common software-properties-gtk
ubuntu-extras-keyring ubuntu-minimal unattended-upgrades
The following NEW packages will be installed:
oracle-java8-installer
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt
0 upgraded, 1 newly installed, 10 to remove and 0 not upgraded.
Need to get 18.7 kB of archives.
After this operation, 7,838 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]
oracle-java8-installer
软件包。
j2se-common
apt-get dist-upgrade
是导致该问题的原因,因为安装程序软件包几乎没有依赖关系并且存在一个冲突,因此oracle-java7-installer
不应删除该软件包。