在对 Ubuntu 16.04 LTS 执行安全更新时,我收到了上述错误消息。运行 apt-get install -f 返回以下内容:
josh@josh-HP-Pavilion-dv4-Notebook-PC:~$ sudo apt-get install -f
[sudo] password for josh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
endless-sky-data gir1.2-rb-3.0 gir1.2-secret-1
libdmapsharing-3.0-2 librhythmbox-core9
libsdl2-2.0-0 libsndio6.1 linux-headers-4.4.0-21
linux-headers-4.4.0-21-generic
linux-headers-4.4.0-36
linux-headers-4.4.0-36-generic
linux-headers-4.4.0-38
linux-headers-4.4.0-38-generic
linux-image-4.4.0-21-generic
linux-image-4.4.0-36-generic
linux-image-4.4.0-38-generic
linux-image-extra-4.4.0-21-generic
linux-image-extra-4.4.0-36-generic
linux-image-extra-4.4.0-38-generic python3-mako
rhythmbox-data ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-headers-4.4.0-72-generic linux-headers-generic
The following NEW packages will be installed:
linux-headers-4.4.0-72-generic
The following packages will be upgraded:
linux-headers-generic
1 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
4 not fully installed or removed.
Need to get 786 kB of archives.
After this operation, 7,366 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-headers-4.4.0-72-generic amd64 4.4.0-72.93
Temporary failure resolving 'us.archive.ubuntu.com'
Ign:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-headers-generic amd64 4.4.0.72.78
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-headers-4.4.0-72-generic amd64 4.4.0-72.93
Temporary failure resolving 'us.archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-headers-generic amd64 4.4.0.72.78
Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.4.0- 72-generic_4.4.0-72.93_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-headers- generic_4.4.0.72.78_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
答案1
尝试输入:
sudo apt update
进入终端来更新软件包列表。你也可以尝试:
sudo apt --fix-broken install
修复损坏的软件包;现在尝试更新你的系统,它应该可以工作了。