#1072671 apt displays different size units in space needed/available, confusing

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
George Shuklin
Date:
2024-06-06 07:00:04 UTC
Severity:
normal
#1072671#5
Date:
2024-06-06 06:56:20 UTC
From:
To:
When apt report sizes (needed/available) it uses 'human writing' (e.g. uses MB
when it's hundreds megabytes, or GB when it's hundreds gigabytes). But it uses
them separately for each number, which leads to misleading (hard to read)
output:

  Space needed: 155 MB / 154 GB available

It need some attention to notice that it's 155Mb needed out of 154000Mb
available.

May be it's possible to use the largest size unit (e.g. GB) to display this
message in the one scale:

Space needed: 0.2 GB / 154 GB available
Space needed: 155 MB / 154123 MB available