apt - Sub-process /usr/bin/dpkg returned an error code (1) ? - Ask Ubuntu


i trying install hide.me vpn reason. unfortunately keep running same error every time. i'm using these instructions to install it. below error keep running into.

nate1141@natespc:~$ sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome [sudo] password nate1141:  reading package lists... done building dependency tree        reading state information... done openvpn newest version (2.3.10-1ubuntu2). network-manager-openvpn newest version (1.1.93-1ubuntu1). network-manager-openvpn-gnome newest version (1.1.93-1ubuntu1). 0 upgraded, 0 newly installed, 0 remove , 83 not upgraded. 1 not installed or removed. after operation, 0 b of additional disk space used. want continue? [y/n] y setting jdk1.8.0-111 (1.8.0111-fcs-1) ... unpacking jar files...     tools.jar... error: not open input file: /usr/java/jdk1.8.0_111/lib/tools.pack     plugin.jar... error: not open input file: /usr/java/jdk1.8.0_111/jre/lib/plugin.pack     javaws.jar... error: not open input file: /usr/java/jdk1.8.0_111/jre/lib/javaws.pack     deploy.jar... error: not open input file: /usr/java/jdk1.8.0_111/jre/lib/deploy.pack     rt.jar... error: not open input file: /usr/java/jdk1.8.0_111/jre/lib/rt.pack     jsse.jar... error: not open input file: /usr/java/jdk1.8.0_111/jre/lib/jsse.pack     charsets.jar... error: not open input file: /usr/java/jdk1.8.0_111/jre/lib/charsets.pack     localedata.jar... error: 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 encountered while processing:  jdk1.8.0-111 e: sub-process /usr/bin/dpkg returned error code (1) 

i installed jdk, had troubles while installing somehow managed install successfully.

note: system ubuntu 16.04lts , i'm new ubuntu.

you have issue /var/lib/dpkg/info/jdk1.8.0-111.postinst script (post installation or configuration script of jdk1.8.0-111 package)

the quickest workaround:

  1. open /var/lib/dpkg/info/jdk1.8.0-111.postinst editing , remove set -e it
  2. run sudo apt-get -f install fix/complete installation.

similar question here. there many questions different packages same solution. however, i'm not aware of 1 have nice answer canonical 1 , flag other questions duplicate. solution, workaround , correct path raise bug report against each package fix script , make more robust.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User