尝试安装synaptic时,“E:Package’seapaptic’没有安装候选者”

ilshat@lpt:~$ sudo apt-get install synaptic Reading package lists… Done Building dependency tree Reading state information… Done Package synaptic 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 'synaptic' has no installation candidate 
  • 我试过做一个sudo apt-get update但这不起作用。

Synaptic可以在所谓的Universe存储库中找到。 如果找不到该包,则表示您没有启用Universe 。 要启用它,请按照下列步骤操作:

GUI

打开软件源并选择社区维护的免费和开源软件(宇宙)

软件来源

执行此操作后,系统将要求您重新加载软件源,然后您就可以安装软件包了。

终奌站

打开文件/etc/apt/sources.list

 sensible-editor /etc/apt/sources.list 

并添加以下三行:

 deb http://archive.ubuntu.com/ubuntu/ quantal universe deb http://archive.ubuntu.com/ubuntu/ quantal-updates universe deb http://security.ubuntu.com/ubuntu/ quantal-security universe 

注意:我假设你使用的是Quantal(12.10)。 如果不是这种情况,那么使用lsb_release -c查找Ubuntu版本的代号,并用该代号替换quantal

然后运行sudo apt-get update并安装Synaptic

修复/etc/apt/sources.list对我来说还不够:

 deb http:// br。  archive.ubuntu.com/ubuntu/ exact-updates主要限制
 deb-src http:// br。  archive.ubuntu.com/ubuntu/ exact-updates主要限制

然后我做了一个apt-get update :得到了很多无效的签名错误。

这是公司的代理人 。

只有apt-get update工作,我才能再次安装包。

该错误意味着您使用的存储库中没有synaptic包,但apt可以看到其他包引用了synaptic包。 你在用什么存储库? 如果您可以更改回默认值(archive.ubuntu.com),然后执行apt-get update您应该能够安装它。