Felizmente, não foi uma questão de substituir o meu HD, que é o que alguns sugeriram. As etapas para primeiro remover o erro sudo apt get update
que aparece
E: Read error - read (5: Input/output error)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted
foi encontrado aqui e consiste em executar
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
Em seguida, remova o erro ao executar sudo apt-get upgrade
, que mostra
dpkg: unrecoverable fatal error, aborting:
reading files list for package 'libsm6:i386': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
foi seguir o conselho aqui que é fazer backup do arquivo /var/lib/dpkg/status
e editá-lo para remover o bloco relacionado para o pacote libsm6:i386
. Observe que houve um bloqueio relacionado à versão amd64 que não deve ser removida . Então
sudo cp /var/lib/dpkg/status{,.backup}
sudo vim /var/lib/dpkg/status
Removendo este bloco
Package: libsm6
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 66
Maintainer: Ubuntu Developers <[email protected]>
Architecture: i386
Multi-Arch: same
Source: libsm
Version: 2:1.2.2-1
Depends: libc6 (>= 2.4), libice6 (>= 1:1.0.0), libuuid1 (>= 2.16)
Pre-Depends: multiarch-support
Description: X11 Session Management library
This package provides the main interface to the X11 Session Management
library, which allows for applications to both manage sessions, and make use
of session managers to save and restore their state for later use.
.
More information about X.Org can be found at:
<URL:http://www.X.org>
.
This module can be found at
git://anongit.freedesktop.org/git/xorg/lib/libSM
Original-Maintainer: Debian X Strike Force <[email protected]>
Salvando e executando novamente
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade