[Resolvido] Não foi possível abrir arquivo /var/cache/apt/pkgcache.bin

Iniciado por jkmsjq, 01 de Abril de 2014, 15:22

tópico anterior - próximo tópico

jkmsjq

Durante a realização de uma atualização via terminal, me aparece a seguinte mensagem:

jeisonkertesz@jeisonkertesz-Infoway:~$ sudo aptitude update && sudo aptitude upgrade -y
[sudo] password for jeisonkertesz:
Ign http://br.archive.ubuntu.com saucy InRelease                                
Ign http://br.archive.ubuntu.com saucy-updates InRelease                        
Ign http://br.archive.ubuntu.com saucy-proposed InRelease                      
Ign http://br.archive.ubuntu.com saucy-backports InRelease                      
Encontrado http://br.archive.ubuntu.com saucy Release.gpg                      
Obter: 1 http://br.archive.ubuntu.com saucy-updates Release.gpg [933 B]        
Encontrado http://br.archive.ubuntu.com saucy-proposed Release.gpg              
Ign http://extras.ubuntu.com saucy InRelease
Encontrado http://br.archive.ubuntu.com saucy-backports Release.gpg            
Encontrado http://br.archive.ubuntu.com saucy Release                          
Obter: 2 http://br.archive.ubuntu.com saucy-updates Release [49,6 kB]          
Ign http://archive.canonical.com saucy InRelease                                
Ign http://ppa.launchpad.net saucy InRelease                                    
Obter: 3 http://extras.ubuntu.com saucy Release.gpg [72 B]                      
Encontrado http://archive.canonical.com saucy Release.gpg                      
Obter: 4 http://ppa.launchpad.net saucy Release.gpg [316 B]                    
Encontrado http://extras.ubuntu.com saucy Release                              
Encontrado http://br.archive.ubuntu.com saucy-proposed Release                  
Encontrado http://archive.canonical.com saucy Release                          
Encontrado http://br.archive.ubuntu.com saucy-backports Release                
Obter: 5 http://ppa.launchpad.net saucy Release [11,9 kB]                      
Encontrado http://br.archive.ubuntu.com saucy/main amd64 Packages              
Encontrado http://extras.ubuntu.com saucy/main amd64 Packages                  
Encontrado http://br.archive.ubuntu.com saucy/restricted amd64 Packages        
Encontrado http://archive.canonical.com saucy/partner amd64 Packages            
Encontrado http://br.archive.ubuntu.com saucy/universe amd64 Packages          
Encontrado http://extras.ubuntu.com saucy/main i386 Packages                    
Obter: 6 http://ppa.launchpad.net saucy/main amd64 Packages [43,1 kB]          
Encontrado http://br.archive.ubuntu.com saucy/multiverse amd64 Packages        
Encontrado http://archive.canonical.com saucy/partner i386 Packages
Encontrado http://br.archive.ubuntu.com saucy/main i386 Packages                
Ign http://dl.google.com stable InRelease                                      
Encontrado http://br.archive.ubuntu.com saucy/restricted i386 Packages          
Obter: 7 http://dl.google.com stable Release.gpg [198 B]                        
Obter: 8 http://ppa.launchpad.net saucy/main i386 Packages [43,0 kB]
Encontrado http://br.archive.ubuntu.com saucy/universe i386 Packages            
Encontrado http://br.archive.ubuntu.com saucy/multiverse i386 Packages          
Encontrado http://br.archive.ubuntu.com saucy/main Translation-pt_BR            
Encontrado http://br.archive.ubuntu.com saucy/main Translation-pt              
Encontrado http://br.archive.ubuntu.com saucy/main Translation-en              
Encontrado http://br.archive.ubuntu.com saucy/multiverse Translation-pt_BR      
Ign http://security.ubuntu.com saucy-security InRelease
Encontrado http://br.archive.ubuntu.com saucy/multiverse Translation-pt        
Encontrado http://security.ubuntu.com saucy-security Release.gpg                
Encontrado http://br.archive.ubuntu.com saucy/multiverse Translation-en        
Encontrado http://br.archive.ubuntu.com saucy/restricted Translation-pt_BR      
Encontrado http://br.archive.ubuntu.com saucy/restricted Translation-pt        
Encontrado http://security.ubuntu.com saucy-security Release                    
Encontrado http://br.archive.ubuntu.com saucy/restricted Translation-en        
Encontrado http://br.archive.ubuntu.com saucy/universe Translation-pt_BR        
Encontrado http://br.archive.ubuntu.com saucy/universe Translation-pt          
Encontrado http://security.ubuntu.com saucy-security/main amd64 Packages        
Encontrado http://security.ubuntu.com saucy-security/restricted amd64 Packages  
Encontrado http://br.archive.ubuntu.com saucy/universe Translation-en          
Obter: 9 http://br.archive.ubuntu.com saucy-updates/main amd64 Packages [224 kB]
Encontrado http://security.ubuntu.com saucy-security/universe amd64 Packages    
Encontrado http://security.ubuntu.com saucy-security/multiverse amd64 Packages  
Encontrado http://security.ubuntu.com saucy-security/main i386 Packages        
Encontrado http://security.ubuntu.com saucy-security/restricted i386 Packages  
Obter: 10 http://br.archive.ubuntu.com saucy-updates/restricted amd64 Packages [14 B]
Obter: 11 http://br.archive.ubuntu.com saucy-updates/universe amd64 Packages [159 kB]
Encontrado http://security.ubuntu.com saucy-security/universe i386 Packages    
Encontrado http://security.ubuntu.com saucy-security/multiverse i386 Packages  
Obter: 12 http://br.archive.ubuntu.com saucy-updates/multiverse amd64 Packages [1.552 B]
Obter: 13 http://br.archive.ubuntu.com saucy-updates/main i386 Packages [223 kB]
Ign http://extras.ubuntu.com saucy/main Translation-pt_BR                      
Ign http://archive.canonical.com saucy/partner Translation-pt_BR                
Ign http://extras.ubuntu.com saucy/main Translation-pt                          
Ign http://archive.canonical.com saucy/partner Translation-pt                  
Ign http://extras.ubuntu.com saucy/main Translation-pt_PT                      
Ign http://archive.canonical.com saucy/partner Translation-pt_PT                
Ign http://extras.ubuntu.com saucy/main Translation-en                          
Ign http://archive.canonical.com saucy/partner Translation-en                  
Obter: 14 http://br.archive.ubuntu.com saucy-updates/restricted i386 Packages [14 B]
Encontrado http://security.ubuntu.com saucy-security/main Translation-en        
Obter: 15 http://br.archive.ubuntu.com saucy-updates/universe i386 Packages [160 kB]
Obter: 16 http://br.archive.ubuntu.com saucy-updates/multiverse i386 Packages [1.773 B]
Encontrado http://br.archive.ubuntu.com saucy-updates/main Translation-pt_BR    
Encontrado http://br.archive.ubuntu.com saucy-updates/main Translation-pt      
Obter: 17 http://br.archive.ubuntu.com saucy-updates/main Translation-en [106 kB]
Ign http://ppa.launchpad.net saucy/main Translation-pt_BR                      
Encontrado http://security.ubuntu.com saucy-security/multiverse Translation-en  
Ign http://ppa.launchpad.net saucy/main Translation-pt                          
Encontrado http://br.archive.ubuntu.com saucy-updates/multiverse Translation-pt_BR
Ign http://ppa.launchpad.net saucy/main Translation-pt_PT                      
Ign http://ppa.launchpad.net saucy/main Translation-en                          
Encontrado http://br.archive.ubuntu.com saucy-updates/multiverse Translation-pt
Encontrado http://br.archive.ubuntu.com saucy-updates/multiverse Translation-en
Encontrado http://security.ubuntu.com saucy-security/restricted Translation-en  
Encontrado http://br.archive.ubuntu.com saucy-updates/restricted Translation-pt_BR
Encontrado http://br.archive.ubuntu.com saucy-updates/restricted Translation-pt
Encontrado http://br.archive.ubuntu.com saucy-updates/restricted Translation-en
Encontrado http://br.archive.ubuntu.com saucy-updates/universe Translation-pt_BR
Encontrado http://br.archive.ubuntu.com saucy-updates/universe Translation-pt  
Obter: 18 http://br.archive.ubuntu.com saucy-updates/universe Translation-en [80,2 kB]
Encontrado http://security.ubuntu.com saucy-security/universe Translation-en    
Ign http://security.ubuntu.com saucy-security/main Translation-pt_BR            
Ign http://security.ubuntu.com saucy-security/main Translation-pt              
Ign http://security.ubuntu.com saucy-security/main Translation-pt_PT            
Ign http://security.ubuntu.com saucy-security/multiverse Translation-pt_BR      
Ign http://security.ubuntu.com saucy-security/multiverse Translation-pt        
Ign http://security.ubuntu.com saucy-security/multiverse Translation-pt_PT      
Ign http://security.ubuntu.com saucy-security/restricted Translation-pt_BR      
Ign http://security.ubuntu.com saucy-security/restricted Translation-pt        
Ign http://security.ubuntu.com saucy-security/restricted Translation-pt_PT      
Ign http://security.ubuntu.com saucy-security/universe Translation-pt_BR
Ign http://security.ubuntu.com saucy-security/universe Translation-pt  
Ign http://security.ubuntu.com saucy-security/universe Translation-pt_PT        
Obter: 19 http://dl.google.com stable Release [1.351 B]                
Obter: 20 http://dl.google.com stable/main amd64 Packages [1.247 B]          
Obter: 21 http://dl.google.com stable/main i386 Packages [1.236 B]      
Ign http://dl.google.com stable/main Translation-pt_BR                          
Ign http://dl.google.com stable/main Translation-pt                            
Ign http://dl.google.com stable/main Translation-pt_PT                          
Ign http://dl.google.com stable/main Translation-en                            
Obter: 22 http://br.archive.ubuntu.com saucy-updates/universe Translation-en [80,2 kB]
Encontrado http://br.archive.ubuntu.com saucy-proposed/restricted amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/multiverse amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/main amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/universe amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/restricted i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/multiverse i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/main i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/universe i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-proposed/main Translation-pt_BR
Encontrado http://br.archive.ubuntu.com saucy-proposed/main Translation-pt
Encontrado http://br.archive.ubuntu.com saucy-proposed/main Translation-en
Encontrado http://br.archive.ubuntu.com saucy-proposed/multiverse Translation-pt_BR
Encontrado http://br.archive.ubuntu.com saucy-proposed/multiverse Translation-pt
Encontrado http://br.archive.ubuntu.com saucy-proposed/multiverse Translation-en
Encontrado http://br.archive.ubuntu.com saucy-proposed/restricted Translation-pt_BR
Encontrado http://br.archive.ubuntu.com saucy-proposed/restricted Translation-pt
Encontrado http://br.archive.ubuntu.com saucy-proposed/restricted Translation-en
Encontrado http://br.archive.ubuntu.com saucy-proposed/universe Translation-pt_BR
Encontrado http://br.archive.ubuntu.com saucy-proposed/universe Translation-pt
Encontrado http://br.archive.ubuntu.com saucy-proposed/universe Translation-en
Encontrado http://br.archive.ubuntu.com saucy-backports/restricted amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/multiverse amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/main amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/universe amd64 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/restricted i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/multiverse i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/main i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/universe i386 Packages
Encontrado http://br.archive.ubuntu.com saucy-backports/main Translation-en
Encontrado http://br.archive.ubuntu.com saucy-backports/multiverse Translation-en
Encontrado http://br.archive.ubuntu.com saucy-backports/restricted Translation-en
Encontrado http://br.archive.ubuntu.com saucy-backports/universe Translation-en
Ign http://br.archive.ubuntu.com saucy/main Translation-pt_PT                  
Ign http://br.archive.ubuntu.com saucy/multiverse Translation-pt_PT            
Ign http://br.archive.ubuntu.com saucy/restricted Translation-pt_PT            
Ign http://br.archive.ubuntu.com saucy/universe Translation-pt_PT              
Ign http://br.archive.ubuntu.com saucy-updates/main Translation-pt_PT          
Ign http://br.archive.ubuntu.com saucy-updates/multiverse Translation-pt_PT    
Ign http://br.archive.ubuntu.com saucy-updates/restricted Translation-pt_PT    
Ign http://br.archive.ubuntu.com saucy-updates/universe Translation-pt_PT      
Ign http://br.archive.ubuntu.com saucy-proposed/main Translation-pt_PT          
Ign http://br.archive.ubuntu.com saucy-proposed/multiverse Translation-pt_PT    
Ign http://br.archive.ubuntu.com saucy-proposed/restricted Translation-pt_PT    
Ign http://br.archive.ubuntu.com saucy-proposed/universe Translation-pt_PT      
Ign http://br.archive.ubuntu.com saucy-backports/main Translation-pt_BR        
Ign http://br.archive.ubuntu.com saucy-backports/main Translation-pt            
Ign http://br.archive.ubuntu.com saucy-backports/main Translation-pt_PT        
Ign http://br.archive.ubuntu.com saucy-backports/multiverse Translation-pt_BR  
Ign http://br.archive.ubuntu.com saucy-backports/multiverse Translation-pt      
Ign http://br.archive.ubuntu.com saucy-backports/multiverse Translation-pt_PT  
Ign http://br.archive.ubuntu.com saucy-backports/restricted Translation-pt_BR  
Ign http://br.archive.ubuntu.com saucy-backports/restricted Translation-pt      
Ign http://br.archive.ubuntu.com saucy-backports/restricted Translation-pt_PT  
Ign http://br.archive.ubuntu.com saucy-backports/universe Translation-pt_BR    
Ign http://br.archive.ubuntu.com saucy-backports/universe Translation-pt        
Ign http://br.archive.ubuntu.com saucy-backports/universe Translation-pt_PT    
Buscados 1.079 kB em 2min 31s (7.112 B/s)
                             
