I have an old problem (since a week) with apt-get which prevents me from installing and upgrading packages. I have Ubuntu 16.04.
I am receiving this message on the top bar:
Error: opening the cache (E: Read error - read (5: Input/output error))
When I type on the terminal: sudo apt-get update
, nothing goes wrong and it was completed successfully.
However, when I type sudo apt-get upgrade
or sudo apt get install
, I get this output:
Reading package lists...
Done Building dependency tree
Reading state information... Error! E: Read error - read (5: Input/output error)
I have tried to delete the /var/lib/dpkg/status
file and then update, but nothing change!
sudo touch /forcefsck
and reboot.