由于某种原因,我试图安装Hide.Me VPN。不幸的是,我每次都遇到相同的错误。我正在按照这些说明进行安装。以下是我一直遇到的错误。
nate1141@NatesPC:~$ sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome
[sudo] password for nate1141:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvpn is already the newest version (2.3.10-1ubuntu2).
network-manager-openvpn is already the newest version (1.1.93-1ubuntu1).
network-manager-openvpn-gnome is already the newest version (1.1.93-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up jdk1.8.0-111 (1.8.0111-fcs-1) ...
Unpacking JAR files...
tools.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/lib/tools.pack
plugin.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/plugin.pack
javaws.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/javaws.pack
deploy.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/deploy.pack
rt.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.8.0_111/jre/lib/ext/localedata.pack
/var/lib/dpkg/info/jdk1.8.0-111.postinst: line 641: /usr/sbin/alternatives: No such file or directory
/var/lib/dpkg/info/jdk1.8.0-111.postinst: line 653: /usr/sbin/alternatives: No such file or directory
dpkg: error processing package jdk1.8.0-111 (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
jdk1.8.0-111
E: Sub-process /usr/bin/dpkg returned an error code (1)
我最近安装了JDK,但在安装时遇到了一些麻烦,但是我设法成功安装了它。
注意:我的系统是Ubuntu 16.04LTS,我是Ubuntu的新手。
您的/var/lib/dpkg/info/jdk1.8.0-111.postinst
脚本有问题(jdk1.8.0-111软件包的安装后或配置脚本)
最快的解决方法:
/var/lib/dpkg/info/jdk1.8.0-111.postinst
进行编辑并set -e
从中删除sudo apt-get -f install
以修复/完成安装。类似于我在这里的问题。关于不同的程序包但使用相同的解决方案存在很多问题。但是,我不知道有哪个答案能很好地回答规范问题,因此我们可以将其他问题标记为重复。即使是此解决方案,也是一种解决方法,正确的路径是针对每个软件包提出错误报告,以修复脚本本身并使其更可靠。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句