上面的错误是什么意思?什么是安装候选?
我试图做
sudo apt-get install munin-memcached
Run Code Online (Sandbox Code Playgroud)
我收到这条消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package munin-memcached 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 munin-memcached has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我用谷歌搜索了这个问题,有人说要做一个,apt-get upgrade但它仍然没有解决我的问题。
我想安装 OpenOffice。我该怎么做才能在我的电脑上安装它?
Ubuntu(或其他具有 apt 包管理功能的发行版)用户遇到错误并不罕见:
user@box ~ $ sudo apt install x
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package x 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 'x' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
在各种 StackExchange 站点上已经提出了几个与此相关的问题,例如AskUbuntu 上的openvpn,但这些问题通常是关于如何在出现错误的情况下获取特定包。
通过确定它是否仍然分发,如果是,在哪个存储库下,并确保存储库在 apt.sources 中,或者最坏的情况是下载一个.deb 或要编译的源。
所以我的问题更笼统,虽然我猜它有一个相当简单且因此不令人兴奋的答案,但我想不出如何通过传统的搜索引擎方法找到它,所以我转向 AskUbuntu:是否有命令或选项我可以用于确定哪个包/哪些包引用了丢失的包?