![我无法从我的 sources.list.d 中删除格式错误的行?](https://linux22.com/image/967509/%E6%88%91%E6%97%A0%E6%B3%95%E4%BB%8E%E6%88%91%E7%9A%84%20sources.list.d%20%E4%B8%AD%E5%88%A0%E9%99%A4%E6%A0%BC%E5%BC%8F%E9%94%99%E8%AF%AF%E7%9A%84%E8%A1%8C%EF%BC%9F.png)
我尝试按照一个解释不清的教程从终端安装 Opera 浏览器。失败后,我无法进入软件中心或软件更新程序。我还收到此错误消息:
An error occurred, please run Package Manager from the right-click menu
or apt-get in a terminal to see what is wrong. The error message was:
'Error: Opening the cache (E:Malformed line 1 in source list
/etc/apt/sources.list.d/opera.list (dist), E:The package lists or
status file could not be parsed or opened.)'. This usually means that
your installed packages have unmet dependencies.
是的,我看过所有其他“格式错误的行”线程,但没有任何帮助。任何帮助都将不胜感激。我正在运行 13.04。
答案1
首先安装gksu
sudo apt-get install gksu
然后用 gedit 打开文件
gksu gedit /etc/apt/sources.list.d/opera.list
您可以在此处发布该行以供审核,或者在前面添加 # 将其注释掉