我停止了常规软件更新,第二天打开继续更新,但 wifi 无法使用,然后我用谷歌搜索解决方案并尝试了所有方法,但无法解决。我不知道我是否在没有明确知识的情况下把一切都搞砸了。我需要帮助。
使用这个命令 sudo apt update
我得到 Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Could not resolve 'us.archive.ubuntu.com' Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Could not resolve 'security.ubuntu.com' Err:3 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Could not resolve 'us.archive.ubuntu.com' Err:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Could not resolve 'us.archive.ubuntu.com' Reading package lists... Done Building dependency tree
Reading state information... Done 50 packages can be upgraded. Run 'apt list --upgradable' to see them. W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not resolve 'us.archive.ubuntu.com' W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Could not resolve 'us.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Could not resolve 'security.ubuntu.com' W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Could not resolve 'us.archive.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
和
$ apt-get update Reading package lists... Done W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)