我去查看官方repo
curl -s https://packagecloud.io/install/repositories/AtomEditor/atom/script.deb.sh | sudo bash
Detected operating system as Ubuntu/bionic.
Checking for curl...
Detected curl...
Checking for gpg...
Detected gpg...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/AtomEditor_atom.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.
下一步是更新
Err:22 https://packagecloud.io/AtomEditor/atom/ubuntu bionic Release
404 Not Found [IP: 54.241.144.200 443]
我尝试了瑞的建议
root@miki:/etc/apt/sources.list.d# mv AtomEditor_atom.list deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main
表明
mv: target 'main' is not a directory
如何解决这个错误?
已解决首先删除文件,然后
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
由于配置了 APT,远程服务器上似乎不存在所需存储库的路径。
将您的文件
/etc/apt/sources.list.d/AtomEditor_atom.list
内容替换为:之后,
sudo apt update
再次运行。注意:APT 存储库配置行取自 Atom 的github页面。