installation failure - error processing sun-j2rel.6

Asked by Nugget7734

I've downloaded 4 programs tonight and received this same error after installation. I'm running Ubuntu 10.04 LTS and used the software center to download/install the programs. Here is the relevant error log I received:

*********************************************************************************************
Setting up sun-j2re1.6 (1.6.0+update22) ...

update-alternatives: error: alternative path /usr/lib/j2re1.6-sun/plugin/i386/ns4/libjavaplugin.so doesn't exist.

dpkg: error processing sun-j2re1.6 (--configure):

 subprocess installed post-installation script returned error exit status 2

Setting up debtags (1.7.9ubuntu2) ...

Setting up ept-cache (0.5.30) ...

Setting up libfltk1.1 (1.1.10-2) ...

Setting up games-thumbnails (20090628) ...

Setting up goplay (0.3-1ubuntu3) ...

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

Processing triggers for menu ...

Errors were encountered while processing:

 sun-j2re1.6

Setting up sun-j2re1.6 (1.6.0+update22) ...

update-alternatives: error: alternative path /usr/lib/j2re1.6-sun/plugin/i386/ns4/libjavaplugin.so doesn't exist.

dpkg: error processing sun-j2re1.6 (--configure):

 subprocess installed post-installation script returned error exit status 2
************************************************************************************************

The only thing I can think of is that I ran into some problems installing Java a few days ago, but I got it worked out eventually and it's running fine. The problem is, I'm not sure what erroneous steps I might have taken to install Java. Hopefully someone can read this message and explain to me what the software center is trying to do with Java and what I can do to fix it. Thanks!

Nug

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
sikander3786
Solved:
Last query:
Last reply:
Revision history for this message
Best sikander3786 (sikander3786) said :
#1

Try

sudo dpkg --configure -a

sudo apt-get install -f

If that doesn't correct the problem or returns some error, try reinstalling sun-j2re1.6.

sudo apt-get remove --purge sun-j2re1.6

sudo apt-get install sun-j2re1.6

Revision history for this message
Nugget7734 (nugget7734) said :
#2

Thanks Sikander, that solved my question.

Revision history for this message
Nugget7734 (nugget7734) said :
#3

Thank you very much Sikander! I recently wiped out my Windows distro and did a clean install of Ubuntu so I'm still relatively new. I played a lot as a kid with Live CD's and dual-boots, but never really spent a lot of time learning. I figure I'll give myself no other option to learn, out of necessity. I appreciate the help. I ended up having to uninstall and reinstall, but it fixed it :)