apt-get install -f - Erro: nenhum espaço deixado no disco

0

Eu tive problemas de limite de cache com chaves GPG. Uma postagem aqui resolveu isso e agora sudo apt-get update é executado sem nenhum erro. Agora sudo apt-get upgrade não funciona. Diz-me para tentar o sudo apt-get -f install e quando o executo obtenho os erros mostrados abaixo:

:~$ sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating dependencies... Done
The packages listed below were installed automatically and are no longer needed.
  linux-headers-3.13.0-35 linux-headers-3.13.0-35-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-3.13.0-46
The following new packages will be installed:
  linux-headers-3.13.0-46
0 updated, 1 will be installed, 0 to remove 455 not updated.
2 not fully installed or removed.
You need to download 0 B/8.877 kB of packages.
This operation will require 63.3 MB of additional disk space.
Do you want to continue? [Y/n] y
(Reading the database ... 1181689 files or directories are now installed.)
Preparing to unpack .../linux-headers-3.13.0-46_3.13.0-46.79_all.deb ...
Unpacking linux-headers-3.13.0-46 (3.13.0-46.79) ...
dpkg: error processing the archive /var/cache/apt/archives/linux-headers-3.13.0-46_3.13.0-46.79_all.deb (--unpack):
 Could not create '/usr/src/linux-headers-3.13.0-46/arch/ia64/include/asm/cache.h.dpkg-new' (while processing './usr/src/linux-headers-3.13.0-46/arch/ia64/include/asm/cache.h'):   
No space left on device.  
No apport report written because MaxReports is reached already.  
dpkg-deb: error: error: subprocess paste was killed by signal (Broken pipe).  
The following errors were encountered during processing:  
 /var/cache/apt/archives/linux-headers-3.13.0-46_3.13.0-46.79_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
}
    
por m4verick 15.05.2015 / 17:10

1 resposta

0

Teste isso:

Abra um terminal.

Pressione Ctrl + Alt + T

Execute:

sudo -i
apt-get clean
apt-get autoremove
UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
apt-get remove --purge $UNUSCONF
NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"
METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
apt-get remove --purge $UNUSKERNELS
apt-get install --reinstall deborphan
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get update
apt-get dist-upgrade
dpkg --configure -a
apt-get -f install
apt-get clean
reboot
    
por kyodake 16.05.2015 / 01:25