msys2 / MSYS2-packages

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

Full upgrade broke 'curl' command #1079

Open ghost opened 6 years ago

ghost commented 6 years ago

I installed latest MSYS2 on Windows 7 64bit in the following steps.

  1. Install MSYS2 using msys2-x86_64-20161025.exe.

  2. Update core components.

$ pacman -Syuu
:: Synchronizing package databases...
 mingw32                    366.7 KiB   888K/s 00:00 [##########################] 100%
 mingw32.sig                 96.0   B  0.00B/s 00:00 [##########################] 100%
 mingw64                    366.6 KiB  2.52M/s 00:00 [##########################] 100%
 mingw64.sig                 96.0   B  0.00B/s 00:00 [##########################] 100%
 msys                       158.8 KiB  19.4M/s 00:00 [##########################] 100%
 msys.sig                    96.0   B  0.00B/s 00:00 [##########################] 100%
:: Starting core system upgrade...
warning: terminate other MSYS2 programs before proceeding
resolving dependencies...
looking for conflicting packages...

Packages (5) bash-4.4.012-1  filesystem-2017.05-1  mintty-1~2.8.1-1
             msys2-runtime-2.9.0-2  pacman-5.0.1-4

Total Download Size:   11.52 MiB
Total Installed Size:  54.80 MiB
Net Upgrade Size:       3.20 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 msys2-runtime-2.9.0-2...     2.4 MiB  1648K/s 00:01 [##########################] 100%
 bash-4.4.012-1-x86_64     1969.4 KiB  1628K/s 00:01 [##########################] 100%
 filesystem-2017.05-1-...    40.0 KiB  39.1M/s 00:00 [##########################] 100%
 mintty-1~2.8.1-1-x86_64    233.8 KiB  1732K/s 00:00 [##########################] 100%
 pacman-5.0.1-4-x86_64        6.9 MiB  1561K/s 00:05 [##########################] 100%
(5/5) checking keys in keyring                       [##########################] 100%
(5/5) checking package integrity                     [##########################] 100%
(5/5) loading package files                          [##########################] 100%
(5/5) checking for file conflicts                    [##########################] 100%
(5/5) checking available disk space                  [##########################] 100%
warning: could not get file information for opt/
:: Processing package changes...
error: cannot remove /usr/bin/msys-2.0.dll (Permission denied)
(1/5) upgrading msys2-runtime                        [##########################] 100%
warning: warning given when extracting /usr/bin/msys-2.0.dll (Could not unlink)
error: cannot remove /usr/bin/bash.exe (Permission denied)
(2/5) upgrading bash                                 [##########################] 100%
warning: warning given when extracting /usr/bin/bash.exe (Could not unlink)
(3/5) upgrading filesystem                           [##########################] 100%
error: cannot remove /usr/bin/mintty.exe (Permission denied)
(4/5) upgrading mintty                               [##########################] 100%
warning: warning given when extracting /usr/bin/mintty.exe (Could not unlink)
error: cannot remove /usr/bin/pacman.exe (Permission denied)
(5/5) upgrading pacman                               [##########################] 100%
warning: warning given when extracting /usr/bin/pacman.exe (Could not unlink)
warning: terminate MSYS2 without returning to shell and check for updates again
warning: for example close your terminal window instead of calling exit
  1. Close my terminal window using a close button.

  2. Update package 'coreutils' with '--force' option for https://github.com/Alexpux/MSYS2-packages/issues/1024 workaround.

$ pacman -S coreutils --force
resolving dependencies...
looking for conflicting packages...

Packages (1) coreutils-8.26-2

Total Download Size:    2.26 MiB
Total Installed Size:  22.71 MiB
Net Upgrade Size:       0.88 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 coreutils-8.26-2-x86_64    2.3 MiB  1474K/s 00:02 [#####################] 100%
(1/1) checking keys in keyring                     [#####################] 100%
(1/1) checking package integrity                   [#####################] 100%
(1/1) loading package files                        [#####################] 100%
(1/1) checking for file conflicts                  [#####################] 100%
(1/1) checking available disk space                [#####################] 100%
:: Processing package changes...
(1/1) upgrading coreutils                          [#####################] 100%
  1. Update all packages.
$ LANG=C pacman -Suu
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (62) bash-completion-2.5-1  bsdcpio-3.3.2-1  bsdtar-3.3.2-1
              ca-certificates-20170717-2  curl-7.55.1-3  file-5.32-1  flex-2.6.4-1
              gawk-4.1.4-2  gcc-libs-6.4.0-1  gettext-0.19.8.1-1  glib2-2.48.2-1
              gmp-6.1.2-1  gnupg-1.4.22-2  grep-3.0-1  icu-59.1-1  inetutils-1.9.4-1
              info-6.3-1  less-529-1  libarchive-3.3.2-1  libasprintf-0.19.8.1-1
              libassuan-2.4.3-1  libcrypt-2.1-1  libcurl-7.55.1-3
              libedit-3.1-20170329  libexpat-2.2.4-1  libgcrypt-1.8.1-1
              libgettextpo-0.19.8.1-1  libgpg-error-1.27-1  libidn2-2.0.4-2
              libintl-0.19.8.1-1  liblzma-5.2.3-1  liblzo2-2.10-1  libmetalink-0.1.3-1
              libnghttp2-1.24.0-1  libopenssl-1.0.2.m-1  libp11-kit-0.23.9-1
              libpcre-8.40-2  libpcre16-8.40-2  libpcre32-8.40-2  libpcrecpp-8.40-2
              libpcreposix-8.40-2  libpsl-0.18.0-2  libreadline-7.0.003-1
              libsqlite-3.19.3.0-2  libssh2-1.8.0-1  libtasn1-4.12-1
              libunistring-0.9.7-2  libxml2-2.9.5-1  libxslt-1.1.30-1  m4-1.4.18-1
              mpfr-3.1.5.1-3  ncurses-6.0.20170708-2  openssl-1.0.2.m-1
              p11-kit-0.23.9-1  pax-git-20161104.2-1  pcre-8.40-2  pkgfile-17-1
              sed-4.4-2  tzcode-2017.b-1  wget-1.19.1-3  xz-5.2.3-1  zlib-1.2.11-1

Total Download Size:    29.17 MiB
Total Installed Size:  122.64 MiB
Net Upgrade Size:       19.85 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 bash-completion-2.5-1-any  188.1 KiB   726K/s 00:00 [##########################] 100%
 gcc-libs-6.4.0-1-x86_64    821.9 KiB  1566K/s 00:01 [##########################] 100%
 libintl-0.19.8.1-1-x86_64   30.8 KiB  30.0M/s 00:00 [##########################] 100%
 libgettextpo-0.19.8.1...   117.7 KiB  19.2M/s 00:00 [##########################] 100%
 libasprintf-0.19.8.1-...    16.1 KiB  0.00B/s 00:00 [##########################] 100%
 gettext-0.19.8.1-1-x86_64 1542.1 KiB  1655K/s 00:01 [##########################] 100%
 liblzma-5.2.3-1-x86_64      78.3 KiB  4.78M/s 00:00 [##########################] 100%
 liblzo2-2.10-1-x86_64       68.8 KiB  16.8M/s 00:00 [##########################] 100%
 icu-59.1-1-x86_64            7.3 MiB  1586K/s 00:05 [##########################] 100%
 ncurses-6.0.20170708-...  1167.4 KiB  1774K/s 00:01 [##########################] 100%
 libreadline-7.0.003-1...   266.8 KiB  2021K/s 00:00 [##########################] 100%
 zlib-1.2.11-1-x86_64        55.1 KiB  26.9M/s 00:00 [##########################] 100%
 gmp-6.1.2-1-x86_64         371.3 KiB  2.63M/s 00:00 [##########################] 100%
 libxml2-2.9.5-1-x86_64     502.7 KiB  1904K/s 00:00 [##########################] 100%
 bsdcpio-3.3.2-1-x86_64     817.3 KiB  2043K/s 00:00 [##########################] 100%
 bsdtar-3.3.2-1-x86_64      861.4 KiB  1660K/s 00:01 [##########################] 100%
 libopenssl-1.0.2.m-1-...  1022.5 KiB  1926K/s 00:01 [##########################] 100%
 openssl-1.0.2.m-1-x86_64  1361.4 KiB  1734K/s 00:01 [##########################] 100%
 sed-4.4-2-x86_64           213.2 KiB  1627K/s 00:00 [##########################] 100%
 libpcre-8.40-2-x86_64       94.2 KiB  18.4M/s 00:00 [##########################] 100%
 less-529-1-x86_64          105.6 KiB  17.2M/s 00:00 [##########################] 100%
 info-6.3-1-x86_64          178.8 KiB  19.4M/s 00:00 [##########################] 100%
 libtasn1-4.12-1-x86_64     105.6 KiB  20.6M/s 00:00 [##########################] 100%
 libgpg-error-1.27-1-x...   115.9 KiB  18.9M/s 00:00 [##########################] 100%
 libgcrypt-1.8.1-1-x86_64   466.0 KiB  1779K/s 00:00 [##########################] 100%
 libxslt-1.1.30-1-x86_64    138.7 KiB  19.3M/s 00:00 [##########################] 100%
 glib2-2.48.2-1-x86_64     1737.5 KiB  1667K/s 00:01 [##########################] 100%
 libp11-kit-0.23.9-1-x...   150.2 KiB  18.3M/s 00:00 [##########################] 100%
 p11-kit-0.23.9-1-x86_64    229.3 KiB  1764K/s 00:00 [##########################] 100%
 ca-certificates-20170...   419.8 KiB  1615K/s 00:00 [##########################] 100%
 libcrypt-2.1-1-x86_64       32.1 KiB  31.4M/s 00:00 [##########################] 100%
 libunistring-0.9.7-2-...   504.5 KiB  1911K/s 00:00 [##########################] 100%
 libidn2-2.0.4-2-x86_64      76.7 KiB  25.0M/s 00:00 [##########################] 100%
 libexpat-2.2.4-1-x86_64     62.7 KiB  20.4M/s 00:00 [##########################] 100%
 libmetalink-0.1.3-1-x...    32.8 KiB  32.0M/s 00:00 [##########################] 100%
 libnghttp2-1.24.0-1-x...    63.7 KiB  20.7M/s 00:00 [##########################] 100%
 libpsl-0.18.0-2-x86_64      63.6 KiB  31.1M/s 00:00 [##########################] 100%
 libssh2-1.8.0-1-x86_64     173.4 KiB  21.2M/s 00:00 [##########################] 100%
 libedit-3.1-20170329-...    96.9 KiB  23.7M/s 00:00 [##########################] 100%
 libsqlite-3.19.3.0-2-...   564.3 KiB  2.02M/s 00:00 [##########################] 100%
 libcurl-7.55.1-3-x86_64    213.5 KiB  1655K/s 00:00 [##########################] 100%
 curl-7.55.1-3-x86_64       699.8 KiB  1781K/s 00:00 [##########################] 100%
 file-5.32-1-x86_64         469.3 KiB  1771K/s 00:00 [##########################] 100%
 m4-1.4.18-1-x86_64         213.6 KiB  1656K/s 00:00 [##########################] 100%
 flex-2.6.4-1-x86_64        294.6 KiB  2.15M/s 00:00 [##########################] 100%
 mpfr-3.1.5.1-3-x86_64      242.0 KiB  1848K/s 00:00 [##########################] 100%
 gawk-4.1.4-2-x86_64        986.4 KiB  1872K/s 00:01 [##########################] 100%
 gnupg-1.4.22-2-x86_64     1038.4 KiB  1597K/s 00:01 [##########################] 100%
 grep-3.0-1-x86_64          239.9 KiB  1831K/s 00:00 [##########################] 100%
 inetutils-1.9.4-1-x86_64   194.6 KiB  19.0M/s 00:00 [##########################] 100%
 libarchive-3.3.2-1-x86_64  816.4 KiB  2031K/s 00:00 [##########################] 100%
 libassuan-2.4.3-1-x86_64    97.2 KiB  23.7M/s 00:00 [##########################] 100%
 libpcre16-8.40-2-x86_64     92.6 KiB  90.5M/s 00:00 [##########################] 100%
 libpcre32-8.40-2-x86_64     86.6 KiB  21.2M/s 00:00 [##########################] 100%
 libpcrecpp-8.40-2-x86_64    22.7 KiB  0.00B/s 00:00 [##########################] 100%
 libpcreposix-8.40-2-x...    16.2 KiB  0.00B/s 00:00 [##########################] 100%
 pax-git-20161104.2-1-...    84.7 KiB  20.7M/s 00:00 [##########################] 100%
 pcre-8.40-2-x86_64         589.2 KiB  2.15M/s 00:00 [##########################] 100%
 xz-5.2.3-1-x86_64          145.4 KiB  20.3M/s 00:00 [##########################] 100%
 pkgfile-17-1-x86_64         35.1 KiB  34.2M/s 00:00 [##########################] 100%
 tzcode-2017.b-1-x86_64     295.3 KiB  2.15M/s 00:00 [##########################] 100%
 wget-1.19.1-3-x86_64       643.5 KiB  1650K/s 00:00 [##########################] 100%
(62/62) checking keys in keyring                     [##########################] 100%
(62/62) checking package integrity                   [##########################] 100%
(62/62) loading package files                        [##########################] 100%
(62/62) checking for file conflicts                  [##########################] 100%
(62/62) checking available disk space                [##########################] 100%
:: Processing package changes...
( 1/62) upgrading bash-completion                    [##########################] 100%
( 2/62) upgrading gcc-libs                           [##########################] 100%
( 3/62) upgrading libintl                            [##########################] 100%
( 4/62) upgrading libgettextpo                       [##########################] 100%
( 5/62) upgrading libasprintf                        [##########################] 100%
( 6/62) upgrading gettext                            [##########################] 100%
( 7/62) upgrading liblzma                            [##########################] 100%
( 8/62) upgrading liblzo2                            [##########################] 100%
( 9/62) upgrading icu                                [##########################] 100%
(10/62) upgrading ncurses                            [##########################] 100%
(11/62) upgrading libreadline                        [##########################] 100%
(12/62) upgrading zlib                               [##########################] 100%
(13/62) upgrading gmp                                [##########################] 100%
(14/62) upgrading libxml2                            [##########################] 100%
(15/62) upgrading bsdcpio                            [##########################] 100%
(16/62) upgrading bsdtar                             [##########################] 100%
(17/62) upgrading libopenssl                         [##########################] 100%
(18/62) upgrading openssl                            [##########################] 100%
(19/62) upgrading sed                                [##########################] 100%
(20/62) upgrading libpcre                            [##########################] 100%
(21/62) upgrading less                               [##########################] 100%
(22/62) upgrading info                               [##########################] 100%
(23/62) upgrading libtasn1                           [##########################] 100%
(24/62) upgrading libgpg-error                       [##########################] 100%
(25/62) installing libgcrypt                         [##########################] 100%
(26/62) installing libxslt                           [##########################] 100%
(27/62) installing glib2                             [##########################] 100%
Optional dependencies for glib2
    gamin: for gio fam module
    python2: for gdbus-codegen and gtester-report
(28/62) upgrading libp11-kit                         [##########################] 100%
(29/62) upgrading p11-kit                            [##########################] 100%
(30/62) upgrading ca-certificates                    [##########################] 100%
(31/62) upgrading libcrypt                           [##########################] 100%
(32/62) installing libunistring                      [##########################] 100%
(33/62) installing libidn2                           [##########################] 100%
(34/62) upgrading libexpat                           [##########################] 100%
(35/62) upgrading libmetalink                        [##########################] 100%
(36/62) installing libnghttp2                        [##########################] 100%
(37/62) installing libpsl                            [##########################] 100%
(38/62) upgrading libssh2                            [##########################] 100%
(39/62) upgrading libedit                            [##########################] 100%
(40/62) upgrading libsqlite                          [##########################] 100%
(41/62) upgrading libcurl                            [##########################] 100%
(42/62) upgrading curl                               [##########################] 100%
(43/62) upgrading file                               [##########################] 100%
(44/62) upgrading m4                                 [##########################] 100%
(45/62) upgrading flex                               [##########################] 100%
(46/62) upgrading mpfr                               [##########################] 100%
(47/62) upgrading gawk                               [##########################] 100%
(48/62) upgrading gnupg                              [##########################] 100%
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keyring master key...
gpg: skipping control `%no-protection' ()
.........+++++
+++++
gpg: key DF65F06B marked as ultimately trusted
gpg: Done
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from msys2.gpg...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Locally signing trusted keys in keyring...
  -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A...
  -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813...
  -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008...
  -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C...
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   4  signed:   3  trust: 0-, 0q, 0n, 4m, 0f, 0u
gpg: depth: 2  valid:   3  signed:   0  trust: 3-, 0q, 0n, 0m, 0f, 0u
(49/62) upgrading grep                               [##########################] 100%
(50/62) upgrading inetutils                          [##########################] 100%
(51/62) upgrading libarchive                         [##########################] 100%
(52/62) upgrading libassuan                          [##########################] 100%
(53/62) upgrading libpcre16                          [##########################] 100%
(54/62) upgrading libpcre32                          [##########################] 100%
(55/62) upgrading libpcrecpp                         [##########################] 100%
(56/62) upgrading libpcreposix                       [##########################] 100%
(57/62) upgrading pax-git                            [##########################] 100%
(58/62) upgrading pcre                               [##########################] 100%
(59/62) upgrading xz                                 [##########################] 100%
(60/62) upgrading pkgfile                            [##########################] 100%
(61/62) upgrading tzcode                             [##########################] 100%
(62/62) upgrading wget                               [##########################] 100%
  1. You can get the broken system.

Actual:

$ curl -V

$ echo $?
127

Expected:

$ curl -V
curl 7.55.1 (x86_64-pc-msys) libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.33 libssh2/1.7.0
Release-Date: 2017-08-14
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink PSL

Other commands (like ls, mv, rm) work normally.

In step 6, I updated only 'curl'. It is works. // Certainly, I know that MSYS2 not support partial upgrades.

$  pacman -S curl
resolving dependencies...
looking for conflicting packages...

Packages (6) icu-59.1-1  libgcrypt-1.8.1-1  libnghttp2-1.24.0-1  libpsl-0.18.0-2  libxslt-1.1.30-1  curl-7.55.1-3

Total Download Size:    8.66 MiB
Total Installed Size:  31.34 MiB
Net Upgrade Size:       2.79 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 libnghttp2-1.24.0-1-x86_64                                                          63.7 KiB   486K/s 00:00 [###############################################################] 100%
 libgcrypt-1.8.1-1-x86_64                                                           466.0 KiB  1726K/s 00:00 [###############################################################] 100%
 libxslt-1.1.30-1-x86_64                                                            138.7 KiB  67.7M/s 00:00 [###############################################################] 100%
 icu-59.1-1-x86_64                                                                    7.3 MiB  1561K/s 00:05 [###############################################################] 100%
 libpsl-0.18.0-2-x86_64                                                              63.6 KiB  31.1M/s 00:00 [###############################################################] 100%
 curl-7.55.1-3-x86_64                                                               699.8 KiB  1750K/s 00:00 [###############################################################] 100%
(6/6) checking keys in keyring                                                                               [###############################################################] 100%
(6/6) checking package integrity                                                                             [###############################################################] 100%
(6/6) loading package files                                                                                  [###############################################################] 100%
(6/6) checking for file conflicts                                                                            [###############################################################] 100%
(6/6) checking available disk space                                                                          [###############################################################] 100%
:: Processing package changes...
(1/6) installing libnghttp2                                                                                  [###############################################################] 100%
(2/6) installing libgcrypt                                                                                   [###############################################################] 100%
(3/6) installing libxslt                                                                                     [###############################################################] 100%
(4/6) upgrading icu                                                                                          [###############################################################] 100%
(5/6) installing libpsl                                                                                      [###############################################################] 100%
(6/6) upgrading curl                                                                                         [###############################################################] 100%

$ curl -V
curl 7.55.1 (x86_64-pc-msys) libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.33 libssh2/1.7.0
Release-Date: 2017-08-14
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink PSL

Hmm..., what is broken?

mati865 commented 6 years ago

Probably curl has to be rebuild after recent updates (could it be openssl or libidn?).

ErichDonGubler commented 6 years ago

Hmm...I can't repro this:

$ pacman -Syu --noconfirm
...
$ curl https://meh.com | tail
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 89781  100 89781    0     0  89781      0  0:00:01 --:--:--  0:00:01  382k
                } else {
                    window.history.replaceState({}, '', window.location.pathname);
                }
            }
        }
    });
</script>

    </body>
</html>
ghost commented 6 years ago

Hmm... I think package 'libcurl' is evil, but I have no idea. What should we do?

$ pacman -Syuu --noconfirm
:: Synchronizing package databases...
 mingw32                                               369.5 KiB   688K/s 00:01 [#############################################] 100%
 mingw32.sig                                            96.0   B  0.00B/s 00:00 [#############################################] 100%
 mingw64                                               369.3 KiB   926K/s 00:00 [#############################################] 100%
 mingw64.sig                                            96.0   B  0.00B/s 00:00 [#############################################] 100%
 msys                                                  158.8 KiB  1185K/s 00:00 [#############################################] 100%
 msys.sig                                               96.0   B  0.00B/s 00:00 [#############################################] 100%
:: Starting core system upgrade...
warning: terminate other MSYS2 programs before proceeding
resolving dependencies...
looking for conflicting packages...

Packages (5) bash-4.4.012-1  filesystem-2017.05-1  mintty-1~2.8.1-1  msys2-runtime-2.9.0-2  pacman-5.0.1-4

Total Download Size:   11.52 MiB
Total Installed Size:  54.80 MiB
Net Upgrade Size:       3.20 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 msys2-runtime-2.9.0-2-x86_64                            2.4 MiB  1529K/s 00:02 [#############################################] 100%
 bash-4.4.012-1-x86_64                                1969.4 KiB  1638K/s 00:01 [#############################################] 100%
 filesystem-2017.05-1-x86_64                            40.0 KiB  19.5M/s 00:00 [#############################################] 100%
 mintty-1~2.8.1-1-x86_64                               233.8 KiB  1744K/s 00:00 [#############################################] 100%
 pacman-5.0.1-4-x86_64                                   6.9 MiB  1570K/s 00:05 [#############################################] 100%
(5/5) checking keys in keyring                                                  [#############################################] 100%
(5/5) checking package integrity                                                [#############################################] 100%
(5/5) loading package files                                                     [#############################################] 100%
(5/5) checking for file conflicts                                               [#############################################] 100%
(5/5) checking available disk space                                             [#############################################] 100%
warning: could not get file information for opt/
:: Processing package changes...
error: cannot remove /usr/bin/msys-2.0.dll (Permission denied)
(1/5) upgrading msys2-runtime                                                   [#############################################] 100%
warning: warning given when extracting /usr/bin/msys-2.0.dll (Could not unlink)
error: cannot remove /usr/bin/bash.exe (Permission denied)
(2/5) upgrading bash                                                            [#############################################] 100%
warning: warning given when extracting /usr/bin/bash.exe (Could not unlink)
(3/5) upgrading filesystem                                                      [#############################################] 100%
error: cannot remove /usr/bin/mintty.exe (Permission denied)
(4/5) upgrading mintty                                                          [#############################################] 100%
warning: warning given when extracting /usr/bin/mintty.exe (Could not unlink)
error: cannot remove /usr/bin/pacman.exe (Permission denied)
(5/5) upgrading pacman                                                          [#############################################] 100%
warning: warning given when extracting /usr/bin/pacman.exe (Could not unlink)
warning: terminate MSYS2 without returning to shell and check for updates again
warning: for example close your terminal window instead of calling exit

$ pacman -S --noconfirm coreutils --force
resolving dependencies...
looking for conflicting packages...

Packages (1) coreutils-8.26-2

Total Download Size:    2.26 MiB
Total Installed Size:  22.71 MiB
Net Upgrade Size:       0.88 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 coreutils-8.26-2-x86_64                                 2.3 MiB  1233K/s 00:02 [#############################################] 100%
(1/1) checking keys in keyring                                                  [#############################################] 100%
(1/1) checking package integrity                                                [#############################################] 100%
(1/1) loading package files                                                     [#############################################] 100%
(1/1) checking for file conflicts                                               [#############################################] 100%
(1/1) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/1) upgrading coreutils                                                       [#############################################] 100%

$ pacman -S --noconfirm curl
resolving dependencies...
looking for conflicting packages...

Packages (6) icu-59.1-1  libgcrypt-1.8.1-1  libnghttp2-1.24.0-1  libpsl-0.18.0-2  libxslt-1.1.30-1  curl-7.55.1-3

Total Download Size:    8.66 MiB
Total Installed Size:  31.34 MiB
Net Upgrade Size:       2.79 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 libnghttp2-1.24.0-1-x86_64                             63.7 KiB   439K/s 00:00 [#############################################] 100%
 libgcrypt-1.8.1-1-x86_64                              466.0 KiB  1064K/s 00:00 [#############################################] 100%
 libxslt-1.1.30-1-x86_64                               138.7 KiB   135M/s 00:00 [#############################################] 100%
 icu-59.1-1-x86_64                                       7.3 MiB  1420K/s 00:05 [#############################################] 100%
 libpsl-0.18.0-2-x86_64                                 63.6 KiB  20.7M/s 00:00 [#############################################] 100%
 curl-7.55.1-3-x86_64                                  699.8 KiB  1591K/s 00:00 [#############################################] 100%
(6/6) checking keys in keyring                                                  [#############################################] 100%
(6/6) checking package integrity                                                [#############################################] 100%
(6/6) loading package files                                                     [#############################################] 100%
(6/6) checking for file conflicts                                               [#############################################] 100%
(6/6) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/6) installing libnghttp2                                                     [#############################################] 100%
(2/6) installing libgcrypt                                                      [#############################################] 100%
(3/6) installing libxslt                                                        [#############################################] 100%
(4/6) upgrading icu                                                             [#############################################] 100%
(5/6) installing libpsl                                                         [#############################################] 100%
(6/6) upgrading curl                                                            [#############################################] 100%

$ curl -V
curl 7.55.1 (x86_64-pc-msys) libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.33 libssh2/1.7.0
Release-Date: 2017-08-14
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink PSL

$ pacman -S libcurl
resolving dependencies...
looking for conflicting packages...

Packages (3) libidn2-2.0.4-2  libunistring-0.9.7-2  libcurl-7.55.1-3

Total Download Size:   0.78 MiB
Total Installed Size:  2.70 MiB
Net Upgrade Size:      2.26 MiB

:: Proceed with installation? [Y/n] n

$ pacman -S --noconfirm libidn2
resolving dependencies...
looking for conflicting packages...

Packages (2) libunistring-0.9.7-2  libidn2-2.0.4-2

Total Download Size:   0.57 MiB
Total Installed Size:  2.21 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 libunistring-0.9.7-2-x86_64                           504.5 KiB  1271K/s 00:00 [#############################################] 100%
 libidn2-2.0.4-2-x86_64                                 76.7 KiB  0.00B/s 00:00 [#############################################] 100%
(2/2) checking keys in keyring                                                  [#############################################] 100%
(2/2) checking package integrity                                                [#############################################] 100%
(2/2) loading package files                                                     [#############################################] 100%
(2/2) checking for file conflicts                                               [#############################################] 100%
(2/2) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/2) installing libunistring                                                   [#############################################] 100%
(2/2) installing libidn2                                                        [#############################################] 100%

$ curl -V
curl 7.55.1 (x86_64-pc-msys) libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.33 libssh2/1.7.0
Release-Date: 2017-08-14
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink PSL

$ pacman -S --noconfirm libcurl
resolving dependencies...
looking for conflicting packages...

Packages (1) libcurl-7.55.1-3

Total Download Size:   0.21 MiB
Total Installed Size:  0.49 MiB
Net Upgrade Size:      0.04 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 libcurl-7.55.1-3-x86_64                               213.5 KiB   818K/s 00:00 [#############################################] 100%
(1/1) checking keys in keyring                                                  [#############################################] 100%
(1/1) checking package integrity                                                [#############################################] 100%
(1/1) loading package files                                                     [#############################################] 100%
(1/1) checking for file conflicts                                               [#############################################] 100%
(1/1) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/1) upgrading libcurl                                                         [#############################################] 100%

$ curl -V

@ErichDonGubler Are you trying in clean install MSYS2 or existing environment? I repro in clean install MSYS2.

ErichDonGubler commented 6 years ago

Existing -- let me try a clean one.