"unmet dependencies: linux-generic : Depends: linux-image-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed Depends: linux-headers-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed"--HELP!

Asked by Riley

My update manager won't work, so I can't install or remove anything. When I try installing software, it says "The package system is broken." I've tried https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure and it doesn't work.

yolanda@yolanda-ME051:~$ ubuntu-support-status
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 120, in <module>
    (still_supported, support_str) = get_maintenance_status(cache, pkg.name, support_tag)
  File "/usr/bin/ubuntu-support-status", line 41, in get_maintenance_status
    raise Exception("No date tag found")
Exception: No date tag found
yolanda@yolanda-ME051:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for yolanda:
yolanda@yolanda-ME051:~$ grep proxy /etc/environment
yolanda@yolanda-ME051:~$ echo $http_proxy

yolanda@yolanda-ME051:~$ echo $ftp_proxy

yolanda@yolanda-ME051:~$ grep proxy /etc/bash.bashrc
yolanda@yolanda-ME051:~$ grep proxy ~/.bashrc
yolanda@yolanda-ME051:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
yolanda@yolanda-ME051:~$ sudo fuser -vvv /var/lib/dpkg/lock
yolanda@yolanda-ME051:~$ sudo fuser -vvv /var/cache/apt/archives/lock
yolanda@yolanda-ME051:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
yolanda@yolanda-ME051:~$ uname -a
Linux yolanda-ME051 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:40:43 UTC 2013 i686 i686 i386 GNU/Linux
yolanda@yolanda-ME051:~$ sudo rm /var/lib/apt/lists/lock
yolanda@yolanda-ME051:~$ sudo rm /var/cache/apt/archives/lock
yolanda@yolanda-ME051:~$ sudo rm /var/lib/dpkg/lock
yolanda@yolanda-ME051:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
yolanda@yolanda-ME051:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
yolanda@yolanda-ME051:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
yolanda@yolanda-ME051:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
yolanda@yolanda-ME051:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
yolanda@yolanda-ME051:~$ sudo rm -rf /var/lib/dpkg/updates/*
yolanda@yolanda-ME051:~$ sudo rm -rf /var/lib/apt/lists
yolanda@yolanda-ME051:~$ sudo rm /var/cache/apt/*.bin
yolanda@yolanda-ME051:~$ sudo mkdir /var/lib/apt/lists
yolanda@yolanda-ME051:~$ sudo mkdir /var/lib/apt/lists/partial
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get clean
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-generic : Depends: linux-image-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed
                 Depends: linux-headers-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed
E: Unmet dependencies. Try using -f.
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://extras.ubuntu.com precise Release.gpg [72 B]
Get:2 http://extras.ubuntu.com precise Release [11.9 kB]
Get:3 http://archive.canonical.com precise Release.gpg [198 B]
Get:4 http://archive.canonical.com natty Release.gpg [198 B]
Get:5 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:6 http://extras.ubuntu.com precise/main Sources [8130 B]
Get:7 http://archive.canonical.com precise Release [7078 B]
Get:8 http://ppa.launchpad.net precise Release [11.9 kB]
Get:9 http://archive.canonical.com natty Release [5916 B]
Get:10 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:11 http://extras.ubuntu.com precise/main i386 Packages [10.8 kB]
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:12 http://archive.canonical.com precise/partner i386 Packages [8942 B]
Get:13 http://ppa.launchpad.net precise/main Sources [1730 B]
Get:14 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:15 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Ign http://archive.canonical.com precise/partner TranslationIndex
Get:16 http://ppa.launchpad.net precise/main i386 Packages [1886 B]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:17 http://us.archive.ubuntu.com precise Release [49.6 kB]
Get:18 http://archive.canonical.com natty/partner Sources [4080 B]
Ign http://extras.ubuntu.com precise/main Translation-en
Get:19 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://archive.canonical.com precise/partner Translation-en
Get:20 http://security.ubuntu.com precise-security/main Sources [97.1 kB]
Get:21 http://security.ubuntu.com precise-security/restricted Sources [2494 B]
Get:22 http://security.ubuntu.com precise-security/universe Sources [30.9 kB]
Get:23 http://security.ubuntu.com precise-security/multiverse Sources [1791 B]
Get:24 http://security.ubuntu.com precise-security/main i386 Packages [378 kB]
Get:25 http://us.archive.ubuntu.com precise/restricted Sources [5470 B]
Get:26 http://us.archive.ubuntu.com precise/universe Sources [5019 kB]
Get:27 http://security.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:28 http://security.ubuntu.com precise-security/universe i386 Packages [94.7 kB]
Get:29 http://security.ubuntu.com precise-security/multiverse i386 Packages [2639 B]
Get:30 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:31 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:32 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:33 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:34 http://security.ubuntu.com precise-security/main Translation-en [168 kB]
Get:35 http://security.ubuntu.com precise-security/multiverse Translation-en [1299 B]
Get:36 http://security.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:37 http://security.ubuntu.com precise-security/universe Translation-en [56.3 kB]
Get:38 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:39 http://us.archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:40 http://us.archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:41 http://us.archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:42 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:43 http://us.archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:44 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:45 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:46 http://us.archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:47 http://us.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:48 http://us.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:49 http://us.archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:50 http://us.archive.ubuntu.com precise/universe Translation-en [3341 kB]
Fetched 17.5 MB in 12min 40s (23.0 kB/s)
Reading package lists... Done
yolanda@yolanda-ME051:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.44.53); however:
  Version of linux-image-generic on system is 3.2.0.58.69.
 linux-generic depends on linux-headers-generic (= 3.2.0.44.53); however:
  Version of linux-headers-generic on system is 3.2.0.58.69.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-generic
yolanda@yolanda-ME051:~$ sudo dpkg --clear-avail
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-generic
The following packages will be upgraded:
  linux-generic
1 upgraded, 0 newly installed, 0 to remove and 228 not upgraded.
1 not fully installed or removed.
Need to get 1716 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://security.ubuntu.com/ubuntu/ precise-security/main linux-generic i386 3.2.0.58.69 [1716 B]
Fetched 1716 B in 2s (806 B/s)
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.44.53); however:
  Version of linux-image-generic on system is 3.2.0.58.69.
 linux-generic depends on linux-headers-generic (= 3.2.0.44.53); however:
  Version of linux-headers-generic on system is 3.2.0.58.69.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-generic : Depends: linux-image-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed
                 Depends: linux-headers-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed
E: Unmet dependencies. Try using -f.
yolanda@yolanda-ME051:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://archive.canonical.com precise Release.gpg
Hit http://archive.canonical.com natty Release.gpg
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security Release
Hit http://archive.canonical.com precise Release
Hit http://extras.ubuntu.com precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://archive.canonical.com natty Release
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://archive.canonical.com precise/partner i386 Packages
Hit http://extras.ubuntu.com precise/main Sources
Hit http://ppa.launchpad.net precise/main Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://extras.ubuntu.com precise/main i386 Packages
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://archive.canonical.com natty/partner Sources
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted Sources
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-generic : Depends: linux-image-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed
                 Depends: linux-headers-generic (= 3.2.0.44.53) but 3.2.0.58.69 is installed
E: Unmet dependencies. Try using -f.
yolanda@yolanda-ME051:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
     6 deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10
    11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    12 ## team. Also, please note that software in universe WILL NOT receive any
    13 ## review or updates from the Ubuntu security team.
    14 deb http://us.archive.ubuntu.com/ubuntu/ precise universe
    15 deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
    16
    17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    18 ## team, and may not be under a free licence. Please satisfy yourself as to
    19 ## your rights to use the software. Also, please note that software in
    20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    21 ## security team.
    22 deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    23 deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
    24
    25 ## Uncomment the following two lines to add software from the 'backports'
    26 ## repository.
    27 ## N.B. software from this repository may not have been tested as
    28 ## extensively as that contained in the main release, although it includes
    29 ## newer versions of some applications which may provide useful features.
    30 ## Also, please note that software in backports WILL NOT receive any review
    31 ## or updates from the Ubuntu security team.
    32 # deb http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
    33 # deb-src http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
    34
    35 deb http://security.ubuntu.com/ubuntu precise-security main restricted
    36 deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
    37 deb http://security.ubuntu.com/ubuntu precise-security universe
    38 deb-src http://security.ubuntu.com/ubuntu precise-security universe
    39 deb http://security.ubuntu.com/ubuntu precise-security multiverse
    40 deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
    41
    42 ## Uncomment the following two lines to add software from Canonical's
    43 ## 'partner' repository.
    44 ## This software is not part of Ubuntu, but is offered by Canonical and the
    45 ## respective vendors as a service to Ubuntu users.
    46 deb http://archive.canonical.com/ubuntu precise partner
    47 deb-src http://archive.canonical.com/ubuntu natty partner
    48
    49 ## This software is not part of Ubuntu, but is offered by third-party
    50 ## developers who want to ship their latest software.
    51 deb http://extras.ubuntu.com/ubuntu precise main
    52 deb-src http://extras.ubuntu.com/ubuntu precise main

/etc/apt/sources.list.d/webupd8team-y-ppa-manager-precise.list

     1 deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu precise main
     2 deb-src http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu precise main

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You could manually satisfy the dep by downloading the deb file needed from http://packages.ubuntu.com

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#2

Try the following terminal commands:

sudo dpkg -i /var/cache/apt/archives/linux-generic_3.2.0.58.69_i386.deb
sudo dpkg --audit

and then copy/paste all output into this question document as done before.

Revision history for this message
Riley (y0oolanda) said :
#3

yolanda@yolanda-ME051:~$ sudo dpkg -i /var/cache/apt/archives/linux-generic_3.2.0.58.69_i386.deb
(Reading database ... 875514 files and directories currently installed.)
Preparing to replace linux-generic 3.2.0.58.69 (using .../linux-generic_3.2.0.58.69_i386.deb) ...
Unpacking replacement linux-generic ...
Setting up linux-generic (3.2.0.58.69) ...
yolanda@yolanda-ME051:~$ sudo dpkg --audit
yolanda@yolanda-ME051:~$

Revision history for this message
Riley (y0oolanda) said :
#4

Thanks Manfred Hampl, that solved my question.