首页 > 解决方案 > 无法安装最新版本

问题描述

尝试在 docker 容器中安装 whois 应用程序(基于 Laradock)获取输出:

root@475f4c9d3438:/var/www# apt-get install whois
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libargon2-0 libicu64
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  whois
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.0 kB of archives.
After this operation, 184 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 whois amd64 5.2.11 [34.0 kB]
Fetched 34.0 kB in 1s (28.1 kB/s)
Selecting previously unselected package whois.
(Reading database ... 25664 files and directories currently installed.)
Preparing to unpack .../whois_5.2.11_amd64.deb ...
Unpacking whois (5.2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up whois (5.2.11) ...

但 5.2.11 不是最后一个版本。我看到最后一个版本是 5.5.7 http://ftp.debian.org/debian/pool/main/w/whois/

标签: linuxdockershelllaradock

解决方案


由于您的发行版使用 ubuntu xenial 包 ( Get:1 http://archive.ubuntu.com/ubuntu xenial/main),因此您看到的结果是一致的:https ://packages.ubuntu.com/xenial/whois 。

要使用更新的版本,您可以:

  • 改变基础分布
  • 尝试从源代码构建它
  • 下载whois_5.5.7_amd64.deb文件并使用 安装它dpkg,但您可能会错过一些依赖项。

推荐阅读