我从未见过apt-cache show [exact package name]
显示两个包信息块(之后sudo apt-get clean
):
> sudo apt-cache show nvidia-367
Package: nvidia-367
Priority: optional
Section: restricted/misc
Installed-Size: 18
Maintainer: Ubuntu Core Developers <[email protected]>
Architecture: amd64
Source: nvidia-graphics-drivers-375
Version: 375.66-0ubuntu0.17.04.1
Depends: nvidia-375
Filename: pool/restricted/n/nvidia-graphics-drivers-375/nvidia-367_375.66-0ubuntu0.17.04.1_amd64.deb
Size: 6498
MD5sum: 49948d6c82c69fcdbbb1bc2fc5805283
SHA1: 5fee5c7fb976d2d4eb7b135f98b814145a765c26
SHA256: 45024dcca31ecbcd8942625e06f39af9d9e44602e51077e1e3b97c75b6814d7d
Description-en: Transitional package for nvidia-375
This is a transitional package for nvidia-375, and can be
safely removed after the installation is complete.
Description-md5: 9e0e59c93b4df26deb06747b14fe9df1
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
Package: nvidia-367
Priority: optional
Section: restricted/misc
Installed-Size: 17
Maintainer: Ubuntu Core Developers <[email protected]>
Architecture: amd64
Source: nvidia-graphics-drivers-375
Version: 375.39-0ubuntu5
Depends: nvidia-375
Filename: pool/restricted/n/nvidia-graphics-drivers-375/nvidia-367_375.39-0ubuntu5_amd64.deb
Size: 4786
MD5sum: d800639aa42e21dd512d2a2670d62a8b
SHA1: a4c0875c6ccdd5505eb2bae1d843695fd3d1d28a
SHA256: 278201b65afb594ad73b9d5a70e5cd51595628237082e72f9674e19d0c3d8a61
Description-en: Transitional package for nvidia-375
This is a transitional package for nvidia-375, and can be
safely removed after the installation is complete.
Description-md5: 9e0e59c93b4df26deb06747b14fe9df1
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
我应该参考哪个块才能弄清楚我正在使用哪个版本?
我正在使用 Ubuntu 17.04。
答案1
如果您想知道您正在使用哪个版本,请使用其他工具:
dpkg -l nvidia-367
或者 :
apt-cache policy nvidia-367
apt-cache
当存储库中有两个版本的软件可用时,就会发生这种情况。
您也可以使用apt show
而不是apt-cache
来获取最新版本的信息。
或者也指定版本:
apt-cache show package-name=1.17.1-1ubuntu1.1