apt-get update 在实时 USB 会话中失败

apt-get update 在实时 USB 会话中失败

sudo apt-get update当我从默认实时 USB 会话(Ubuntu Desktop 17.10)运行时,为什么会出现此错误?

Ign:1 cdrom://Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20180105.1) artful InRelease
Hit:2 cdrom://Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20180105.1) artful Release
Hit:3 http://archive.ubuntu.com/ubuntu artful InRelease                     
Hit:4 http://security.ubuntu.com/ubuntu artful-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu artful-updates InRelease
Get:7 http://archive.ubuntu.com/ubuntu artful/main Translation-en_GB [71.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu artful/restricted Translation-en_GB [2,464 B]
Fetched 73.6 kB in 0s (216 kB/s)           
Reading package lists... Done
W: chown to _apt:root of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_artful_InRelease failed - Item::QueueURI (95: Operation not supported)
W: chmod 0600 of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_artful_InRelease failed - Item::QueueURI (95: Operation not supported)
W: chown to root:root of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_artful_InRelease failed - 201::URIDone (95: Operation not supported)
W: chmod 0644 of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_artful_InRelease failed - 201::URIDone (95: Operation not supported)

当我运行时ls -al /var/lib/apt/lists/,它显示

ubuntu@ubuntu:~$ ls -al /var/lib/apt/lists/
total 12285
drwxr-xr-x 1 root root     140 Feb 14 21:57 .
drwxr-xr-x 1 root root      80 Feb 14 21:57 ..
-rw-r--r-- 1 root root  236651 Oct 19 12:56 archive.ubuntu.com_ubuntu_dists_artful_InRelease
-rw-r--r-- 1 root root 6681096 Oct 19 12:56 archive.ubuntu.com_ubuntu_dists_artful_main_binary-amd64_Packages
-rw-r--r-- 1 root root 3402759 Oct 16 10:08 archive.ubuntu.com_ubuntu_dists_artful_main_i18n_Translation-en
-rw-r--r-- 1 root root  110861 Oct 19 12:56 archive.ubuntu.com_ubuntu_dists_artful_restricted_binary-amd64_Packages
-rw-r--r-- 1 root root   18974 Oct 13 11:12 archive.ubuntu.com_ubuntu_dists_artful_restricted_i18n_Translation-en
-rw-r--r-- 1 root root   78587 Jan  5 20:32 archive.ubuntu.com_ubuntu_dists_artful-updates_InRelease
-rw-r--r-- 1 root root  866650 Jan  5 18:44 archive.ubuntu.com_ubuntu_dists_artful-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root  462155 Jan  5 06:05 archive.ubuntu.com_ubuntu_dists_artful-updates_main_i18n_Translation-en
-rw-r--r-- 1 root root   19723 Nov 10 14:56 archive.ubuntu.com_ubuntu_dists_artful-updates_restricted_binary-amd64_Packages
-rw-r--r-- 1 root root    3724 Nov  8 21:27 archive.ubuntu.com_ubuntu_dists_artful-updates_restricted_i18n_Translation-en
-rw-r----- 1 root root       0 Jan  5 20:35 lock
drwx------ 1 _apt root      40 Feb 14 21:57 partial
-rw-r--r-- 1 root root   78589 Jan  5 20:32 security.ubuntu.com_ubuntu_dists_artful-security_InRelease
-rw-r--r-- 1 root root  347191 Jan  5 11:18 security.ubuntu.com_ubuntu_dists_artful-security_main_binary-amd64_Packages
-rw-r--r-- 1 root root  202149 Jan  4 16:16 security.ubuntu.com_ubuntu_dists_artful-security_main_i18n_Translation-en
-rw-r--r-- 1 root root   48945 Feb 14 21:57 Ubuntu%2017.10%20%5fArtful%20Aardvark%5f%20-%20Release%20amd64%20(20180105.1)_dists_artful_main_binary-amd64_Packages
-rw-r--r-- 1 root root    3355 Feb 14 21:57 Ubuntu%2017.10%20%5fArtful%20Aardvark%5f%20-%20Release%20amd64%20(20180105.1)_dists_artful_Release
-rw-r--r-- 1 root root     819 Feb 14 21:57 Ubuntu%2017.10%20%5fArtful%20Aardvark%5f%20-%20Release%20amd64%20(20180105.1)_dists_artful_Release.gpg
-rw-r--r-- 1 root root    4629 Feb 14 21:57 Ubuntu%2017.10%20%5fArtful%20Aardvark%5f%20-%20Release%20amd64%20(20180105.1)_dists_artful_restricted_binary-amd64_Packages

返回的存在代码为 100(由 给出echo $?),表示出现错误。

我认为这对我来说是个问题,因为下一个命令也失败了。我在运行时apt-get install some-package-i-wanted收到错误“无法找到包”。所以我假设第一个错误是根本原因。然而,事实证明该包在 17.10 版的默认存储库中不可用。

我通过从相关网站手动下载并安装 .deb 包解决了这个问题。

但仍然有兴趣了解原始错误消息的含义。

相关内容