This may be a bug in apt-get or cupt, I'm not sure. But the same command on both produces different predictions on the downloaded and installed size of the same set of packages: skynet:/var/lib/apt/lists# apt-get install iceweasel Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmozjs1d libnspr4-0d libnss3-1d libstartup-notification0 libxcb-atom1 libxcb-aux0 libxcb-event1 xulrunner-1.9 Suggested packages: xulrunner-1.9-gnome-support latex-xft-fonts xfonts-mathml ttf-mathematica4.1 xprint mozplugger libkrb53 The following NEW packages will be installed: iceweasel libmozjs1d libnspr4-0d libnss3-1d libstartup-notification0 libxcb-atom1 libxcb-aux0 libxcb-event1 xulrunner-1.9 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 10.4MB of archives. After this operation, 32.1MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. skynet:/var/lib/apt/lists# cupt install iceweasel Building the package cache... [done] Initializing package resolver and worker... [done] Scheduling requested actions... [done] Resolving possible unmet dependencies... The following 9 packages will be INSTALLED: iceweasel libmozjs1d libnspr4-0d libnss3-1d libstartup-notification0 libxcb-atom1 libxcb-aux0 libxcb-event1 xulrunner-1.9 Need to get 10174KiB/10174KiB of archives. After unpacking 30.6MiB will be used. Do you want to continue? [y/N/q] n Resolving further... no more solutions. Regards, Daniel
package cupt severity 539434 minor tags 539434 moreinfo thanks Hi Daniel, firstly, even if it's bug in cupt, the differences are rather small, so 'minor' here. Daniel Moerner wrote: Given the small differences, I cannot try to verify this on my system, so let's verify the result on yours. Let's do 'cupt show iceweasel libmozjs1d libnspr4-0d libnss3-1d libstartup-notification0 libxcb-atom1 libxcb-aux0 libxcb-event1 xulrunner-1.9 | grep ize' and summarize sizes by hand (xcalc, bc -q etc.) to see which package manager is not right.
reassign 539434 apt
retitle 539434 apt: does not report properly perform unit conversions
tags 539434 -moreinfo
thanks
This looks like a bug in apt. Observe:
dmr@skynet:~$ echo "(+ $(apt-cache show iceweasel libmozjs1d libnspr4-0d libnss3-1d libstartup-notification0 libxcb-atom1 libxcb-aux0 libxcb-event1 xulrunner-1.9 | grep ^Size | awk '{print $2}' | xargs))" | ypsilon -m
10418344
So apt itself agrees that the expected Size of these packages is 10418344 Bytes.
Now, the question is, should apt say there are 1024 bytes in a kilobyte, or 1000? Apt currently does the latter and truncates this to 10.4 MiB. I believe the former is more proper, and it should reconvert this to 9.94 MiB.
Note that other UNIX tools, like "free", also follow the former convention like cupt.
Regards,
Daniel
Both tools behave correctly as defined in IEC 80000-13:2008, as 1 KiB are 1024 bytes and 1kB are 1000 bytes (1KiB != 1kB). But I guess we could also change APT to use IEC prefixes instead and divide by 1024.
In that case it probably doesn't matter, the difference was just disconcerting. Feel free to tag wontfix. Daniel
Hello, Good morning, We have gone through your samples from a partner and Here is our Order List. Please do bear in mind that we are very much in need of this order, quote your competitive prices. Kindly send the Order confirmation. Your early reply will be much appreciated. Best Regards, Maryanah Erwin. PT FINDORA INTERNUSA Jln Pahlawan 66 Kec. Arjawinangun 45162 CIREBON West-Java INDONESIA tel : +62 231 357334 fax: +62 231 357260 email: marketing@findora.com