我知道有人问过如何更正 sources.list 中格式错误的行。我尝试按照发布的答案中的说明进行操作,但当我输入sudo -H gedit /etc/apt/sources.list
以下内容时,我无法访问 sources.list:
o protocol specified
Unable to init server: Could not connect: Connection refused
(gedit:18598): Gtk-WARNING **: cannot open display: :0
bill@bill-GA-880GA-UD3H:~$
答案1
改用nano
:
sudo nano /etc/apt/sources.list