我有个问题。
安装软件包或更新系统是不可能的。
终端和软件管理器都没有工作(软件管理器没有启动)。
终端显示命令如下:
sudo apt-get update
E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list
E: The list of sources could not be read.当我试图安装一个程序时:
sudo apt-get install exfat-utils exfat-fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package exfat-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'exfat-utils' has no installation candidate
E: Unable to locate package exfat-fuse
sudo apt-get update && sudo apt-get install autokey-gtk
E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list
E: The list of sources could not be read.
sudo apt-get install autokey-gtk
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package autokey-gtk我的源列表文件的内容如下:
#deb cdrom:[Linux Mint 17.3 _Rosa_ - Release amd64 20151128]/ trusty contrib
main non-free
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib
non-free
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib
non-free此问题发生在我以前的Linux (17.0)上,并在安装LM 17.3后几周后再次出现。
非常感谢你的帮助,我很感激!
发布于 2016-03-30 01:48:49
您的sources.list格式不正确。‘’non free‘不应该出现在单独的行上。这就是你看到的原因:
E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.listsources.list应该如下所示:
#deb cdrom:[Linux Mint 17.3 _Rosa_ - Release amd64 20151128]/ trusty main contrib non-free
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free还请注意,您的第一行被注释掉了,因此实际上只有两行,这两行都不像Mint的标准源代码。您可能想要添加更多的源。还请考虑是否要保留xnv4.xandros.com源。
https://unix.stackexchange.com/questions/272704
复制相似问题