Remove broken java installation (linux)
问题 I somehow messed up my Java installation and now I get this: $ sudo apt-get remove jre1.8.0_66 (Reading database ... 55212 files and directories currently installed.) Removing jre1.8.0-65 ... find: `/usr/java/*': No such file or directory /var/lib/dpkg/info/jre1.8.0-65.postrm: line 586: /usr/sbin/alternatives: No such file or directory dpkg: error processing jre1.8.0-65 (--remove): subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing