Announcement

Collapse
No announcement yet.

Can't install anything with Shell [SOLVED]

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

    #16
    Re: Can't install anything with Shell

    Get this errormessage.
    Code:
    dpkg: error processing /var/cache/apt/archives/sun-java5-jdk_1.5.0-06-1_i386.deb (--unpack):
     subprocess pre-installation script returned error exit status 1
    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
     /var/cache/apt/archives/sun-java5-jdk_1.5.0-06-1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Comment


      #17
      Re: Can't install anything with Shell

      The correct command line search using apt is:
      sudo apt-cache search "whatever"
      http://newbiedoc.sourceforge.net/sys...get-intro.html

      To generate a more or less complete /etc/apt/sources.list
      go to:
      http://www.ubuntulinux.nl/source-o-matic

      when you use apt-get you will only install the package you ask for,
      if you use aptitude you will also resolve all dependencies
      aptitude will also remember all dependencies when uninstalling, apt-get will not.

      sudo aptitude install "something"

      Comment


        #18
        Re: Can't install anything with Shell

        This is going to kill me.
        what the f*** is going on?
        Code:
        dpkg: serious warning: files list file for package `sun-java5-bin' missing, assuming package has no files currently installed.
        
        dpkg: serious warning: files list file for package `sun-java5-jre' missing, assuming package has no files currently installed.
        77388 files and directories currently installed.)
        Preparing to replace sun-java5-bin 1.5.0-06-1 (using .../sun-java5-bin_1.5.0-06-1_i386.deb) ...
        debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process
        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 1
        Preparing to replace sun-java5-jre 1.5.0-06-1 (using .../sun-java5-jre_1.5.0-06-1_all.deb) ...
        debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process
        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 1
        Unpacking sun-java5-jdk (from .../sun-java5-jdk_1.5.0-06-1_i386.deb) ...
        debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process
        dpkg: error processing /var/cache/apt/archives/sun-java5-jdk_1.5.0-06-1_i386.deb (--unpack):
         subprocess pre-installation script returned error exit status 1
        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
         /var/cache/apt/archives/sun-java5-jdk_1.5.0-06-1_i386.deb
        E: Sub-process /usr/bin/dpkg returned an error code (1)

        Comment


          #19
          Re: Can't install anything with Shell

          Welcome to dependency hell...
          There is no easy way to resolve these types of dpkg errors
          Have a look here for some extensive info on debugging:
          http://shearer.org/Debugging_Dpkg_Problems

          Alternative method to install JAVA:
          J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox
          sudo aptitude install sun-java5-jre sun-java5-plugin
          sudo update-alternatives --config java
          ---------------------------------------------------
          To install JRE v5.0 Update 9
          Download the "Linux (self-extracting file)" from http://java.com/en/download/manual.jsp
          copy it to /usr/java/
          copy it to /usr/lib/firefox/plugins
          copy it to /usr/lib/mozilla/plugins

          make shure the file name below is correct ! change it accordingly

          sudo chmod a+x jre-1_5_0_09-linux-i586.bin
          sudo ./jre-1_5_0_09-linux-i586.bin
          cd /usr/lib/firefox/plugins
          sudo ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so
          cd /usr/lib/mozilla/plugins
          sudo ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.s
          --------------------------------------------------
          sudo aptitude install flashplugin-nonfree
          sudo update-flashplugin

          worked without issues for me

          Comment


            #20
            Re: Can't install anything with Shell [SOLVED]

            Thank you all who helped me through this, but the problem is solved now and Java is running in all components.

            Comment

            Working...
            X