Announcement

Collapse
No announcement yet.

problem with openjdk-6-jre-headless [SOLVED]

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

    #31
    Re: problem with openjdk-6-jre-headless

    sorry about the previous post being a mess. now, i deleted precisely what you told me, tried to do the removal of openjdk and got this:

    Code:
    ***@***:~$ sudo apt-get remove --purge openjdk-6-jre-headless
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package openjdk-6-jre-headless is not installed, so not removed
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up sun-java6-bin (6-14-0ubuntu1.9.04) ...
    update-alternatives: internal error: /var/lib/dpkg/alternatives/orbd corrupt: invalid update mode
    dpkg: error processing sun-java6-bin (--configure):
     subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
     sun-java6-bin
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    seems like i did something wrong. should i try doing sudo apt-get remove --purge [whatever sun java 6 is] ?

    Comment


      #32
      Re: problem with openjdk-6-jre-headless

      We already removed openjdk-6-jre-headless. We are trying to remove sun-java6-bin. The next step is to remove the files in /var/lib/dpkg/info related to sun-java6-bin. There are probably two files: sun-java6-bin.prerm and sun-java6-postrm. Delete them both, then run "sudo apt-get remove --purge sun-java6-bin" to remove it. After you finish removing sun-java6-bin, paste output from "aptitude search sun-java6" and "aptitude search openjdk" in you next post. Once we have clean output (no packages installed), we'll double check the alternatives system, upgrade, then install Java again after the upgrade and hopefully it works.
      linux && bash = "the future"

      Comment


        #33
        Re: problem with openjdk-6-jre-headless

        it deleted everything without reporting any problems.

        Code:
        ***@***:~$ aptitude search sun-java6
        p  sun-java6-bin                   - Sun Java(TM) Runtime Environment (JRE) 6 (architecture depend
        p  sun-java6-demo                   - Sun Java(TM) Development Kit (JDK) 6 demos and examples
        p  sun-java6-doc                   - Sun JDK(TM) Documention -- integration installer
        p  sun-java6-fonts                  - Lucida TrueType fonts (from the Sun JRE)
        p  sun-java6-javadb                  - Java(TM) DB, Sun Microsystems' distribution of Apache Derby
        p  sun-java6-jdk                   - Sun Java(TM) Development Kit (JDK) 6
        p  sun-java6-jre                   - Sun Java(TM) Runtime Environment (JRE) 6 (architecture indepe
        p  sun-java6-plugin                  - The Java(TM) Plug-in, Java SE 6
        p  sun-java6-source                  - Sun Java(TM) Development Kit (JDK) 6 source files
        Code:
        ***@***:~$ aptitude search openjdk
        p  openjdk-6-dbg                   - Java runtime based on OpenJDK (debugging symbols)
        p  openjdk-6-demo                   - Java runtime based on OpenJDK (demos and examples)
        p  openjdk-6-doc                   - OpenJDK Development Kit (JDK) documentation
        p  openjdk-6-jdk                   - OpenJDK Development Kit (JDK)
        p  openjdk-6-jre                   - OpenJDK Java runtime, using Hotspot JIT
        p  openjdk-6-jre-headless               - OpenJDK Java runtime, using Hotspot JIT (headless)
        p  openjdk-6-jre-lib                 - OpenJDK Java runtime (architecture independent libraries)
        p  openjdk-6-jre-zero                 - Alternatve JVM for OpenJDK, using Zero/Shark
        p  openjdk-6-source                  - OpenJDK Development Kit (JDK) source files
        p  openjdk-6-source-files               - OpenJDK 6 source files (used as a build dependency)

        Comment


          #34
          Re: problem with openjdk-6-jre-headless

          Looking good, try a full upgrade, reboot and then reinstall Java. I would not install openjdk unless you have a need for it. Verify Java from a web browser and you are done. If the final steps fix your problem mark this thread SOLVED.

          1. sudo aptitude full-upgrade
          2. reboot
          3. sudo aptitude install sun-java6-jre

          Cheers, UK


          linux && bash = "the future"

          Comment


            #35
            Re: problem with openjdk-6-jre-headless

            heh, the upgrade went fine, kubuntu jammed when i did a reboot so i had to press the physical reboot button on the computer, the computer loaded fine, i entered the console and started the installation. everything seemed to go fine until this happened (taken from the end of the installation text):

            Code:
            Setting up sun-java6-bin (6-14-0ubuntu1.9.04) ...
            update-alternatives: internal error: /var/lib/dpkg/alternatives/orbd corrupt: invalid update mode
            dpkg: error processing sun-java6-bin (--configure):
             subprocess post-installation script returned error exit status 2
            Errors were encountered while processing:
             sun-java6-bin
            E: Sub-process /usr/bin/dpkg returned an error code (1)
            A package failed to install. Trying to recover:
            Setting up sun-java6-bin (6-14-0ubuntu1.9.04) ...
            update-alternatives: internal error: /var/lib/dpkg/alternatives/orbd corrupt: invalid update mode
            dpkg: error processing sun-java6-bin (--configure):
             subprocess post-installation script returned error exit status 2
            Errors were encountered while processing:
             sun-java6-bin
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Reading extended state information
            Initializing package states... Done
            Writing extended state information... Done

            Comment


              #36
              Re: problem with openjdk-6-jre-headless

              It's the same error you got when trying to remove it. If you man orbd, that's the object request broker daemon. Follow the steps below in order. We can figure out why orbd is having problems with the alternatives system later. You don't need orbd in alternatives so no big deal.

              1. sudo update-alternatives --remove-all orbd
              2. kdesudo kate /var/lib/dpkg/info/sun-java6-bin.postinst
              3. locate the following line:
              Code:
              jre_tools='ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv'
              4. Change it by removing orbd from the string:
              Code:
              jre_tools='ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 servertool tnameserv'
              5. Save the file and exit
              6. sudo aptitude install sun-java6-bin
              7. sudo aptitude install sun-java6-jre
              linux && bash = "the future"

              Comment


                #37
                Re: problem with openjdk-6-jre-headless

                tried to remove orbd, got this message:
                Code:
                update-alternatives: internal error: /var/lib/dpkg/alternatives/orbd corrupt: invalid update mode

                Comment


                  #38
                  Re: problem with openjdk-6-jre-headless

                  We are going to the /var/lib/dpkg/alternatives directory this time. You will find a file named orbd. It's already corrupt but make a backup before you remove it.

                  From a terminal...
                  1. cd /var/lib/dpkg/alternatives
                  2. sudo cp orbd orbd.20090824
                  3. sudo rm -f orbd
                  4. sudo aptitude install sun-java6-jre

                  linux && bash = "the future"

                  Comment


                    #39
                    Re: problem with openjdk-6-jre-headless

                    and naturally....
                    Code:
                    Setting up sun-java6-bin (6-14-0ubuntu1.9.04) ...
                    update-alternatives: internal error: /var/lib/dpkg/alternatives/servertool corrupt: missing newline after update_mode
                    dpkg: error processing sun-java6-bin (--configure):
                     subprocess post-installation script returned error exit status 2
                    Errors were encountered while processing:
                     sun-java6-bin
                    E: Sub-process /usr/bin/dpkg returned an error code (1)
                    A package failed to install. Trying to recover:
                    Setting up sun-java6-bin (6-14-0ubuntu1.9.04) ...
                    update-alternatives: internal error: /var/lib/dpkg/alternatives/servertool corrupt: missing newline after update_mode
                    dpkg: error processing sun-java6-bin (--configure):
                     subprocess post-installation script returned error exit status 2
                    Errors were encountered while processing:
                     sun-java6-bin
                    am i doing something wrong here?

                    Comment


                      #40
                      Re: problem with openjdk-6-jre-headless

                      No, you are not doing anything wrong. The problem is all the Java tools were setup in alternatives then we manually deleted the packages. What we need to do is simply remove all the alternative files related to the Java tools. I don't think the package removal caused the problems. You were experiencing the errors previous to all our effort.

                      Have a look at this line in the sun-java6-bin.postinst file...

                      Code:
                      jre_tools='ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv'
                      Notice what comes after orbd, yep, servertool. Go look for /var/lib/dpkg/alternatives/servertool. That's the one causing you grief now. The real solution is zap all those files, install Java again and hopefully alternatives will fix itself. Don't worry, we are getting real close finally.
                      linux && bash = "the future"

                      Comment


                        #41
                        Re: problem with openjdk-6-jre-headless

                        Hopefully this will finally do it...

                        Code:
                        1. cd /var/lib/dpkg/alternatives
                        2. sudo rm -f servertool
                        3. sudo rm -f tnameserv
                        4. sudo aptitude install sun-java6-jre
                        linux && bash = "the future"

                        Comment


                          #42
                          Re: problem with openjdk-6-jre-headless

                          ah-HA!!

                          Code:
                          ***@***:/var/lib/dpkg/alternatives$ sudo aptitude install sun-java6-jre
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          Reading extended state information
                          Initializing package states... Done
                          The following partially installed packages will be configured:
                           sun-java6-bin
                          0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                          Need to get 0B of archives. After unpacking 0B will be used.
                          Writing extended state information... Done
                          Setting up sun-java6-bin (6-14-0ubuntu1.9.04) ...
                          
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          Reading extended state information
                          Initializing package states... Done
                          this seemed to have done the trick (if this seems wrong, let me know). THANKS! who knows, maybe there's hope for more problematic things, like how my kubuntu refuses to wake from "suspend to disk" or how kubuntu (and suse) hate my wife's toshiba laptop.

                          Comment


                            #43
                            Re: problem with openjdk-6-jre-headless [SOLVED]

                            Success...FINALLY. Your Java environment should be fixed. Go ahead and mark the thread SOLVED.

                            A lot of us are having suspend issues with laptops. Mine is behaving better recently, maybe an update I applied. I'm on KDE 4.3 and kernel 2.6.30 in a 9.04 environment.

                            Cheers, UK
                            linux && bash = "the future"

                            Comment


                              #44
                              Re: problem with openjdk-6-jre-headless [SOLVED]

                              already marked it as solved.
                              the laptop has opensuse on it and different problems (an ATI graphics card with no support. tried the kubuntu live cd but the screen sent wrong size signals so i can't use kubuntu on it). the suspend issue is on my desktop, been there since i re-installed it about a month ago, but kubuntu loads pretty fast on this old tractor as it is (with ext4) so it doesn't bother me that much.

                              thanks!

                              Comment


                                #45
                                Re: problem with openjdk-6-jre-headless [SOLVED]

                                No problem, glad we got it working. Took a little longer than expected but that's the nature of Linux. The fun is fixing it not using it.
                                linux && bash = "the future"

                                Comment

                                Working...
                                X