为第三方软件添加 APT 时包管理器出现问题

为第三方软件添加 APT 时包管理器出现问题

我试图在突触包管理器最后出现了错误。这是我打开 synaptic 包管理器时显示的内容。

E: Malformed line 1 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

W: Ignoring file 'Macaulay2.list.save.3' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: Ignoring file 'Macaulay2.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: Ignoring file 'Macaulay2.list.save.4' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: Ignoring file 'Macaulay2.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

实际上,我试图安装一个名为麦考利 2按照在线说明进行操作。

答案1

这意味着您的存储库文件具有无效的扩展名。您应该具有类似Macaulay2.list.save或 的扩展Macaulay2.list/etc/apt/sources.list.d/

将这些文件重命名为终端然后更新存储库:

sudo mv /etc/apt/sources.list.d/Macaulay2.list.save{.1,}  
sudo rm /etc/apt/sources.list.d/Macaulay2.list.save.{2,3,4}
sudo apt update

相关内容