[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Package: apt
Version: 2.9.4
Severity: minor
X-Debbugs-Cc: george.shuklin@gmail.com


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



-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- (no /etc/apt/preferences.d/* present) --


-- (/etc/apt/sources.list present, but not submitted) --


-- (no /etc/apt/sources.list.d/* present) --


-- System Information:
Debian Release: trixie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.12-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_SOFTLOCKUP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.137
ii  base-passwd             3.6.3
ii  debian-archive-keyring  2023.4
ii  gpgv                    2.2.43-7
ii  libapt-pkg6.0t64        2.9.4
ii  libc6                   2.38-12
ii  libgcc-s1               14.1.0-1
ii  libgnutls30t64          3.8.5-4
ii  libseccomp2             2.5.5-1
ii  libstdc++6              14.1.0-1
ii  libsystemd0             256~rc3-7

Versions of packages apt recommends:
ii  ca-certificates  20240203

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  aptitude        0.8.13-6
ii  dpkg-dev        1.22.6
iu  gnupg           2.2.43-7
pn  powermgmt-base  <none>
ii  synaptic        0.91.3+b1

-- debconf-show failed


Reply to: