问题描述:

Whenever I try to install any file it proceeds will until it finds jre then this following message is displayed on the terminal

Setting up jre1.8.0-77 (1.8.077-1) ...

Unpacking JAR files...

plugin.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/plugin.pack

javaws.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/javaws.pack

deploy.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/deploy.pack

rt.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/rt.pack

jsse.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/jsse.pack

charsets.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/charsets.pack

localedata.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/ext/localedata.pack

jfxrt.jar...

Error: Could not open input file: /usr/java/jre1.8.0_77/lib/ext/jfxrt.pack

/var/lib/dpkg/info/jre1.8.0-77.postinst: line 641: /usr/sbin/alternatives: No such file or directory

dpkg: error processing package jre1.8.0-77 (--configure):

subprocess installed post-installation script returned error exit status 127

I did install jdk 1.8 still showing same error

tried installing conky manager showed this error

tried installing apache-2 showed this error

tried installing oracle showed this error

even when I tried to uninstall some file the uninstallation stopped as jre showed error

any help will be appreciable.

网友答案:
mkdir -p /usr/sbin
ln -s /usr/bin/update-alternatives /usr/sbin/alternatives

After running the above commands, you can try the installation.

相关阅读:
Top