12.04 — 更新管理器 — 失败 — 上次更新不完整

12.04 — 更新管理器 — 失败 — 上次更新不完整

常规更新失败并显示以下消息:

之前的安装尚未完成

安装可能由于相应软件包中的错误而失败,或者以不友好的方式取消。您必须先修复此问题,然后才能安装或删除任何其他软件。

根据我找到的提示,我执行了sudo apt-get updatesudo apt-get upgrade。后者终止于:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
The following packages will be upgraded:
apport apt-xapian-index aptdaemon ca-certificates firefox firefox-globalmenu
firefox-locale-en libsnmp-base libsnmp15 libsvn1 linux-firmware
linux-libc-dev mime-support openssh-client python-httplib2 python-keyring
ssh-askpass-gnome tzdata ubuntu-system-service unattended-upgrades
20 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
E: The package index files are corrupted. No Filename: field for package tzdata.

我不知道下一步该做什么。

答案1

删除一些文件

sudo rm -r /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update

强制安装tzdatavia

sudo apt-get install --reinstall tzdata

在那之后

sudo apt-get dist-upgrade

相关内容