斋戒愉快
我住在伊朗,有些公司禁止我们,比如 ORACLE
所以我手动安装了 Oracle Java SDK 8,之后我的“dpkg”一直显示错误。
安装包之间没有区别。来自“Ubuntu 软件中心”或“apt-get”的每个包都安装成功,但显示了一些错误,我非常困惑和生气
谁能告诉我我的 Ubuntu 出了什么问题?
错误是:
Package Operation Failed
The installation or removal of a software package failed
------------------------------------------------------------------
Details
------------------------------------------------------------------
installArchives() failed: Selecting previously unselected package gnome-hearts.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 238764 files and directories currently installed.)
Preparing to unpack .../gnome-hearts_0.3-2.1ubuntu1_amd64.deb ...
Unpacking gnome-hearts (0.3-2.1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Setting up oracle-java7-installer (7u60-0~webupd8~0) ...
Downloading Oracle Java 7...
--2014-07-15 14:57:49-- http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 82.178.158.11, 82.178.158.24
Connecting to download.oracle.com (download.oracle.com)|82.178.158.11|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-07-15 14:57:51 ERROR 403: Forbidden.
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up oracle-java8-installer (8u5-1~webupd8~3) ...
Downloading Oracle Java 8...
--2014-07-15 14:57:52-- http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 82.178.158.24, 82.178.158.11
Connecting to download.oracle.com (download.oracle.com)|82.178.158.24|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-07-15 14:57:52 ERROR 403: Forbidden.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of oracle-java8-set-default:
oracle-java8-set-default depends on oracle-java8-installer; however:
Package oracle-java8-installer is not configured yet.
dpkg: error processing package oracle-java8-set-default (--configure):
dependency problems - leaving unconfigured
Setting up gnome-hearts (0.3-2.1ubuntu1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for python-support (1.0.15) ...
Errors were encountered while processing:
oracle-java7-installer
oracle-java8-installer
oracle-java8-set-default
Error in function:
Setting up oracle-java7-installer (7u60-0~webupd8~0) ...
Downloading Oracle Java 7...
--2014-07-15 14:57:55-- http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 82.178.158.11, 82.178.158.24
Connecting to download.oracle.com (download.oracle.com)|82.178.158.11|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-07-15 14:57:57 ERROR 403: Forbidden.
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up oracle-java8-installer (8u5-1~webupd8~3) ...
Downloading Oracle Java 8...
--2014-07-15 14:57:58-- http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 82.178.158.24, 82.178.158.11
Connecting to download.oracle.com (download.oracle.com)|82.178.158.24|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-07-15 14:57:58 ERROR 403: Forbidden.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of oracle-java8-set-default:
oracle-java8-set-default depends on oracle-java8-installer; however:
Package oracle-java8-installer is not configured yet.
dpkg: error processing package oracle-java8-set-default (--configure):
dependency problems - leaving unconfigured
答案1
您的 Ubuntu 没有任何问题。Oracle 服务器正在回复403 禁止。安装程序正在尝试从 Oracle 的服务器下载,但由于您位于伊朗,而伊朗受到美国出口限制,因此会阻止您。您需要从其他服务器或国家/地区下载文件,或使用 Tor 等代理来隐藏您的 IP 地址。
如果您已经安装了 Java,并且只想删除 Ubuntu 软件包,请执行以下操作:
$ sudo dpkg -P oracle-java-*
答案2
- 我
kerio-control-vpnclient-8.3.2-2261-linux.deb
从下载Kerio 下载中心,(首先你必须选择Kerio Control
,然后选择最新版本并按下show file
按钮。在此状态下下载你自己的版本,我的版本是 Linux (DEB)) - 下载 Kerio 包后,下载相关文档。 (我的文档是
README file for Kerio VPN Client - Linux (DEB)
)并按照文档文件进行操作。 - 之后,您可以使用它
Kerio VPN Client Linux Ubuntu/Debian
来下载任何被禁止的软件包。 使用以下代码安装 Oracle Java 8
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
- 恭喜!