![Ao instalar atualizações ou do centro de software no Ubuntu 12.04, mensagens de erro](https://rvso.com/image/833359/Ao%20instalar%20atualiza%C3%A7%C3%B5es%20ou%20do%20centro%20de%20software%20no%20Ubuntu%2012.04%2C%20mensagens%20de%20erro.png)
Eu tenho um novo computador com bastante espaço em disco. Há uma unidade de inicialização de estado sólido e um disco normal onde coloco meus arquivos.
Portanto, a principal coisa que está acontecendo é que nas últimas semanas, sempre que tento instalar atualizações ou fazer download do centro de software, recebo atualizaçõesessee para softwareesse.
Alguém tem alguma idéia do que está acontecendo em relação ao problema?
Eu alterei algumas configurações na tela com o My Unity recentemente e, há algumas semanas, finalmente descobri como acessar o grande disco rígido fazendo sudo chown user /mnt/data0
. Eu também desativei os menus globais. Isso poderia estar causando o problema. Aliás, também tenho tido alguns problemas com a placa de vídeo não salvando minhas configurações, então tenho que redefini-las toda vez que ligo o computador, mesmo que elas tenham sido salvas nas primeiras semanas.
$ sudo dpkg --configure -a
Setting up initramfs-tools (0.99ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-39-generic (3.2.0-39.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-39-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-39-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-39-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-39-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-39-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-39-generic; however:
Package linux-image-3.2.0-39-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.39.47); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-38-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-38-generic with 1.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-3.2.0-39-generic
linux-image-generic
linux-generic
initramfs-tools
Neste ponto, recebemos um pop-up que dizia:
Low Disk Space
The volume "boot" has only 0 bytes disk space remaining. You can free up disk space by removing unused programs or files, or by moving files to another disk or partition.
Isso realmente não faz sentido para nós. Estamos tendo dificuldade em descobrir qual unidade estamos vendo quando olhamos no sistema de arquivos, mas quando olhamos para a unidade marcada / que pensamos ser a unidade de estado sólido e depois inicializamos, vemos não há muitos arquivos que não sejam muito grandes - certamente não valem 120 GB.
Sobre as unidades: Quando compramos o computador há cerca de um mês, pedimos à empresa que instalasse o Ubuntu. Eles transformaram a unidade de estado sólido de 120 gigabytes na unidade de inicialização conforme nossa solicitação. A unidade 3 T parecia estar montada, mas o pessoal que instalou o Ubuntu não tornou a unidade de 3 Terabyte visível para nós e nos foi negada permissão para visualizá-la até que eu usei a correção que mencionei na minha mensagem original acima para poder para salvar na unidade. (Ainda parece que me foi negada permissão para visualizar a pasta "Achados e Perdidos".) Em seguida, copiei os arquivos que salvei na unidade de estado sólido para a unidade 3 T e excluí os arquivos que salvei da unidade de estado sólido. unidade estatal para liberar espaço. A unidade de estado sólido ainda tem muito espaço (assim como a outra, é claro).
Pelo que podemos dizer, o software e as atualizações que recebem mensagens de erro parecem estar realmente sendo instalados (não sei se corretamente), mas sempre geram longas mensagens de erro. Ele está tentando instalar em ambos os discos ou algo parecido e gerando uma mensagem de erro porque a unidade 3 T não foi instalada/montada corretamente?
Sinto muito por qualquer ignorância que estamos mostrando. Estou tentando aprender tudo isso, mas ainda não entendo muito bem o sistema de arquivos e certamente sou um novato no Ubuntu.
ATUALIZAÇÃO 12 de abril de 2013: Olá, Nikki. Muito obrigado por tentar nos ajudar. Bem, finalmente conseguimos tentar implementar as etapas e falhou. Obtivemos o seguinte (tive que excluir algumas delas para caber nesta mensagem):
user@ubuntu:~$ sudo apt-get clean && sudo apt-get 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-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is installed
E: Unmet dependencies. Try using -f.
user@ubuntu:~$ uname -r
3.2.0-38-generic
user@ubuntu:~$ dpkg --list | grep linux-image
ii linux-image-3.2.0-29-generic 3.2.0-29.46 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-37-generic 3.2.0-37.58 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-38-generic 3.2.0-38.61 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iF linux-image-3.2.0-39-generic 3.2.0-39.62 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iF linux-image-3.2.0-40-generic 3.2.0-40.64 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iU linux-image-generic 3.2.0.39.47 Generic Linux kernel image
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.29-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-29-generic' for regex 'linux-image-3.2.0.29-generic'
Note, selecting 'linux-image-3.2.0-29-generic-pae' for regex 'linux-image-3.2.0.29-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.37-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-37-generic' for regex 'linux-image-3.2.0.37-generic'
Note, selecting 'linux-image-3.2.0-37-generic-pae' for regex 'linux-image-3.2.0.37-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.39-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-39-generic' for regex 'linux-image-3.2.0.39-generic'
Note, selecting 'linux-image-3.2.0-39-generic-pae' for regex 'linux-image-3.2.0.39-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
linux-image-generic : Depends: linux-image-3.2.0-39-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.40-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-40-generic' for regex 'linux-image-3.2.0.40-generic'
Note, selecting 'linux-image-3.2.0-40-generic-pae' for regex 'linux-image-3.2.0.40-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-generic
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.39.47) but it is not going to be installed
Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-40-generic
Found linux image: /boot/vmlinuz-3.2.0-39-generic
Found linux image: /boot/vmlinuz-3.2.0-38-generic
Found initrd image: /boot/initrd.img-3.2.0-38-generic
Found linux image: /boot/vmlinuz-3.2.0-37-generic
Found initrd image: /boot/initrd.img-3.2.0-37-generic
Found linux image: /boot/vmlinuz-3.2.0-29-generic
Found initrd image: /boot/initrd.img-3.2.0-29-generic
done
user@ubuntu:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.99ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-40-generic (3.2.0-40.64) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-39-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-40-generic /boot/vmlinuz-3.2.0-40-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-40-generic /boot/vmlinuz-3.2.0-40-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-40-generic /boot/vmlinuz-3.2.0-40-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-40-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-40-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-40-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-40-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 3.2.0.39.47); however:
Version of linux-headers-generic on system is 3.2.0.40.48.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-3.2.0-39-generic (3.2.0-39.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-40-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-39-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-39-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-39-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-39-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-39-generic; however:
Package linux-image-3.2.0-39-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-38-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-38-generic with 1.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-3.2.0-40-generic
linux-generic
linux-image-3.2.0-39-generic
linux-image-generic
initramfs-tools
user@ubuntu:~$
NIKKI: SAÍDA do COMANDO DF E SEU ÚLTIMO COMANDO:
user@ubuntu:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 19222656 5545404 12700716 31% /
devtmpfs 16425020 8 16425012 1% /dev
none 3291972 996 3290976 1% /run
none 5120 0 5120 0% /run/lock
none 16459852 736 16459116 1% /run/shm
/dev/sda1 90195 89356 0 100% /boot
/dev/sda5 88370448 33795068 50086420 41% /home
/dev/sdb1 2884283608 184345072 2553425284 7% /mnt/data0
/dev/sdc1 488145616 404062976 84082640 83% /media/KAREN_~1DRI
user@ubuntu:~$ dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
[sudo] password for user:
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-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Responder1
No seu pastebin notei que diz
O pacote linux-image-generic ainda não está configurado.
tente fazer isso e depois atualize
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get atualização && sudo apt-get atualização
Continuar:
Parece que você ficou sem espaço. Você já tentou correr
sudo apt-get clean && sudo apt-get autoremove
Então eu sugiro que você verifique qual kernel está executando agora executando
uname -r
lembre-se disso e verifique todos os kernels que você instalou
dpkg --list | grep linux-image
em seguida, remova todos os outros kernels, EXCETO aquele que você está executando agora.
sudo apt-get purge linux-image-x.x.x.x-generic
e depois de excluir tudo, execute
sudo update-grub2
E por último mas não menos importante, repita o passo acima com Configurando o kernel
ATUALIZAÇÃO 13/04/2013
Olá de novo, não se preocupe, ainda há muitas maneiras de tentar corrigir isso. Você pode me fornecer a saída do df
comando do terminal também? Tente também executar este comando no terminal e veja se ele consegue excluir "kernels desnecessários"
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
Responder2
A maneira como resolvi isso no meu laptop:
- Inicialize seu laptop usando a imagem anterior do kernel linux-image-3.2.0-39
- Desinstale o kernel mais recente:
sudo apt-get purge linux-image-3.2.0-40-generic
- Desinstalar kernel legado: imagens
sudo apt-get purge linux-image-3.2.0-35-generic
- Atualize seu sistema:
sudo apt-get update && sudo apt-get upgrade
- Atualize o carregador de inicialização:
update-grub2