在 Proxmox 4.4 容器中运行的 Ubuntu 14.04 LTS 上:
$ apt update
$ apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
bind9 bind9-host bind9utils libbind9-90 libdns100 libisc95 libisccc90
libisccfg90 liblwres90 linux-libc-dev webmin-virtual-server
11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4.500 kB of archives.
After this operation, **16,7 GB of additional disk space** will be used.
Do you want to continue? [Y/n] n
Abort.
怎么可能?我在几个 Proxmox Container 14.04 上尝试过:同样是 16.7 GB!
我从未看到磁盘空间需求错误。它比 Proxmox 容器(6 GB)大。我还没有进行过此 dist-upgrade。
答案1
尽管我尝试使用 apt-get upgrade 而不是 dist-upgrade,但我在 14.04 上收到了同样的消息(不确定是哪个容器)。它显示的空间完全相同,为 16.7 GB。无论如何,我继续进行升级,一切顺利。只使用了大约 30 MB 的额外空间,而不是 16.7 GB。所以这肯定是一个错误。
编辑:一个月过去了,以下是我在 16.04.2 今天得到的结果
apt-get uprgade
...
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,008 kB of archives.
After this operation, 16.7 GB disk space will be freed.
Do you want to continue? [Y/n]
同样是 16.7 GB,但是现在将被释放。