Announcement

Collapse
No announcement yet.

apt-get / adept problems

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

    apt-get / adept problems

    Well as i'm new to these forums i'll probably post this in the wrong place.. but here it is..,

    When i try to install anything using apt-get the output looks like this

    Code:
    varg@Cerberus:~$ sudo apt-get install python-irclib
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
     python-irclib
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 22.6kB of archives.
    After unpacking 156kB of additional disk space will be used.
    Get:1 [url]http://se.archive.ubuntu.com[/url] feisty/universe python-irclib 0.4.4-1.1build1 [22.6kB]
    Fetched 22.6kB in 0s (73.2kB/s)
    Selecting previously deselected package python-irclib.
    (Reading database ... dpkg: error processing /var/cache/apt/archives/python-irclib_0.4.4-1.1build1_all.deb (--unpack):
     unable to open files list file for package `dmidecode': Input/output error
    Errors were encountered while processing:
     /var/cache/apt/archives/python-irclib_0.4.4-1.1build1_all.deb
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    It doesn't matter what i try to install it stills generates a similar error.

    And when i try using Adept it just generates the following message:
    The APT Database could not be opened! This may be caused by incorrect configuration or some similar problem. Try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem.

    I've tried searching on a couple of forums, including kubuntuforums.net and also on google and the solutions haven't helped me.

    not sure if it's needed but i'll include my sources.list which should be ok as far as i can see.
    Code:
    # See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to
    # newer versions of the distribution.
    
    deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty main restricted
    deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-updates main restricted
    deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty universe
    deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty multiverse
    deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty multiverse
    
    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-backports main restricted universe multiverse
    # deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-backports main restricted universe multiverse
    
    deb [url]http://security.ubuntu.com/ubuntu[/url] feisty-security main restricted
    deb-src [url]http://security.ubuntu.com/ubuntu[/url] feisty-security main restricted
    deb [url]http://security.ubuntu.com/ubuntu[/url] feisty-security universe
    deb-src [url]http://security.ubuntu.com/ubuntu[/url] feisty-security universe
    deb [url]http://security.ubuntu.com/ubuntu[/url] feisty-security multiverse
    deb-src [url]http://security.ubuntu.com/ubuntu[/url] feisty-security multiverse

    #2
    Re: apt-get / adept problems

    Try
    Code:
    sudo dpkg --configure -a
    Code:
    sudo apt-get update
    Code:
    sudo apt-get install

    If it's not downloading the package headers, there could be an issue with the repository or your mirror site.

    Comment


      #3
      Re: apt-get / adept problems

      sudo dpkg --configure -a doesn't output anything.

      Code:
      varg@Cerberus:~$ sudo apt-get update
      Get:1 [url]http://se.archive.ubuntu.com[/url] feisty Release.gpg [191B]
      Ign [url]http://se.archive.ubuntu.com[/url] feisty/main Translation-en_US
      Ign [url]http://se.archive.ubuntu.com[/url] feisty/restricted Translation-en_US
      Ign [url]http://se.archive.ubuntu.com[/url] feisty/universe Translation-en_US
      Ign [url]http://se.archive.ubuntu.com[/url] feisty/multiverse Translation-en_US
      Get:2 [url]http://se.archive.ubuntu.com[/url] feisty-updates Release.gpg [191B]
      Ign [url]http://se.archive.ubuntu.com[/url] feisty-updates/main Translation-en_US
      Ign [url]http://se.archive.ubuntu.com[/url] feisty-updates/restricted Translation-en_US
      Get:3 [url]http://security.ubuntu.com[/url] feisty-security Release.gpg [191B]
      Ign [url]http://security.ubuntu.com[/url] feisty-security/main Translation-en_US
      Ign [url]http://security.ubuntu.com[/url] feisty-security/restricted Translation-en_US
      Ign [url]http://security.ubuntu.com[/url] feisty-security/universe Translation-en_US
      Ign [url]http://security.ubuntu.com[/url] feisty-security/multiverse Translation-en_US
      Hit [url]http://se.archive.ubuntu.com[/url] feisty Release
      Hit [url]http://se.archive.ubuntu.com[/url] feisty-updates Release
      Hit [url]http://security.ubuntu.com[/url] feisty-security Release
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/main Packages
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/restricted Packages
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/main Sources
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/restricted Sources
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/universe Packages
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/universe Sources
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/multiverse Packages
      Hit [url]http://se.archive.ubuntu.com[/url] feisty/multiverse Sources
      Hit [url]http://se.archive.ubuntu.com[/url] feisty-updates/main Packages
      Hit [url]http://se.archive.ubuntu.com[/url] feisty-updates/restricted Packages
      Hit [url]http://se.archive.ubuntu.com[/url] feisty-updates/main Sources
      Hit [url]http://se.archive.ubuntu.com[/url] feisty-updates/restricted Sources
      Hit [url]http://security.ubuntu.com[/url] feisty-security/main Packages
      Hit [url]http://security.ubuntu.com[/url] feisty-security/restricted Packages
      Hit [url]http://security.ubuntu.com[/url] feisty-security/main Sources
      Hit [url]http://security.ubuntu.com[/url] feisty-security/restricted Sources
      Hit [url]http://security.ubuntu.com[/url] feisty-security/universe Packages
      Hit [url]http://security.ubuntu.com[/url] feisty-security/universe Sources
      Hit [url]http://security.ubuntu.com[/url] feisty-security/multiverse Packages
      Hit [url]http://security.ubuntu.com[/url] feisty-security/multiverse Sources
      Fetched 3B in 1s (2B/s)
      Reading package lists... Done
      Code:
      varg@Cerberus:~$ sudo apt-get install
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Still the same errors though.

      Comment


        #4
        Re: apt-get / adept problems

        Okay. Looks like it's time for the big guns.

        Open a console and type:
        Code:
        sudo apt-get autoremove
        followed by:
        Code:
        sudo apt-get autoclean
        apt-get autoremove will:
        autoremove is used to remove packages that were automatically
        installed to satisfy dependencies for some package and that are no
        more needed.
        apt-get autoclean will:
        Like clean, autoclean clears out the local repository of retrieved
        package files. The difference is that it only removes package files
        that can no longer be downloaded, and are largely useless. This
        allows a cache to be maintained over a long period without it
        growing out of control. The configuration option
        APT::Clean-Installed will prevent installed packages from being
        erased if it is set to off.
        Then, rerun:
        Code:
        apt-get update
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: apt-get / adept problems

          Code:
          varg@Cerberus:~$ sudo apt-get autoremove
          Password:
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Code:
          varg@Cerberus:~$ sudo apt-get autoclean
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          And the apt-get update generates the same output as earlier.

          And of course, both errors are still there

          Comment


            #6
            Re: apt-get / adept problems

            Well......

            That pretty much leaves us with a problem in your /etc/apt/sources.list
            Can you re-post it now?
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: apt-get / adept problems

              Code:
              varg@Cerberus:~$ cat /etc/apt/sources.list
              # See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to
              # newer versions of the distribution.
              
              deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty main restricted
              deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty main restricted
              
              ## Major bug fix updates produced after the final release of the
              ## distribution.
              deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-updates main restricted
              deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-updates main restricted
              
              ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
              ## team, and may not be under a free licence. Please satisfy yourself as to
              ## your rights to use the software. Also, please note that software in
              ## universe WILL NOT receive any review or updates from the Ubuntu security
              ## team.
              deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty universe
              deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty universe
              
              ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
              ## team, and may not be under a free licence. Please satisfy yourself as to
              ## your rights to use the software. Also, please note that software in
              ## multiverse WILL NOT receive any review or updates from the Ubuntu
              ## security team.
              deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty multiverse
              deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty multiverse
              
              ## Uncomment the following two lines to add software from the 'backports'
              ## repository.
              ## N.B. software from this repository may not have been tested as
              ## extensively as that contained in the main release, although it includes
              ## newer versions of some applications which may provide useful features.
              ## Also, please note that software in backports WILL NOT receive any review
              ## or updates from the Ubuntu security team.
              # deb [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-backports main restricted universe multiverse
              # deb-src [url]http://se.archive.ubuntu.com/ubuntu/[/url] feisty-backports main restricted universe multiverse
              
              deb [url]http://security.ubuntu.com/ubuntu[/url] feisty-security main restricted
              deb-src [url]http://security.ubuntu.com/ubuntu[/url] feisty-security main restricted
              deb [url]http://security.ubuntu.com/ubuntu[/url] feisty-security universe
              deb-src [url]http://security.ubuntu.com/ubuntu[/url] feisty-security universe
              deb [url]http://security.ubuntu.com/ubuntu[/url] feisty-security multiverse
              deb-src [url]http://security.ubuntu.com/ubuntu[/url] feisty-security multiverse
              i tried running adept from the console to check if it generated any errormessages... and well..
              Code:
              varg@Cerberus:~$ kdesu adept_manager
              kapture::PkgSystem::PkgSystem()
              
              Input/output error. Context: getting file information for /var/lib/debtags/pkgidx.idx
              Not sure if it helps though

              Comment


                #8
                Re: apt-get / adept problems

                I don't see anything wrong with the list. I'm connecting to US sites, you to SE sites.

                What happens when you run the GUI Adept Manager and check for updates?
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: apt-get / adept problems

                  Well, as I said in the first post i can't run Adept either =/

                  Originally posted by varg

                  And when i try using Adept it just generates the following message:
                  The APT Database could not be opened! This may be caused by incorrect configuration or some similar problem. Try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem.

                  Comment


                    #10
                    Re: apt-get / adept problems

                    When you do fire it off from the GUI, are you prompted for a password (you should be)?
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      Re: apt-get / adept problems

                      Yes, then it loads like it always do except that the error pops up and i can't do anything else with it.

                      Comment


                        #12
                        Re: apt-get / adept problems

                        I'll toss in a crazy idea, since the usual stuff isn't working. And, this might be the Linux equivalent of a self-lobotomy -- it might never work again (I'd back up my data if it isn't on its own partition ...). :P
                        Code:
                        sudo apt-get remove purge dpkg
                        Code:
                        sudo apt-get install dpkg
                        Or, if you could get Adept Manager to open, you could just mark the dpkg package for removal, and then "apply", and then mark it for installation, and again "apply".

                        If this happens to work, you'll definitely want to
                        Code:
                         sudo dpkg --configure -a
                        immediately afterward.

                        Comment


                          #13
                          Re: apt-get / adept problems

                          Originally posted by dibl
                          I'll toss in a crazy idea, since the usual stuff isn't working. And, this might be the Linux equivalent of a self-lobotomy -- it might never work again (I'd back up my data if it isn't on its own partition ...). :P
                          You do like living on the edge!
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            Re: apt-get / adept problems

                            Yeah, I know -- I think I got too comfortable with the "reinstall" option during all those years with Windows!

                            Seriously, this error is making me wonder if the package manager is truly broken:

                            varg@Cerberus:~$ kdesu adept_manager
                            kapture::PkgSystem::PkgSystem()

                            Input/output error. Context: getting file information for /var/lib/debtags/pkgidx.idx
                            If it is, I'm afraid only a serious surgical procedure can save the patient ... :P

                            Comment


                              #15
                              Re: apt-get / adept problems

                              well, i am creating backups on the stuff on that disk right now and been doing that all day in case i had to format..
                              isn't dpkg needed to install stuff? and wouldn't that make the apt-get install dpkg useless? :P

                              Usually when something breaks it's my fault, but this time i can't recall me doing anything strange..

                              Comment

                              Working...
                              X