首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新和包安装不可能: E:无法找到包!Linux 17.3

更新和包安装不可能: E:无法找到包!Linux 17.3
EN

Unix & Linux用户
提问于 2016-03-28 19:34:16
回答 1查看 3K关注 0票数 1

我有个问题。

安装软件包或更新系统是不可能的。

终端和软件管理器都没有工作(软件管理器没有启动)。

终端显示命令如下:

代码语言:javascript
复制
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.

当我试图安装一个程序时:

代码语言:javascript
复制
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

我的源列表文件的内容如下:

代码语言:javascript
复制
#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后几周后再次出现。

非常感谢你的帮助,我很感激!

EN

回答 1

Unix & Linux用户

发布于 2016-03-30 01:48:49

您的sources.list格式不正确。‘’non free‘不应该出现在单独的行上。这就是你看到的原因:

代码语言:javascript
复制
E: Type 'non-free' is not known on line 3 in source list /etc/apt/sources.list

sources.list应该如下所示:

代码语言:javascript
复制
#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源。

票数 3
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/272704

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档