无法安装最新版本

时间:2020-11-06 05:09:32

标签: linux docker shell laradock

尝试在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/

1 个答案:

答案 0 :(得分:0)

由于您的发行版使用Ubuntu Xenial软件包(CTRL+SHIFT+P),因此您看到的结果是连贯的:https://packages.ubuntu.com/xenial/whois

要使用最新版本,您可以:

  • 更改基本分配
  • 尝试从源代码构建它
  • 下载Get:1 http://archive.ubuntu.com/ubuntu xenial/main文件并与whois_5.5.7_amd64.deb一起安装,但是您可能会错过一些依赖项。