Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Problems with apt-get upgrade error code (2)

  1. #11
    Join Date
    May 2006
    Location
    Copenhagen
    Beans
    162
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Problems with apt-get upgrade error code (2)

    Hi Bash,

    checking the disc I got

    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 129G 55G 68G 45% /
    udev 1,5G 4,0K 1,5G 1% /dev
    tmpfs 598M 832K 597M 1% /run
    none 5,0M 0 5,0M 0% /run/lock
    none 1,5G 1,5M 1,5G 1% /run/shm
    And checking the headers I got

    $ dpkg -l | grep linux-headers
    ii linux-headers-3.2.0-23 3.2.0-23.36 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-23-generic 3.2.0-23.36 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-24 3.2.0-24.39 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-24-generic 3.2.0-24.39 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-25 3.2.0-25.40 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-25-generic 3.2.0-25.40 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-26 3.2.0-26.41 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-26-generic 3.2.0-26.41 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-27 3.2.0-27.43 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-27-generic 3.2.0-27.43 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-29 3.2.0-29.46 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-29-generic 3.2.0-29.46 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-30 3.2.0-30.48 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-30-generic 3.2.0-30.48 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-31 3.2.0-31.50 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-31-generic 3.2.0-31.50 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-32 3.2.0-32.51 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-32-generic 3.2.0-32.51 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-33 3.2.0-33.52 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-33-generic 3.2.0-33.52 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-34 3.2.0-34.53 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-34-generic 3.2.0-34.53 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-3.2.0-35 3.2.0-35.55 Header files related to Linux kernel version 3.2.0
    ii linux-headers-3.2.0-35-generic 3.2.0-35.55 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
    ii linux-headers-generic 3.2.0.35.40 Generic Linux kernel headers

    thanks

  2. #12
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Problems with apt-get upgrade error code (2)

    thorbs;

    Sorry I missed your reply, playing catchup now.
    1. Disk space looks good.
    2. That many old images on your system. Lets get rid of all but the latest 3, bet that will also resolve the update problems if the "bad" header package is gone.
    Thus:
    The command
    Code:
     uname -a
    in a terminal will tell you which kernel you are running....then:
    Go to Synaptic Package Manager select status on the left-lower pane and select installed on the left-upper pane and search for linux-image.
    select the ones you want deleted. listed in the right-upperpane.
    and mark for removal/complete removal.
    Click the Apply button in the toolbar and then Apply in the summary window that pops up. Close Synaptic Package Manager.
    In addition to linux-image, also remove old versions of linux-headers and linux-restricted-modules (if you have them).
    Now in terminal update grub:
    Code:
    sudo update-grub
    synaptic package manager is no longer installed by default, download and install:
    Code:
    sudo apt-get install synaptic
    If all goes well, now what results from the terminal commands ? :
    Code:
     sudo apt-get update
    sudo apt-get upgrade
    looking good now ? <== BDQ

  3. #13
    Join Date
    May 2006
    Location
    Copenhagen
    Beans
    162
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Problems with apt-get upgrade error code (2)

    I got stock allready trying to move old images from my system:

    I got the following error

    (Reading database ... 50%dpkg: unrecoverable fatal error, aborting:
    reading files list for package 'linux-headers-3.2.0-24': Input/output error
    W: Waited for dpkg --assert-multi-arch but it wasn't there - dpkgGo (10: No child processes)
    E: Sub-process /usr/bin/dpkg returned an error code (2)

    happy newyears bash

  4. #14
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Problems with apt-get upgrade error code (2)

    thorbs;

    Well (not), as the shotgun approach is not effective. What happens if the file is singled out for purging ?
    Code:
    sudo apt-get remove --auto-remove linux-headers-3.2.0-24
    see :
    Code:
    man apt-get
    may your new year be blessed too < == BDQ

  5. #15
    Join Date
    May 2006
    Location
    Copenhagen
    Beans
    162
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Problems with apt-get upgrade error code (2)

    Hi Bash,

    I tried rm the files seperately, but still got the same result and the same error code.

    I also read the manpage.

    Is there anything left to try?

  6. #16
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Problems with apt-get upgrade error code (2)

    thorbs; SHeeesshh,
    Don't know at the present time. What we have here is a failure to communicate. I ain't talking to the right component !
    I just do not comprehend why such an old header file can be causing such a problem.
    While I am looking and thinking ...try this one and see what results:
    Code:
     sudo apt-get dist-upgrade
    By doing an "sudo apt-get dist-upgrade" it will update packages and install new kernels as well as resolve package conflicts.
    we are not beat yet ==> BDQ

  7. #17
    Join Date
    May 2006
    Location
    Copenhagen
    Beans
    162
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Problems with apt-get upgrade error code (2)

    I am afraid I got the same result as with my other approaches. We seem to be a bit stuck

  8. #18
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Problems with apt-get upgrade error code (2)

    @thorbs;

    Yeah I am afraid so, presently my comprehension is lacking. I do not understand how an old system file can cause such a situation. Or, why it pops up now to bite

    What happens if you try and (re)install that header file ?
    Code:
    sudo apt-get install --reinstall linux-headers-3.2.0-24
    just 'bout the time I think I know something, I find out how little I actually know !
    ==> BDQ

  9. #19
    Join Date
    May 2006
    Location
    Copenhagen
    Beans
    162
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Problems with apt-get upgrade error code (2)

    Ok, I did but still same result.

    Thanks for the big effort bash.


    I think I am starting to think in reinstall as my system at its present state is not really fully productive. What you think bash time to let it go?

    thanks again.


    thorbs

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •