请帮忙,我无法安装任何软件。如果我尝试安装 Google Chrome,我得到的是这样的
sthabiso@sthabiso-R519-R719:~$ sudo apt-get install libcurl3 libnspr4-0d libxss1[sudo] password for sthabiso:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libxss1 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
Package libnspr4-0d 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
However the following packages replace it:
libnspr4
E: Package 'libnspr4-0d' has no installation candidate
E: Package 'libxss1' has no installation candidate
sthabiso@sthabiso-R519-R719:~$
如果我安装 light spark,我会得到以下结果
sthabiso@sthabiso-R519-R719:~$ sudo apt-get install lightspark browser-plugin-lightspark
[sudo] password for sthabiso:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package browser-plugin-lightspark 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
Package lightspark 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 'lightspark' has no installation candidate
E: Package 'browser-plugin-lightspark' has no installation candidate
如果我安装 Gnash
sthabiso@sthabiso-R519-R719:~$ sudo apt-get install gnash mozilla-plugin-gnash
[sudo] password for sthabiso:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gnash 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
Package mozilla-plugin-gnash 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 'gnash' has no installation candidate
E: Package 'mozilla-plugin-gnash' has no installation candidate
我无能为力,请帮助我。
答案1
您必须启用以下软件源:
- 在“Ubuntu 软件”选项卡中:
- 主要的
- 宇宙
- 受限制的
- 多元宇宙
- 在“其他软件”选项卡中:
- 规范伙伴(二进制和源);
- 独立(二进制和源)。
完成所有操作后,使用 CTRL-ALT-T 打开终端窗口并输入以下命令:
sudo apt-get update -y
现在您应该可以安装您想要的软件了。
答案2
听起来你的 /etc/apt/sources.list 文件出了点问题。我刚刚也遇到过类似的问题。我手头有一个新的 sources.list 文件,所以我就把它复制到了原处。这里有一个类似的问题https://unix.stackexchange.com/questions/140119/every-package-has-no-installation-candidate。您可以尝试使用回购基因正如他们建议的那样。