0

I'm having issues installing anything on my ubuntu 16.04 since I've messed with java install. Here's what I get --

sudo apt-get -f install htop

Reading package lists... Done Building dependency tree
Reading state information... Done E: The package jre1.8.0-111 needs to be reinstalled, but I can't find an archive for it.

Any suggestions?

0

Try with

sudo apt-get install -f

It should remove Java. Then reinstall it You can also try with Synaptic (if you have already installed it)

sudo synaptic

Or just

sudo apt-get remove --purge *java*

And then reinstall java

|improve this answer|||||
  • I've tried all commands here, but all result in the same : E: The package jre1.8.0-111 needs to be reinstalled, but I can't find an archive for it. Synaptic's not installed, but I can't install anything anyway. – Ianis S Nov 6 '16 at 16:46
  • Try to download jre1.8.0-111 from the Java website and try the command sudo dpkg --remove jre1.8.0-111 – Aegefel Nov 6 '16 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.