Erros ao tentar atualizar usando o apt-get

1

Recebo erros quando tento instalar qualquer software. Os erros são

Reading package lists... Error!
E: Could not open file /var/cache/apt/pkgcache.bin - open (22: Invalid argument)
E: Failed to truncate file - ftruncate (9: Bad file descriptor)
E: The package lists or status file could not be parsed or opened.

Quando tento atualizar um sistema com sudo apt-get update , encontro outros erros, como

W: Failed to fetch http://tz.archive.ubuntu.com/ubuntu/dists/precise-backports/main/binary-i386/Packages  404  Not Found [IP: 91. 189. 92. 192 80]

e muitos outros.

Eu sou novo no Ubuntu.

    
por Abu Ayman 28.06.2012 / 11:40

1 resposta

0

Tente isto:

  1. Executar gksudo gedit /etc/apt/sources.list

  2. Adicione estas linhas a ele

    deb http://it.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse
    deb-src http://it.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse
    
    deb http://security.ubuntu.com/ubuntu precise-security main universe restricted multiverse
    deb-src http://security.ubuntu.com/ubuntu precise-security main universe restricted multiverse
    
    deb http://it.archive.ubuntu.com/ubuntu/ precise-updates main universe restricted multiverse
    deb-src http://it.archive.ubuntu.com/ubuntu/ precise-updates main universe restricted multiverse
    
  3. Salve o arquivo e saia do editor de texto.

  4. Executar sudo apt-get update .

por Ronald Jackson 28.06.2012 / 12:18