小编Arl*_*nes的帖子

“但是被另一个包引用了。” - 找到那个包裹

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:是否有命令或选项我可以用于确定哪个包/哪些包引用了丢失的包?

package-management command-line apt

42
推荐指数
2
解决办法
13万
查看次数

标签 统计

apt ×1

command-line ×1

package-management ×1