简体   繁体   中英

error in installing any file having dependency on JRE on ubuntu14.04

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM