Remove the lock file by typing: sudo rm /var/cache/apt/archives/lock
After that retry removing the java package. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/684520 Title: E: sun-java6-jre: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/684520/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs