Announcement

Collapse
No announcement yet.

can't upgrade due to a resident broken package.

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

    can't upgrade due to a resident broken package.

    currently trying to upgrade from Edgy to Feisty.
    In adept I tried fetch updates and after I go through the install wizard process all goes well until it finds a broken package. 'linux-igd'
    I can't remove the package linux-igd, I've tried with the broken filter, remove, reinstall etc etc, it just can be removed. so it hangs my Feisty upgrade.
    I now have feisty references in my repositories and there are 1021 updates available.
    I just don't want to have to clean install everything again after having it all custom set up the way I like it

    #2
    Re: can't upgrade due to a resident broken package.

    Did you try Synaptic?
    It has a 'fix broken packages' feature.

    You could also try
    "sudo aptitude autoclean".

    I managed to remove a bunch of orphans that way.

    Comment


      #3
      Re: can't upgrade due to a resident broken package.

      I have no idea if this can help you. I got three errors while upgrading using adept.
      After rebooting and restarting adept, till my very very very big surpise, upgrading just went on without the error.
      In the end all was well.

      Comment


        #4
        Re: can't upgrade due to a resident broken package.

        Originally posted by PJJ
        Did you try Synaptic?
        It has a 'fix broken packages' feature.

        You could also try
        "sudo aptitude autoclean".

        I managed to remove a bunch of orphans that way.
        I tried synaptic, it didn't work. tried Auto clean, without success. It still hangs at the error re Linux-igd.
        >
        Originally posted by Goeroeboeroe
        I have no idea if this can help you. I got three errors while upgrading using adept.
        After rebooting and restarting adept, till my very very very big surpise, upgrading just went on without the error.
        In the end all was well.
        I restarted it 3 times and it always hangs. Might be a clean install.
        I'll have to wait as I have some big downloads happening at the moment and don't want to lose anything.

        Comment


          #5
          Re: can't upgrade due to a resident broken package.

          Right from the package manager's diary (aka APT manual):

          If an installation breaks in the middle of the process and you find that it's no longer possible to install or remove packages, try running these two commands:

          # apt-get -f install
          # dpkg --configure -a



          Comment


            #6
            Re: can't upgrade due to a resident broken package.

            Originally posted by UnicornRider
            Right from the package manager's diary (aka APT manual):

            If an installation breaks in the middle of the process and you find that it's no longer possible to install or remove packages, try running these two commands:

            # apt-get -f install
            # dpkg --configure -a

            thanks, but I did this and it gave me an error about linux-igd too

            And if I try to purge it in konsole It says it's not there.

            "defaultusers@defaultuserdesktop:~$ sudo dpkg --purge linux-idg
            dpkg - warning: ignoring request to remove linux-idg which isn't installed.
            defaultusers@defaultuserdesktop:~$"

            Comment


              #7
              Re: can't upgrade due to a resident broken package.

              Originally posted by rovernaut
              $ sudo dpkg --purge linux-idg
              Beware of typos: it's linux-igd (not "idg")

              Code:
              root # apt-get install linux-igd
              The following extra packages will be installed:
               libupnp0
              The following NEW packages will be installed:
               libupnp0 linux-igd
              Be that as it may, you won't need it anyway - leave the "plug(ing) and pray(ing)" to Mickey's friends :P

              Comment


                #8
                Re: can't upgrade due to a resident broken package.

                Oh, yes they typo. sorry. I realized I posted it in the wrong forum. Thanks for your help

                I corrected this typo and got this.....

                defaultusers@defaultuserdesktop:~$ sudo dpkg --purge linux-igd
                Password:
                dpkg: error processing linux-igd (--purge):
                Package is in a very bad inconsistent state - you should
                reinstall it before attempting a removal.
                Errors were encountered while processing:
                linux-igd

                I then tried to reinstall and got this .......

                root@defaultuserdesktop:/home/defaultusers# apt-get install linux-igd
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                The following packages were automatically installed and are no longer required:
                libgnucrypto-java libcairo-java-gcj libqt4-debug-kdecopy libbcprov-java-gcj
                libglib-java-gcj g++-4.1 libswt3.2-gtk-java g++ libgtk-java-gcj libgtk-jni
                libstdc++6-4.1-dev libcairo-java kde4libs-data libbcprov-java libglib-java
                dpkg-dev libcrypto++5.2c2a libgtk-java libswt3.2-gtk-jni
                Use 'apt-get autoremove' to remove them.
                The following packages will be upgraded:
                linux-igd
                1 upgraded, 0 newly installed, 0 to remove and 1016 not upgraded.
                1 not fully installed or removed.
                Need to get 0B/33.7kB of archives.
                After unpacking 8192B of additional disk space will be used.
                Xlib: connection to ":0.0" refused by server
                Xlib: Invalid MIT-MAGIC-COOKIE-1 key
                dpkg-preconfigure: cannot connect to X server :0.0
                debconf: unable to initialize frontend: Kde
                debconf: (DISPLAY problem?)
                debconf: falling back to frontend: Dialog
                Selecting previously deselected package linux-igd.
                (Reading database ... 169886 files and directories currently installed.)
                Preparing to replace linux-igd 0.cvs20060201-1 (using .../linux-igd_0.cvs20060201-2ubuntu1_i386.deb) ...
                External interface not specified in /etc/default/upnpd
                invoke-rc.d: initscript upnpd, action "stop" failed.
                dpkg: warning - old pre-removal script returned error exit status 1
                dpkg - trying script from the new package instead ...
                External interface not specified in /etc/default/upnpd
                invoke-rc.d: initscript upnpd, action "stop" failed.
                dpkg: error processing /var/cache/apt/archives/linux-igd_0.cvs20060201-2ubuntu1_i386.deb (--unpack):
                subprocess new pre-removal script returned error exit status 1
                External interface not specified in /etc/default/upnpd
                invoke-rc.d: initscript upnpd, action "start" failed.
                dpkg: error while cleaning up:
                subprocess post-installation script returned error exit status 1
                Errors were encountered while processing:
                /var/cache/apt/archives/linux-igd_0.cvs20060201-2ubuntu1_i386.deb
                E: Sub-process /usr/bin/dpkg returned an error code (1)


                Comment


                  #9
                  Re: can't upgrade due to a resident broken package.

                  Originally posted by rovernaut
                  External interface not specified in /etc/default/upnpd
                  That's why I call it "plug & pray" > you may, however, try to change /etc/default/upnpd to something similar to:

                  Code:
                  ## define inner interface. and comment out next line.
                  IIF=eth0
                  ## define outer interface. and comment out next line.
                  OIF=pppoe0

                  Comment


                    #10
                    Re: can't upgrade due to a resident broken package.

                    Originally posted by UnicornRider
                    Originally posted by rovernaut
                    External interface not specified in /etc/default/upnpd
                    That's why I call it "plug & pray" > you may, however, try to change /etc/default/upnpd to something similar to:

                    Code:
                    ## define inner interface. and comment out next line.
                    IIF=eth0
                    ## define outer interface. and comment out next line.
                    OIF=pppoe0
                    Thanks again UnicornRider,
                    This is where my newbieness comes out.
                    You've just lost me.
                    but this is what I have presently in /etc/default/upnpd

                    # Defaults for upnpd initscript
                    # sourced by /etc/init.d/upnpd
                    # installed at /etc/default/upnpd by the maintainer scripts

                    # External interface name
                    #EXT_IFACE=ppp0

                    # Internal interface name
                    #INT_IFACE=eth0

                    Comment


                      #11
                      Re: can't upgrade due to a resident broken package.

                      Originally posted by rovernaut
                      You've just lost me.
                      Gotcha but, just in case this helps calming you down: I had to improvise a little - for, as I mentioned before, I do not use this kind of stuff on my own machines 8)

                      Originally posted by rovernaut
                      but this is what I have presently in /etc/default/upnpd
                      I'd change this as follows and give the whole thing another try ...:

                      Code:
                      # External interface name
                      EXT_IFACE=ppp0
                      # Internal interface name
                      INT_IFACE=eth0
                      (Removing the trailing "#" activates what has been deactivated before ...)

                      Comment


                        #12
                        Re: can't upgrade due to a resident broken package.

                        Originally posted by UnicornRider
                        Originally posted by rovernaut
                        You've just lost me.
                        Gotcha but, just in case this helps calming you down: I had to improvise a little - for, as I mentioned before, I do not use this kind of stuff on my own machines 8)

                        Originally posted by rovernaut
                        but this is what I have presently in /etc/default/upnpd
                        I'd change this as follows and give the whole thing another try ...:

                        Code:
                        # External interface name
                        EXT_IFACE=ppp0
                        # Internal interface name
                        INT_IFACE=eth0
                        (Removing the trailing "#" activates what has been deactivated before ...)
                        You are a Linux god!!!!
                        Thanx that fixed it. I was a little worried though during the upgrade as there was a heap of script about cannot connect to x server, I thought I was going to loose X.
                        Fingers crossed and she booted up into Feisty.
                        I have a couple of issues configuring Firefox and Thunderbird were the toolbar text see and message list seems smaller now. must have to tweak them.
                        thanx again for your patience and help

                        Comment


                          #13
                          Re: can't upgrade due to a resident broken package.

                          Originally posted by rovernaut
                          You are a Linux god!!!!
                          No (not yet, that is ...) - but I'm being called "Dr. House" for a couple of reasons

                          --

                          As for the "Mozilla family": http://www.penguin.ch/dokuwiki/doku....naries:mozilla (?)

                          Comment

                          Working...
                          X