Libevent2.0.5 是存储库中可用的最新版本,但我想使用 libevent2.0.21,因为我正在排除 Transmission 的错误。我使用 checkinstall 编译了 libevent2.0.21-stable,并验证它是否显示在 Synaptic 中。我使用 synaptic 删除了 libevent2.0.5。当我尝试安装 Tranmission(来自存储库)时,系统提示我安装依赖项 libevent2.0.5
如何从 repo 安装 Tranmission,而不必使用 repo 中的过时依赖项?
答案1
我认为可能存在误会。libevent-2.0-5不是软件包版本,而是软件包的名称,版本号为 2.0.21。您可以按如下方式检查:
# apt-cache showpkg libevent-2.0
Package: libevent-2.0-5
Versions:
2.0.21-stable-1ubuntu1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages) (/var/lib/dpkg/status)
.....
我们可以再检查一下:命令apt-get 安装软件包名称=软件包版本安装特定的包版本。
# apt-get install libevent-2.0-5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libevent-2.0-5 is already the newest version.
upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get install libevent-2.0-5=2.0.21-stable-1ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libevent-2.0-5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
你唯一需要担心的是未来的系统更新不涉及libevent-2.0-5您可以使用以下命令坚持使用此版本的软件包:
apt-mark hold libevent-2.0-5
然后,当你做想要更新软件包,
apt-mark unhold libevent-2.0-5