Estado atual: 13 atualizações [+13], 246 novos [+21].
Os pacotes a seguir serão atualizados:      
 libegl1-mesa libegl1-mesa-drivers libgbm1 libgl1-mesa-dri
 libgl1-mesa-dri:i386 libgl1-mesa-glx libgl1-mesa-glx:i386 libglapi-mesa
 libglapi-mesa:i386 libgles2-mesa libopenvg1-mesa libxatracker2
 xserver-xorg-video-intel
13 pacotes atualizados, 0 novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso obter 14,4 MB de arquivos. Depois do desempacotamento, 684 kB serão liberados.
Obter: 1 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libegl1-mesa-drivers amd64 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy [2.056 kB]
Obter: 2 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgl1-mesa-dri i386 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy [5.087 kB]
Err http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgl1-mesa-dri i386 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy
 Conexão falhou
Obter: 3 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgl1-mesa-dri amd64 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy [4.941 kB]
Obter: 4 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgl1-mesa-dri amd64 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy [4.941 kB]
Err http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgl1-mesa-dri amd64 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy
 Erro escrevendo para arquivo de saída - write (28: Não há espaço disponível no dispositivo)
14% [Aguardando por cabeçalhos]                                                
Obter: 5 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgbm1 amd64 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy [54,2 kB]
Err http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ saucy/main libgbm1 amd64 10.2.0~git20140331.ec4b8d16-0ubuntu0ricotz~saucy
 Erro escrevendo para arquivo de saída - write (28: Não há espaço disponível no dispositivo)
