冉:sudo apt-get update
输出:
.
.
.
Reading package lists... Done
W: Skipping acquire of configured file 'Sources' as repository 'https://download.sublimetext.com apt/stable/ InRelease' does not seem to provide it (sources.list entry misspelt?)
来源列表
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://download.sublimetext.com/ apt/stable/
deb-src https://download.sublimetext.com/ apt/stable/
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
如何解决?
编辑:我已经提到无法在 Ubuntu 18.10 上运行 Sublime Text 3但这并没有什么帮助。
答案1
以编程方式使用sed
,您可以运行此命令来注释deb-src
以下行download.sublimetext.com
:
sudo sed -e '\@deb-src https://download.sublimetext.com/ apt/stable/@ s@^#*@#@' -i /etc/apt/sources.list
结果将会是一样的。
以 root 身份通过“nano”打开“/etc/apt/sources.list”。
sudo nano /etc/apt/sources.list
点击Ctrl+ ,在搜索栏中W输入,然后您可以在行首输入内容来对其进行注释——您也可以删除整行内容。deb-src https://download.sublimetext.com/ apt/stable/
#
再次运行sudo apt update
,看看是否会遇到同样的错误。