1

I get errors when I try to install any software. The errors are

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.

When I try to update a system with sudo apt-get update, I encounter other errors like

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]

and many others.

I am new to Ubuntu.

Jorge Castro
  • 73,717
Abu Ayman
  • 11
  • 1
  • 2

1 Answers1

0

Try this:

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

  2. Add these lines to it

    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. Save the file and quit the text editor.

  4. Run sudo apt-get update.

Eliah Kagan
  • 119,640