Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#66427 - "Total Download Size" shows incorrect information

Attached to Project: Pacman
Opened by Felipe (SungFaed) - Sunday, 26 April 2020, 16:54 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 26 April 2020, 18:09 GMT
Task Type Bug Report
Category Output
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
"Total Download Size" (Tamanho total download, no meu idioma) shows actualy the size of the largest package that will be downloaded (or the size of the last package in the list of files that will be downloaded, not sure), and not the sum (total).


Steps to Reproduce:
pacman -Syu (or any other operation that will have to download MORE THAN ONE package)
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 26 April 2020, 18:09 GMT
Reason for closing:  Not a bug
Additional comments about closing:  OP request: this turned out to be a user config error.
Comment by Eli Schwartz (eschwartz) - Sunday, 26 April 2020, 17:01 GMT
I don't have this problem...

# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) gettext-0.20.2-1 systemd-245.5-2 systemd-libs-245.5-2 tzdata-2020a-1

Total Download Size: 8.45 MiB
Total Installed Size: 34.29 MiB
Net Upgrade Size: -0.07 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
tzdata-2020a-1-x86_64 366.5 KiB 2.98 MiB/s 00:00 [############################################################] 100%
gettext-0.20.2-1-x86_64 2.0 MiB 6.66 MiB/s 00:00 [############################################################] 100%
systemd-libs-245.5-2-x86_64 505.1 KiB 3.52 MiB/s 00:00 [############################################################] 100%
systemd-245.5-2-x86_64 5.6 MiB 6.23 MiB/s 00:01 [############################################################] 100%
(4/4) checking keys in keyring [############################################################] 100%
Comment by Felipe (SungFaed) - Sunday, 26 April 2020, 17:22 GMT
Always happens to me...

sudo pacman -S firefox chromium
resolvendo dependências...
procurando pacotes conflitantes...

Pacotes (2) chromium-81.0.4044.122-1 firefox-75.0-1

Tamanho total download: 111,52 MiB
Tamanho total instalado: 375,71 MiB

:: Continuar a instalação? [S/n]
:: Obtendo pacotes...
firefox-75.0-1-x86_64 53,5 MiB 1447 KiB/s 00:38 [#####################################################################] 47%
chromium-81.0.4044.122-1-x86_64 111,5 MiB 1452 KiB/s 01:19 [#####################################################################] 100%
(2/2) verificando chaves no chaveiro [#####################################################################] 100%
(2/2) verificando integridade do pacote
Comment by Eli Schwartz (eschwartz) - Sunday, 26 April 2020, 17:45 GMT
$ sudo pacman -S firefox chromium
warning: firefox-75.0-1 is up to date -- reinstalling
warning: chromium-81.0.4044.122-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) chromium-81.0.4044.122-1 firefox-75.0-1

Total Download Size: 111.52 MiB
Total Installed Size: 375.71 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
firefox-75.0-1-x86_64 53.5 MiB 7.00 MiB/s 00:08 [------------------------------------------------------------] 100%
chromium-81.0.4044.122-1-x86_64 58.0 MiB 7.17 MiB/s 00:08 [------------------------------------------------------------] 100%
(2/2) checking keys in keyring [------------------------------------------------------------] 100%


Looks fine to me. The first package is 53.5 MiB, the second package is 58.0 MiB, and the total is 111.52 MiB.

Your output shows 111,5 MiB for the chromium download. This is unexpected and doesn't match my results.

The reason you're getting total download size for the chromium download instead of the size of the chromium package, is because you have set TotalDownload in your pacman.conf -- if you forgot about this, or its behavior isn't what you thought it would be, then please remove this setting.
Comment by Felipe (SungFaed) - Sunday, 26 April 2020, 17:55 GMT
I unset TotalDownload in my pacman.conf file and now works fine...

sudo pacman -S chromium firefox
resolvendo dependências...
procurando pacotes conflitantes...

Pacotes (2) chromium-81.0.4044.122-1 firefox-75.0-1

Tamanho total download: 111,52 MiB
Tamanho total instalado: 375,71 MiB

:: Continuar a instalação? [S/n]
:: Obtendo pacotes...
chromium-81.0.40... 58,0 MiB 1327 KiB/s 00:45 [######################] 100%
firefox-75.0-1-x... 53,5 MiB 1288 KiB/s 00:43 [######################] 100%
(2/2) verificando chaves no chaveiro

Sorry for the mistake.

Loading...