我正在嘗試在我的冗餘筆記型電腦中安裝 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 並不重要,所以我想這也不是與管理員帳戶相關的問題。