apt-cache show:无法从包中选择版本,因为它是纯虚拟的

ger*_*ain 6 postgresql ubuntu

我在 Ubuntu 中摆弄 postgresql 包:

$ apt-cache show postgresql
$ apt-cache show postgresql-10
$ apt-cache show postgresql-contrib
Run Code Online (Sandbox Code Playgroud)

什么时候:

$ apt-cache show postgresql-contrib-10
N: Can't select versions from package 'postgresql-contrib-10' as it is purely virtual
N: No packages found
Run Code Online (Sandbox Code Playgroud)

有人知道“纯虚拟”是什么意思吗?

谢谢。

小智 2

postgresql-contrib-10由主包提供postgres-10(因此是虚拟的)。据我了解,在旧版本中,这是一个单独的包,现在似乎在功能上合并到主包中。

$ apt-cache show postgresql-10|grep Provides
Provides: postgresql-contrib-10
Run Code Online (Sandbox Code Playgroud)