- Κώδικας: Επιλογή όλων
unable to install "gnu octave":
error while installing package : installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
Συντονιστής: adem1
unable to install "gnu octave":
error while installing package : installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
$ apt install octave
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
bob@bob-desktop:~$ sudo apt install octave
[sudo] password for bob:
Reading package lists... Done
Building dependency tree
Reading state information... Done
octave is already the newest version (4.2.2-1ubuntu1).
The following packages were automatically installed and are no longer required:
dkms libgsoap-2.8.60 libllvm7 libvncserver1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 134 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 oracle-java11-installer-local (11.0.3-1~linuxuprising2) ...
Before installing this package,
please download the Oracle JDK 11 .tar.gz file
with the same version as this package,
and place it in /var/cache/oracle-jdk11-installer-local,
E.g.:
sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.3_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
sha256sum mismatch jdk-11.0.3_linux-x64_bin.tar.gz
Oracle JDK 11 is NOT installed.
dpkg: error processing package oracle-java11-installer-local (--configure):
installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
oracle-java11-installer-local
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt remove --purge oracle-java11-installer-local
$ java -version
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless
$ sudo apt install jdk-12.0.2_linux-x64_bin.deb
[sudo] password for bob:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package jdk-12.0.2_linux-x64_bin.deb
E: Couldn't find any package by glob 'jdk-12.0.2_linux-x64_bin.deb'
E: Couldn't find any package by regex 'jdk-12.0.2_linux-x64_bin.deb'
sudo dpkg -i ονομααρχείου.deb
dpkg --listfiles jdk-12.0.2 | grep -E '.*/bin$'
Επιστροφή στο Εφαρμογές για Γραφείο / Γραφιστική / Επιστήμες