msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.29k stars 490 forks source link

Hang when checking package integrity on update #1385

Open David-Malaguti-Bose opened 6 years ago

David-Malaguti-Bose commented 6 years ago

Hangs on 'checking package integrity'. I let it run for >1 hour and no change or further output, process has to be killed. Is there any additional information I can provide?

$ pacman -Su :: Starting core system upgrade... there is nothing to do :: Starting full system upgrade... resolving dependencies... looking for conflicting packages...

Packages (53) bash-completion-2.8-2 brotli-1.0.5-2 bsdcpio-3.3.2-2 bsdtar-3.3.2-2 curl-7.61.0-2 dash-0.5.10.2-1 dtc-1.4.6-1 file-5.34-1 gawk-4.2.1-1 gcc-libs-7.3.0-3 glib2-2.54.3-1 gnupg-2.2.9-1 grep-3.1-1 heimdal-libs-7.5.0-2 icu-62.1-1 info-6.5-1 less-530-1 libarchive-3.3.2-2 libassuan-2.5.1-1 libcrypt-2.1-2 libcurl-7.61.0-2 libffi-3.2.1-3 libgcrypt-1.8.3-2 libgnutls-3.6.3-1 libgpg-error-1.32-1 libgpgme-1.11.1-1 libhogweed-3.4-1 libidn2-2.0.5-1 libksba-1.3.5-1 liblzma-5.2.4-1 liblzo2-2.10-2 libnettle-3.4-1 libnpth-1.6-1 libopenssl-1.0.2.o-1 libpcre-8.42-1 libpcre16-8.42-1 libpcre32-8.42-1 libpcrecpp-8.42-1 libpcreposix-8.42-1 libreadline-7.0.005-1 libsqlite-3.21.0-4 libunistring-0.9.10-1 libxml2-2.9.8-1 m4-1.4.18-2 nettle-3.4-1 openssl-1.0.2.o-1 pcre-8.42-1 pinentry-1.1.0-2 rebase-4.4.4-1 sed-4.5-1 time-1.9-1 ttyrec-1.0.8-2 xz-5.2.4-1

Total Download Size: 27.96 MiB Total Installed Size: 109.60 MiB Net Upgrade Size: 9.93 MiB

