![由于此错误,无法安装 Docker:W:无法读取电子打开(2:没有此文件或目录)](https://linux22.com/image/1070892/%E7%94%B1%E4%BA%8E%E6%AD%A4%E9%94%99%E8%AF%AF%EF%BC%8C%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20Docker%EF%BC%9AW%EF%BC%9A%E6%97%A0%E6%B3%95%E8%AF%BB%E5%8F%96%E7%94%B5%E5%AD%90%E6%89%93%E5%BC%80%EF%BC%882%EF%BC%9A%E6%B2%A1%E6%9C%89%E6%AD%A4%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%EF%BC%89.png)
我正在尝试在我的冗余笔记本电脑上安装 docker,但问题是无论我在终端做什么都会遇到这个错误:W: Unable to read e - open (2: No such file or directory)
这是我的终端的输出:
dennis@Titan:~$ sudo apt update
Get:1 https://download.docker.com/linux/ubuntu focal InRelease [52.1 kB]
Hit:2 http://au.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease
Get:4 http://au.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://au.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Hit:6 http://archive.canonical.com/ubuntu focal InRelease
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal InRelease
Fetched 266 kB in 1s (228 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
22 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Skipping acquire of configured file 'stable/source/Sources' as repository 'https://download.docker.com/linux/ubuntu focal InRelease' does not seem to provide it (sources.list entry misspelt?)
dennis@Titan:~$ sudo list -a docker -ce
sudo: list: command not found
dennis@Titan:~$ apt list -a docker -ce
W: Unable to read e - open (2: No such file or directory)
dennis@Titan:~$ ^C
dennis@Titan:~$ apt list -a docker -ce
W: Unable to read e - open (2: No such file or directory)
dennis@Titan:~$ sudo apt list -a docker -ce
W: Unable to read e - open (2: No such file or directory)
有人能告诉我到底出了什么问题吗?我已经检查过 /var/lib/apt/lists/partial 文件夹已经存在并且是空的。
我是否在前面使用 sudo 并不重要,所以我猜这也不是与管理员帐户相关的问题。