[英]Error installing openjdk-7-jre on Ubuntu Trusty
On install I get this: 安装时,我得到以下信息:
Unpacking openjdk-7-jre-headless:amd64 (7u51-2.4.6-1ubuntu4) ...
Finally followed by this: 最后是这个:
Errors were encountered while processing:
ca-certificates-java
openjdk-7-jre-headless:amd64
openjdk-7-jre:amd64
icedtea-7-jre-jamvm:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've tried: 我试过了:
apt-get autoclean
apt-get clean
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get -f install
dpkg --configure -a
To no avail. 无济于事。 I've purged every package it complains about.
我已经清除了它抱怨的每个包裹。 I've removed the packages from
/var/lib/dpkg/info
manually. 我已经从
/var/lib/dpkg/info
手动删除了软件包。 No idea how to proceed! 不知道如何进行!
mkdir -p /usr/share/man/man1 && \
(echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list) && \
apt-get update -y && \
apt-get install -t jessie-backports openjdk-7-jdk -y
While setting up Java on my chromebook, I found this site that made my life a TON easier. 在chromebook上设置Java时,我发现此站点使我的生活变得更轻松。 Here is the link DigitalOcean Java for Ubuntu with relevant part below.
这是链接DigitalOcean Java for Ubuntu ,下面是相关部分。
To install OpenJDK 7, execute the following command: 要安装OpenJDK 7,请执行以下命令:
sudo apt-get install openjdk-7-jre
This will install the Java Runtime Environment (JRE). 这将安装Java Runtime Environment(JRE)。 If you instead need the Java Development Kit (JDK), execute the following command:
如果您需要Java开发工具包(JDK),请执行以下命令:
sudo apt-get install openjdk-7-jdk
I've never had any issues over the many installs that I've ended up having to do after countless powerwashes for my chromebooks. 在为Chromebook进行无数次电源冲洗之后,我最终要做的许多安装从未遇到任何问题。
I hope this helps out. 我希望这会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.