installation problem /usr/bin/dpkg returned an error code (1)

Asked by Luiz Fernando Lopes Oliveira on 2013-04-01

No matter what I try to install I always get this error message:

No apport report written because MaxReports is reached already
  Errors were encountered while processing:
   linux-image-3.2.0-23-generic-pae
   linux-image-3.2.0-24-generic-pae
   linux-image-3.2.0-26-generic-pae
   linux-image-3.2.0-27-generic-pae
   linux-image-3.2.0-30-generic-pae
  E: Sub-process /usr/bin/dpkg returned an error code (1)

I've tried most of the tips people say: apt-get upgrade, apt-get -f install , apt-get update and I've always got the same error.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Luiz Fernando Lopes Oliveira
Solved:
2013-04-01
Last query:
2013-04-01
Last reply:
steve taylor (stevemail) said : #1

Hi Luiz, you will get an expert along in a while but in the mean time you do seem to have a lot of old Headers still installed there.
maybe if you had a bit of a clean up it might be good anyway.

Hi Steve.
Thank you for your help.
I was looking for a way to clean up.
I tried sudo apt-get autoremove linux-image-3.2.0-23-generic-pae, however it didn't work and displayed me the same error mentioned above.
Any hint?

I've also tried to remove through synaptic what produced the following errors:

E: linux-image-3.2.0-23-generic-pae: subprocess installed post-removal script returned error exit status 1
E: linux-image-3.2.0-24-generic-pae: subprocess installed post-removal script returned error exit status 1
E: linux-image-3.2.0-26-generic-pae: subprocess installed post-removal script returned error exit status 1
E: linux-image-3.2.0-27-generic-pae: subprocess installed post-removal script returned error exit status 1
E: linux-image-3.2.0-30-generic-pae: subprocess installed post-removal script returned error exit status 1

steve taylor (stevemail) said : #4

Hi Luiz, sorry just got back. The thing is you need to know what your system is loading and be damn sure not to delete it.

So just to start with in the terminal use uname -r to find out.
The pae builds are I think so that older pentium chips work. That's what I use.
Whilst you have all those builds on your set-up I can't be sure which or what is actually active.

I can give you my precedure for removing old headers but it might not be a good idea in your case.
Anyway if you post the results of the above command it will help the big boys to sort you out.

It's a bit quiet on here at the moment.
If you search for removing old headers there will be references on this forum.

steve taylor (stevemail) said : #5

Also I think the auto remove should be just remove as in:
sudo apt-get remove linux-image-3.2.0-23-generic-pae

To get more information on what is there try
 # dpkg -l | grep linux-headers-*

Where is actionparsnip when you need him?

uname -r gives: 3.2.0-31-generic-pae
After search around I tried to remove with the others with 'sudo apt-get remove linux-image-3.2.0-23-generic-pae'
But I always get the error mentioned above.

 # dpkg -l | grep linux-headers-* gives:

ii linux-headers-3.5.0-26 3.5.0-26.42 all Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-26-generic 3.5.0-26.42 i386 Linux kernel headers for version 3.5.0 on 32 bit x86 SMP

steve taylor (stevemail) said : #8

Hi Luiz
Here is a link that looks relevant to you issue

http://askubuntu.com/questions/31667/what-does-no-apport-report-written-because-maxreports-is-reached-already-mean

Just take note of the warnings

thank you very much Steve. So should I remove all *.crash files I find in /var/crash ?

steve taylor (stevemail) said : #10

Hi Luiz,
if uname -r gives: 3.2.0-31-generic-pae and

 # dpkg -l | grep linux-headers-* gives:

ii linux-headers-3.5.0-26 3.5.0-26.42 all Header files related to Linux kernel version 3.5.0
ii linux-headers-3.5.0-26-generic 3.5.0-26.42 i386 Linux kernel headers for version 3.5.0 on 32 bit x86 SMP

Where has 3.2.0-31-generic-pae gone?

Might be an idea to update your grub at this point.
sudo update-grub

well I did that. but got the same errors why trying to install something.

actually the error after sudo update-grub /usr/sbin/grub-mkconfig: 35: /etc/default/grub: Syntax error: EOF in backquote substitution

steve taylor (stevemail) said : #13

Don't quote me on this but you may have dumped 3.2.0-31-generic-pae from the boot files
Might be worth checking directly, file system - boot or /boot.
If so we both need an expert...

steve taylor (stevemail) said : #14

Re: error message try
http://forums.linuxmint.com/viewtopic.php?f=46&t=79168&p=461976
That's a grub issue.

on /boot I found the ( among others) the files: initrd.img-3.2.0-31-generic-pae; vmlinuz-3.2.0-31-generic-pae;
config-3.2.0-31-generic-pae; abi-3.2.0-31-generic-pae; System.map-3.2.0-31-generic-pae
is that correct?

steve taylor (stevemail) said : #16

Well that looks OK to me, all the 31s briliant.
Wouldn't it be nice if it were syntax error in grub as with

Re: error message try
http://forums.linuxmint.com/viewtopic.php?f=46&t=79168&p=461976
That's a grub issue.

In theory any other headers in there that arn't 31s can be got rid of.

If you check grub maybe..
It's not a file to edit lightly though.

steve taylor (stevemail) said : #17

That's etc/default/grub

Solved!!!
it was some quotes here and there in the file
thank you very much for your help!

Solved!!!
it was some quotes here and there in the file
thank you very much for your help!

steve taylor (stevemail) said : #20

phew! I am so pleased

Construindo árvore de dependências
Lendo informação de estado... Pronto
Os pacotes a seguir serão atualizados:
  libnuma1 manpages
2 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso baixar 0 B/618 kB de arquivos.
Depois desta operação, 25,6 kB adicionais de espaço em disco serão usados.
Você quer continuar [S/n]? s
(Lendo banco de dados ... 199061 ficheiros e directórios actualmente instalados.)
Preparando para substituir libnuma1 2.0.8~rc4-1 (usando .../libnuma1_2.0.8-1_i386.deb) ...
Desempacotando substituto libnuma1 ...
dpkg-deb (sub-processo): a descomprimir membro do arquivo: erro interno de leitura de gzip: '<fd:4>: incorrect data check'
dpkg-deb: erro: sub-processo <descompressão> retornou estado de saída de erro 2
dpkg: erro ao processar /var/cache/apt/archives/libnuma1_2.0.8-1_i386.deb (--unpack):
 não pode copiar dados extráidos para './usr/lib/libnuma.so.1' para '/usr/lib/libnuma.so.1.dpkg-new': fim de ficheiro ou stream inesperado
Nenhum relatório do apport gravado porque MaxReports já foi atingido
                                                                    Preparando para substituir manpages 3.40-0.1ubuntu3 (usando .../manpages_3.44-0ubuntu1_all.deb) ...
Desempacotando substituto manpages ...
dpkg-deb (sub-processo): a descomprimir membro do arquivo: erro interno de leitura de gzip: '<fd:4>: incorrect data check'
dpkg-deb: erro: sub-processo <descompressão> retornou estado de saída de erro 2
dpkg: erro ao processar /var/cache/apt/archives/manpages_3.44-0ubuntu1_all.deb (--unpack):
 sub-processo dpkg-deb --fsys-tarfile retornou estado de saída de erro 2
Nenhum relatório do apport gravado porque MaxReports já foi atingido
                                                                    Processando gatilhos para man-db ...
Erros foram encontrados durante o processamento de:
 /var/cache/apt/archives/libnuma1_2.0.8-1_i386.deb
 /var/cache/apt/archives/manpages_3.44-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)