continuous dpkg warning: there's no installed package matching linux-image-3.5.0-36-generic:i386

Asked by bo rislav

My ubuntu installation is unstable, always get messages for errors, firefox crashes unexpectedly.. While I'm trying to update the packages no matter I use Software update graphical application or a terminal commands it fails. The error is kind of one and the same:

The following packages will be REMOVED:
  linux-image-3.5.0-36-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: warning: there's no installed package matching linux-image-3.5.0-36-generic:i386

I have tried a hundred online tutorials to fix that, even installed synaptic package manager - mark it for uninstallation try to apply changes - same result - the package is still in the list for removal and no chance to remove it. Typed a thousand times commands to fix the MergeList, status, etc.. - no change. The package is missing and still no chance to remove/install/get rid of it.

As long as I try to fix that in an old computer - it does not recognize without kernel panic any usb installer i did - it is impossible for me to reinstall the ubuntu and the only option is to fix that, but dunno how.

Any help will be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
bo rislav
Solved:
Last query:
Last reply:

This question was reopened

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

Please provide the output of the following terminal commands:

uname -a
lsb_release -a
dpkg -l | grep linux-image
dpkg --audit
dpkg --print-architecture
dpkg --print-foreign-architectures

These commands will not solve your problem, but their output might provide some additional hints to identify the root cause.

Revision history for this message
bo rislav (nnmlss) said :
#2

lili@lili-desktop:~$ uname -a
Linux lili-desktop 3.5.0-41-generic #64~precise1-Ubuntu SMP Thu Sep 12 17:01:55 UTC 2013 i686 athlon i386 GNU/Linux
lili@lili-desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise
lili@lili-desktop:~$ dpkg -l|grep linux-image
ii linux-image-3.5.0-23-generic 3.5.0-23.35~precise1 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-26-generic 3.5.0-26.42~precise1 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
iH linux-image-3.5.0-36-generic 3.5.0-36.57~precise1 (no description available)
ii linux-image-3.5.0-41-generic 3.5.0-41.64~precise1 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
lili@lili-desktop:~$
lili@lili-desktop:~$ dpkg --audit
dpkg: error: unable to open lock file /var/lib/dpkg/lock for testing: Permission denied
lili@lili-desktop:~$ dpkg --print-architecture
i386
lili@lili-desktop:~$ dpkg --print-foreign-architectures

lili@lili-desktop:~$

-------------- using sudo for the permission denied command:
lili@lili-desktop:~$ sudo dpkg --audit
The following packages are only half installed, due to problems during
installation. The installation can probably be completed by retrying it;
the packages can be removed using dselect or dpkg --remove:
 linux-image-3.5.0-36-generic (no description available)

lili@lili-desktop:~$

Revision history for this message
bo rislav (nnmlss) said :
#3

After using

   sudo dpkg --remove linux-image-3.5.0-36-generic

the problem was solved. Thanks for your help :)

Revision history for this message
bo rislav (nnmlss) said :
#4

it's not so important now, but if you can answer me why any USB stick created by me using http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx or even the native usb-creator-gtk in ubuntu mashine starts good but when I try to Test ubuntu without installing if ends in a kernel panic..

 An year before I was able to do that only with 10.04 ubuntu release startup disk and manually update the system to the newest release, but yesterday even older ubuntu releases did not succeed...

Revision history for this message
bo rislav (nnmlss) said :
#5

sorry did not want to reopen the question

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

Do not mix two different topics in one question, you should create a separate one for the USB stick issue.

Just a first short hint: have you verified that the download of the .iso file went ok by calculating and comparing the md5sum values?
see https://help.ubuntu.com/community/HowToMD5SUM