Tuesday, May 7, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4583  / 1 Year ago, fri, march 24, 2023, 6:27:37

I'm running Ubuntu 12.04. Recently I've noticed that Ubuntu Software Centre fails to install/remove packages to/from my computer.



Here is the error description.



installArchives() failed: Setting up install-info (4.13a.dfsg.1-8ubuntu2) ...
/etc/environment: line 2: /usr/lib/jvm/java-1.7.0-openjdk-i386/jre/bin: No such file or directory
dpkg: error processing install-info (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
install-info
Error in function:
Setting up install-info (4.13a.dfsg.1-8ubuntu2) ...
/etc/environment: line 2: /usr/lib/jvm/java-1.7.0-openjdk-i386/jre/bin: No such file or directory
dpkg: error processing install-info (--configure):
subprocess installed post-installation script returned error exit status 1


Following is the image for same:



USC Error



What is the reason for this and how can I fix this?



Output of cat /etc/environment



PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
CLASSPATH= "/usr/lib/jvm/java-1.7.0-openjdk-i386/jre/bin"

More From » software-center

 Answers
2

I think I figured out a fix.



My /etc/environment had the CLASSPATH variable set to my previous openJDK installation. Recently I installed Oracle JDK manually and removed openJDK. But somehow /etc/environment contained the old CLASSPATH value.



But what wonders me is that the issue appeared just recently that I could install/remove packages successfully even after my java re-installation.



Thanks @gertvdijk for your insight. :)


[#29059] Sunday, March 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
llianconclad

Total Points: 65
Total Questions: 109
Total Answers: 127

Location: Mali
Member since Fri, Dec 3, 2021
2 Years ago
;