I have been trying to uninstall jre6 but I keep getting the error
dpkg: warning: there's no installed package matching sun-java6-jre:amd64
I've tried
sudo apt-get --purge remove sun-java6\* vim
and
sudo apt-get purge sun-java6-\* I just want to remove it so I can install JDK7.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
||||
|
|
|
First off, I believe the uninstall is failing because you don't have the package name exactly right. You do not need to uninstall the old version as there is a way for you to choose which you would prefer to use. Enter this command in terminal:
The versions of Java currently installed on your system will appear for you to choose from. Keeping both can come in handy as some applications may work better with one or the other. After you have made your choice, enter this command in terminal:
That will tell you which version is currently in use to confirm your changes |
|||||||
|
|
If you ever get a dpkg error. Use the following to purge to dpkg (this is an extreme measure) |
|||
|
|