找不到软件中心
每当试图通过命令安装软件中心时
sudo apt-get install software-center
它说
Reading package lists... Done Building dependency tree Reading state information... Done Package software-center 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 'software-center' has no installation candidate
请帮助
这显然意味着无法找到包装“软件中心”。 这可能有很多原因。
-
检查文件
/etc/apt/sources.list
以查看它是否包含如下所示的行:deb http://*.archive.ubuntu.com/
….其中*可能已deb http://*.archive.ubuntu.com/
域(如de。,fr。等)替换,或者也可以是omnitted。 如果该行以井号(#)开头,请删除该井号。 不要在文本注释之前删除哈希符号。 - 首先使用
sudo apt-get update
存储库索引,然后重试。 - 如果失败,请发送您的文件
/etc/apt/sources.list
。