I am trying to install xpad, Wine and get same error.
sudo apt-get install xpad
Error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package jdk1.8.0-101 needs to be reinstalled, but I can't find an archive for it.
How to fix it, thanks.
[UPDATE] I try to remove jdk1.8.0_101
sudo dpkg --remove --force-remove-reinstreq jdk1.8.0-101
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
(Reading database ... 221715 files and directories currently installed.)
Removing jdk1.8.0-101 (1.8.0101-1) ...
find: ‘/usr/java/*’: No such file or directory
/var/lib/dpkg/info/jdk1.8.0-101.postrm: line 586: /usr/sbin/alternatives: No such file or directory
/var/lib/dpkg/info/jdk1.8.0-101.postrm: line 598: /usr/sbin/alternatives: No such file or directory
dpkg: error processing package jdk1.8.0-101 (--remove):
subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
jdk1.8.0-101
I think I lack the folders because i manually remove it myself.