Announcement

Collapse
No announcement yet.

can´t install sun-java5-jre

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    can´t install sun-java5-jre

    I want to install a programm called tvbrowser. It needs Java5 jre.
    I tried everything (apt-get, adept...) but I can not install it. This is the output i get:

    sudo apt-get install sun-java5-jre
    Password:
    Reading package lists... Done
    Building dependency tree... Done
    The following extra packages will be installed:
    sun-java5-bin
    Suggested packages:
    sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts
    The following NEW packages will be installed:
    sun-java5-bin sun-java5-jre
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/29.5MB of archives.
    After unpacking 82.6MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Preconfiguring packages ...
    (Reading database ... 73367 files and directories currently installed.)
    Unpacking sun-java5-bin (from .../sun-java5-bin_1.5.0-06-1_i386.deb) ...
    sun-dlj-v1-1 license could not be presented
    dpkg: error processing /var/cache/apt/archives/sun-java5-bin_1.5.0-06-1_i386.deb (--unpack):
    subprocess pre-installation script returned error exit status 2
    Unpacking sun-java5-jre (from .../sun-java5-jre_1.5.0-06-1_all.deb) ...
    sun-dlj-v1-1 license could not be presented
    dpkg: error processing /var/cache/apt/archives/sun-java5-jre_1.5.0-06-1_all.deb (--unpack):
    subprocess pre-installation script returned error exit status 2
    Errors were encountered while processing:
    /var/cache/apt/archives/sun-java5-bin_1.5.0-06-1_i386.deb
    /var/cache/apt/archives/sun-java5-jre_1.5.0-06-1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Can someone tell me what is wrong and how I can fix it?
    Thx a lot.

    #2
    Re: can´t install sun-java5-jre

    You have to use Synaptic to install it. Don't ask me why. Had the same problem.

    While Synaptic is installing it you have to click on the triangle arrow next to show Terminal, so the terminal window opens. There you have to confirm the sun java licence...

    Good luck.

    Comment


      #3
      Re: can´t install sun-java5-jre

      How do I use Synaptic on Kubuntu?

      Comment


        #4
        Re: can´t install sun-java5-jre

        Synaptic is a apt-get frontend like Adept. So either you use Adept to install Synaptic or you do a apt-get to install it.

        Comment


          #5
          Re: can´t install sun-java5-jre

          Juhu
          this worked.
          Thank you so much.

          Comment


            #6
            Re: can´t install sun-java5-jre

            Comment


              #7
              Re: can´t install sun-java5-jre

              The following also worked for me although I'm not sure if it's a worse method than the above using synaptic 

              I downloaded "sun-j2re1.5_1.5.0+update06_i386.deb"

              then used;

              sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb

              and it installed w/o any errors. Then I used the switching script already posted elsewhere on these forums;

              sudo update-alternatives --config java

              and selected the sun java as default (and it works fine in Opera).
              Maybe this only saves 5MB of HD for the GTK-based synaptic...

              Comment

              Working...
              X