linux - 无法安装最新版本
问题描述
尝试在 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/
解决方案
由于您的发行版使用 ubuntu xenial 包 ( Get:1 http://archive.ubuntu.com/ubuntu xenial/main
),因此您看到的结果是一致的:https ://packages.ubuntu.com/xenial/whois 。
要使用更新的版本,您可以:
- 改变基础分布
- 尝试从源代码构建它
- 下载
whois_5.5.7_amd64.deb
文件并使用 安装它dpkg
,但您可能会错过一些依赖项。
推荐阅读
- r - 在 R 中,如何对日期和过去日期之间以及另一个变量中的一列数据求和,类似于 excel 中的 sumifs 函数
- r - 在闪亮的 server() 函数中使用 source() 将值分配给输出
- javascript - 扩展运算符简单示例
- java - 无法使用访问令牌访问 Google 日历活动
- javascript - 获取浏览器刷新率的一致方法
- bash - 使用 boto 或 bash(使用 AWS-CLI)在 ec2、rds、LB 中查找未使用的安全组
- python - PyObject 或 PyFloat 转换的内存泄漏问题
- java - 使用 Clud Dataflow 将数据从 Google Cloud Sql 读取到 BigQuery
- c# - EF、FluentAPI 和 Identity 的多对多
- python - 获取“属性错误 - Str 没有属性 GET”