我收到此消息:
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
libcgmanager0
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.2 kB of archives.
After this operation, 33.8 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libcgmanager0
E: There are problems and -y was used without --force-yes
我该如何修复此问题?
编辑1:
当我做sudo apt-key update
:
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <[email protected]>" not changed
gpg: key FBB75451: "Ubuntu Archive Automatic Signing Key <[email protected]>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key <[email protected]>" not changed
gpg: key EFE21092: "Ubuntu Archive Automatic Signing Key <[email protected]>" not changed
gpg: Total number processed: 4
gpg: unchanged: 4
编辑2:
当我做sudo apt-get update
:
Err us.archive.ubuntu.com trusty InRelease
Err us.archive.ubuntu.com trusty-updates InRelease
Err us.archive.ubuntu.com trusty-backports InRelease
Err security.ubuntu.com trusty-security InRelease
Err download.webmin.com sarge InRelease
Err security.ubuntu.com trusty-security Release.gpg Could not resolve 'security.ubuntu.com'
Err download.webmin.com sarge Release.gpg Could not resolve 'download.webmin.com'
Err webmin.mirror.somersettechsolutions.co.uk sarge InRelease
Err us.archive.ubuntu.com trusty Release.gpg Could not resolve 'us.archive.ubuntu.com'
Err us.archive.ubuntu.com trusty-updates Release.gpg Could not resolve 'us.archive.ubuntu.com'
Err webmin.mirror.somersettechsolutions.co.uk sarge Release.gpg Could not resolve 'webmin.mirror.somersettechsolutions.co.uk'
Err us.archive.ubuntu.com trusty-backports Release.gpg Could not resolve 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch us.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch us.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch us.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
W: Failed to fetch security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch download.webmin.com/download/repository/dists/sarge/InRelease
W: Failed to fetch webmin.mirror.somersettechsolutions.co.uk/repository/dists/…
W: Failed to fetch us.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch webmin.mirror.somersettechsolutions.co.uk/repository/dists/… Could not resolve 'webmin.mirror.somersettechsolutions.co.uk'
W: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
您的apt-get
操作失败,因为您的 Ubuntu 机器上的 DNS 未正确设置,因此apt
无法与指定的存储库通信。
让您的盒子使用 DHCP 设置其地址意味着它的 DHCP 客户端将自动为您设置 DNS。
或者,请参阅此文档以了解如何在配置静态 IP 地址时指定您的盒子将使用的 DNS 服务器:https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution