未找到 Atom 编辑器,Ubuntu 18.04

未找到 Atom 编辑器,Ubuntu 18.04

我去查看了官方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'

答案1

配置 APT 时,远程服务器上似乎不存在所需存储库的路径。

替换您的文件/etc/apt/sources.list.d/AtomEditor_atom.list/etc/apt/sources.list.d/atom-archive.list 内容和:

deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main

之后,sudo apt update再次运行。

注意:APT 存储库配置行取自 Atom 的github页。

相关内容