由于此错误,无法安装 Docker:W:无法读取电子打开(2:没有此文件或目录)

由于此错误,无法安装 Docker:W:无法读取电子打开(2:没有此文件或目录)

我正在尝试在我的冗余笔记本电脑上安装 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 并不重要,所以我猜这也不是与管理员帐户相关的问题。

相关内容