:: Proceed with installation? [Y/n] y :: Retrieving packages... bash-completion-2.8... 196.5 KiB 865K/s 00:00 [#####################] 100% gcc-libs-7.3.0-3-x86_64 977.7 KiB 861K/s 00:01 [#####################] 100% liblzma-5.2.4-1-x86_64 83.1 KiB 607K/s 00:00 [#####################] 100% liblzo2-2.10-2-x86_64 74.8 KiB 542K/s 00:00 [#####################] 100% libhogweed-3.4-1-x86_64 143.0 KiB 448K/s 00:00 [#####################] 100% libnettle-3.4-1-x86_64 105.5 KiB 459K/s 00:00 [#####################] 100% icu-62.1-1-x86_64 7.5 MiB 1330K/s 00:06 [#####################] 100% libreadline-7.0.005... 271.3 KiB 1001K/s 00:00 [#####################] 100% libxml2-2.9.8-1-x86_64 505.3 KiB 857K/s 00:01 [#####################] 100% bsdcpio-3.3.2-2-x86_64 822.3 KiB 625K/s 00:01 [#####################] 100% bsdtar-3.3.2-2-x86_64 865.8 KiB 706K/s 00:01 [#####################] 100% brotli-1.0.5-2-x86_64 287.5 KiB 703K/s 00:00 [#####################] 100% libcrypt-2.1-2-x86_64 35.3 KiB 73.3K/s 00:00 [#####################] 100% libsqlite-3.21.0-4-... 569.7 KiB 500K/s 00:01 [#####################] 100% libopenssl-1.0.2.o-... 1054.4 KiB 704K/s 00:01 [#####################] 100% heimdal-libs-7.5.0-... 736.6 KiB 770K/s 00:01 [#####################] 100% libpcre-8.42-1-x86_64 99.8 KiB 551K/s 00:00 [#####################] 100% less-530-1-x86_64 108.5 KiB 470K/s 00:00 [#####################] 100% info-6.5-1-x86_64 182.5 KiB 442K/s 00:00 [#####################] 100% libunistring-0.9.10... 516.9 KiB 494K/s 00:01 [#####################] 100% libidn2-2.0.5-1-x86_64 93.6 KiB 512K/s 00:00 [#####################] 100% openssl-1.0.2.o-1-x... 1374.9 KiB 644K/s 00:02 [#####################] 100% sed-4.5-1-x86_64 223.2 KiB 706K/s 00:00 [#####################] 100% libffi-3.2.1-3-x86_64 40.0 KiB 444K/s 00:00 [#####################] 100% libgpg-error-1.32-1... 153.3 KiB 478K/s 00:00 [#####################] 100% libgcrypt-1.8.3-2-x... 470.6 KiB 471K/s 00:01 [#####################] 100% glib2-2.54.3-1-x86_64 1861.0 KiB 695K/s 00:03 [#####################] 100% libcurl-7.61.0-2-x86_64 228.7 KiB 721K/s 00:00 [#####################] 100% curl-7.61.0-2-x86_64 764.8 KiB 602K/s 00:01 [#####################] 100% grep-3.1-1-x86_64 229.3 KiB 459K/s 00:01 [#####################] 100% dash-0.5.10.2-1-x86_64 86.4 KiB 467K/s 00:00 [#####################] 100% dtc-1.4.6-1-x86_64 93.4 KiB 406K/s 00:00 [#####################] 100% file-5.34-1-x86_64 503.3 KiB 460K/s 00:01 [#####################] 100% gawk-4.2.1-1-x86_64 1040.9 KiB 655K/s 00:02 [#####################] 100% libassuan-2.5.1-1-x... 100.1 KiB 547K/s 00:00 [#####################] 100% libgnutls-3.6.3-1-x... 1136.3 KiB 717K/s 00:02 [#####################] 100% libksba-1.3.5-1-x86_64 117.0 KiB 647K/s 00:00 [#####################] 100% libnpth-1.6-1-x86_64 21.8 KiB 111K/s 00:00 [#####################] 100% nettle-3.4-1-x86_64 96.5 KiB 419K/s 00:00 [#####################] 100% pinentry-1.1.0-2-x86_64 58.8 KiB 423K/s 00:00 [#####################] 100% gnupg-2.2.9-1-x86_64 1926.2 KiB 719K/s 00:03 [#####################] 100% libarchive-3.3.2-2-... 820.1 KiB 905K/s 00:01 [#####################] 100% libgpgme-1.11.1-1-x... 319.1 KiB 780K/s 00:00 [#####################] 100% libpcre16-8.42-1-x86_64 96.5 KiB 527K/s 00:00 [#####################] 100% libpcre32-8.42-1-x86_64 90.9 KiB 494K/s 00:00 [#####################] 100% libpcrecpp-8.42-1-x... 26.8 KiB 295K/s 00:00 [#####################] 100% libpcreposix-8.42-1... 20.3 KiB 441K/s 00:00 [#####################] 100% m4-1.4.18-2-x86_64 218.4 KiB 434K/s 00:01 [#####################] 100% pcre-8.42-1-x86_64 594.5 KiB 503K/s 00:01 [#####################] 100% rebase-4.4.4-1-x86_64 241.5 KiB 531K/s 00:00 [#####################] 100% time-1.9-1-x86_64 38.4 KiB 422K/s 00:00 [#####################] 100% ttyrec-1.0.8-2-x86_64 25.9 KiB 564K/s 00:00 [#####################] 100% xz-5.2.4-1-x86_64 150.3 KiB 366K/s 00:00 [#####################] 100% (53/53) checking keys in keyring [#####################] 100% ( 0/53) checking package integrity [---------------------] 0%

StarWolf3000 commented 6 years ago

Which Windows version? Which anti-virus and/or firewall software?

valeriuo commented 6 years ago

Same here. Win10 Enterprise (version 1803, build 17134.228). Sophos antivirus.

valeriuo commented 6 years ago

The pacman subprocess that does the integrity checking busy waits on something, taking a whole core. I ran it with --debug and --verbose and it didn't spit any errors. If you kill it by hand, the main process goes to checking the next package, by spawning a new subprocess that will hang as well. Do this for 53 times (kill it) and you'll get to the end of a successful installation.

valeriuo commented 6 years ago

The pacman subprocess seems to be hanging between these two steps:

debug: validity: full; reason: Success
debug: key: <key-fingerprint>, Alexey Pavlov (Alexpux) <alexpux@gmail.com>, owner_trust unknown, disabled 0
David-Malaguti-Bose commented 5 years ago

My apologies for the delayed response. My setup is the same as @valeriuo, including Sophos.

StarWolf3000 commented 5 years ago

Does it run with Sophos temporarily disabled?

tcarlisle2012 commented 5 years ago

Just an FYI, found this today and killing the process and disabling Avira real-time protection temporarily and re-trying did work as expected.