我试图安装安卓工作室,我需要oracle java 8,但我的是openjdk。在使用sudo apt-get install oracle-java8-set-default时,我收到以下信息:
The following packages were automatically installed and are no longer required:
checkbox-ng icu-devtools iproute kde-l10n-engb kde-l10n-fa
libatk-wrapper-java libatk-wrapper-java-jni libbind9-90 libcamel-1.2-52
libcapnp-0.4.0 libcolamd2.8.0 libcommon-sense-perl libdns100
libebook-contacts-1.2-1 libecal-1.2-18 libedata-cal-1.2-27
libedataserver-1.2-20 libenca0 libgee2 libgif4 libglew1.10 libglewmx1.10
libgstreamer-plugins-base1.0-dev libgstreamer-vaapi1.0-0
libgstreamer-vaapi1.0-dev libgtop2-10 libicu-dev libimobiledevice4 libisc95
libisccc90 libisccfg90 libisl13 libjson-perl libjson-xs-perl libjsoncpp0v5
libllvm3.6v5:i386 liblouis2 liblwres90 libntdb1 libpgm-5.1-0 libpoppler52
libpth20 libqpdf13v5 libraw10 libscope-harness2 libsctp1 libset-scalar-perl
libsodium13 libtypes-serialiser-perl liburcu2 libusbmuxd2 libva-dev
libva-egl1 libva-glx1 libva-tpi1 libx265-59 libxml2-dev libzmq3
linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic linux-headers-4.2.0-36
linux-headers-4.2.0-36-generic linux-headers-4.4.0-22
linux-headers-4.4.0-22-generic linux-image-4.2.0-16-generic
linux-image-4.2.0-36-generic linux-image-4.4.0-22-generic
linux-image-extra-4.2.0-16-generic linux-image-extra-4.2.0-36-generic
linux-image-extra-4.4.0-22-generic lksctp-tools python-cffi
python-characteristic python-dbus-dev python-ntdb python-ply
python-pycparser python-support python3-cffi python3-checkbox-ng
python3-colorama python3-ply python3-pycparser
qtdeclarative5-localstorage-plugin qtdeclarative5-qtfeedback-plugin
telepathy-indicator ubuntu-snappy-cli unity-scope-audacious
unity-scope-clementine unity-scope-gmusicbrowser unity-scope-gourmet
unity-scope-guayadeque unity-scope-musique upstart-bin
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.错误如下:
dpkg: error processing package oracle-java8-set-default (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
oracle-java6-installer
oracle-java7-installer
oracle-java8-installer
oracle-java8-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)我想这是由于我的国家的过滤,我不知道我应该做什么来修复它。你能帮帮我吗?
发布于 2016-09-20 19:20:02
试着使用这个:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer希望它能帮上忙
发布于 2016-09-20 19:35:22
在ubuntu machine.online中安装java有两种方法(通过ppa)
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer并按照链接中给出的过程脱机。首先从oracle的官方站点下载jdk for ubuntu (tar.gz文件),然后一步一步地执行这个过程(在终端上复制说明)*确保当您在终端上复制它时,更改整个jdk.刚下载到jdk u文件名的东西。所显示的图像是旧的,所以在任何时候它都是jdk 1.7.0_45,将其更改为适当的jdk版本(您可以在遵循该过程时检查安装了哪个版本)。
链接:http://m.wikihow.com/Install-Java-on-Ubuntu
脱机安装程序的优点:在系统故障/重新安装的情况下,您可以再次安装它。在通过终端安装它需要时间的地方,如果系统故障,您将需要重新安装互联网。
https://askubuntu.com/questions/809115
复制相似问题