当我尝试时,
ali@ali-office:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
update-notifier : Depends: update-notifier-common (= 0.147) but 0.147.1 is installed
E: Unmet dependencies. Try using -f.
我正在尝试
ali@ali-office:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
update-notifier
The following packages will be upgraded:
update-notifier
1 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
4 not fully installed or removed.
Need to get 0 B/56,0 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Sub-process gzip returned an error code (1)
E: Prior errors apply to /var/cache/apt/archives/update-notifier_0.147.1_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg: unrecoverable fatal error, aborting:
reading files list for package 'libgcc1:amd64': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
ali@ali-office:~$
我该如何解决这个问题?
答案1
打开你的终端,输入以下内容
sudo apt-get install --reinstall apt-utils
然后重试。
答案2
这可能是因为您的包在下载时出错。您应该清理缓存并重试:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
如果错误仍然存在,您可以切换存储库。