尝试安装突触时出现“E:包‘突触’没有候选安装”

roh*_*hit 2 synaptic

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
Run Code Online (Sandbox Code Playgroud)
  • 我试过做一个,sudo apt-get update但这不起作用。

And*_*ini 6

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

图形用户界面

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

软件来源

这样做之后,系统会要求您重新加载软件源,然后您就可以安装软件包了。

终端

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

sensible-editor /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

并添加以下三行:

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
Run Code Online (Sandbox Code Playgroud)

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

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