我的操作系统是 12.04,我在笔记本电脑上运行它。每当我从软件中心安装或删除软件时,都会收到以下错误。有人能告诉我怎么修复它吗?
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-11-26 16:02:34-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to proxy.iisc.ernet.in (proxy.iisc.ernet.in)|10.16.40.14|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-x64.tar.gz'
0K ..... 100% 1.87M=0.003s
2012-11-26 16:02:35 (1.87 MB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]
Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up icedtea-netx-common (1.2-2ubuntu1.3) ...
Setting up icedtea-netx (1.2-2ubuntu1.3) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/itweb-settings to provide /usr/bin/itweb-settings (itweb-settings) in auto mode.
Errors were encountered while processing:
oracle-java7-installer
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
答案1
似乎您使用的是代理,但配置不正确。您可以看到已建立连接proxy.iisc.ernet.in
,然后会获得有关下载内容的一些信息:
Length: 5307 (5.2K) [text/html]
包文件通常大于 5.2K,并且其类型不是文本或 html。这很可能意味着您的代理产生了某种错误页面,而不是下载包文件,因此校验和是错误的。
您必须正确设置代理。您可以在System settings...
-> Network
->找到它们Network proxy
。