【问题标题】:Malformed Line 2 the list of sources can not be read error Linux mint 17.2 RafaelaMalformed Line 2 the list of sources can not be read 错误 Linux mint 17.2 Rafaela
【发布时间】:2015-11-03 08:26:25
【问题描述】:

尝试运行sudo apt-get update,但出现以下错误

源列表 /etc/apt/sources.list.d/nginx-stable.list 中的第 2 行格式错误(类型) E: 无法读取源列表。'

我正在尝试更新,以便继续运行 lemp stack 服务器。

【问题讨论】:

    标签: linux linux-mint


    【解决方案1】:

    建议:删除损坏的 repo "/etc/apt/sources.list.d/nginx-stable.list"

    (如果您以后想要更新的 {bleeding edge 'nginx'},您可以从 https://www.nginx.com/resources/wiki/start/topics/tutorials/install/ 安装更新的 repo)


    【讨论】:

    • 我进入repos所在的目录并手动删除它们?
    【解决方案2】:

    使用命令 'sudo gedit /etc/apt/sources.list.d/nginx-stable.list' 打开文件 'nginx-stable.list' 并在第 2 行注释为 start ' #'。 然后运行更新命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-16
      • 2023-02-17
      • 2023-02-11
      • 2022-12-01
      • 2015-03-05
      相关资源
      最近更新 更多