14% [Aguardando por cabeçalhos]


Como todo procedimento é extremamente longo, coloquei no Ubuntu Pastebin.
LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

Tota

Ola

Já passou um fsck, só por desencargo de consciência?

Tá dizendo que não tem espaço em /dev/sda1

jkmsjq

Citação de: Tota online 01 de Abril de 2014, 15:52
Ola

Já passou um fsck, só por desencargo de consciência?

Tá dizendo que não tem espaço em /dev/sda1

Farei isto Tota... mas o sda1 tem 20 ou 25 GB de tamanho... não ter espaço é um tanto "estranho". Mas realizarei o teste e dou retorno.
LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

Tota

Citação de: jkmsjq online 01 de Abril de 2014, 15:55
Farei isto Tota... mas o sda1 tem 20 ou 25 GB de tamanho... não ter espaço é um tanto "estranho". Mas realizarei o teste e dou retorno.

Remova kerneis antigos, limpe a pasta /var/log, limpe a pasta /tmp, veja e limpe a pasta .trash do root

jkmsjq

#4
Fazendo o teste com o fsck, via LiveUSB, deu o seguinte resultado?

ubuntu@ubuntu:~$ sudo fsck /dev/sda1 -y
fsck from util-linux 2.20.1
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 4/1/2014 19:03:11
Using default parameter: -p
The current device is:  /dev/sda1
Block size in bytes:  4096
Filesystem size in blocks:  7323904
**Phase 0 - Replay Journal Log
Filesystem is clean.
ubuntu@ubuntu:~$


Alguma ajuda...??


EDIT...

Tentando remover kernels antigos, via linha de comando, deu o seguinte erro:

jeisonkertesz@jeisonkertesz-Infoway:~$ sudo 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
Lendo listas de pacotes... Erro!
E: Erro de escrita - write (28: Não há espaço disponível no dispositivo)
E: Erro de E/S ao gravar cache fonte
E: As listas de pacotes ou os arquivos de estado não puderam ser analisados ou abertos.



EDIT 2...

Após fazer suas indicações Tota, deu certo a atualização.


Para isto, fiz os seguintes procedimentos:

Remover kernels antigos via linha de comando:

sudo 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


Para limpar as pastas /var/log e a pasta /tmp fui via gráfica mesmo:

sudo gksudo thunar /var/log

sudo gksudo thunar /tmp


A pasta .trash do root não encontrei (ou não exestia mesmo).

Mas a pasta lixo, utilizo o seguinte comando:

rm -r -f ~/.local/share/Trash/files/*


Depois destes procedimentos, a atualização funcionou perfeitamente.

LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz