我是 Ubuntu 新手,谁能帮我看看我的 Ubuntu 出了什么问题?我无法下载任何东西,因为出现以下错误:
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: warning: files list file for package 'liblockfile1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblouis-data' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpoppler44:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblocale-gettext-perl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblouis2:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpoppler-glib8:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpulse0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblockfile-bin' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libportaudio2:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpulsedsp:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblog-message-simple-perl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpurple-bin' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpurple0' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libprocps3:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpopt0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libprotobuf8:amd64' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
reading files list for package 'libnettle4:amd64': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
答案1
尝试以下命令:
sudo apt-get clean
sudo apt-get update
sudo apt-get -f install
如果失败,你将不得不尝试运行
sudo dpkg --remove --force-remove-reinstreq package
您必须对每个出现错误的包运行该程序,例如
sudo dpkg --remove --force-remove-reinstreq liblockfile1
sudo dpkg --remove --force-remove-reinstreq liblouis-data
等等,一一进行。
再说一遍
sudo apt-get -f install