You are not logged in.

#1 2021-01-26 17:02:49

ibreatheair
Member
Registered: 2021-01-26
Posts: 2

wget certificate problems after pacman -Syu

Hello,

I am building a Dockerfile in which one of the first steps is downloading a file from https://tug.org.
The commands described below are the first ones executed after running `docker run -it archlinux/base`. So no additional changes have been made to the system.

The problem: wget is not accepting the certificate of https://tug.org, if I run `pacman -Syu`.
If I only run `pacman -Sy` and then `pacman -S wget`, it works without problems.
Additionally, curl is not having any problems at all.

The following output shows the results of first doing a full update:

[root@3974009933fe /]# pacman -Syu
:: Synchronizing package databases...
 core                                                                                         134.3 KiB   228 KiB/s 00:01 [##########################################################################] 100%
 extra                                                                                       1649.7 KiB   395 KiB/s 00:04 [##########################################################################] 100%
 community                                                                                      5.3 MiB   276 KiB/s 00:20 [##########################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (53) archlinux-keyring-20210110-1  audit-3.0-1  bash-5.1.004-1  bzip2-1.0.8-4  ca-certificates-mozilla-3.61-1  curl-7.74.0-1  expat-2.2.10-2  filesystem-2021.01.19-1  gcc-libs-10.2.0-4
              gdbm-1.19-1  glib2-2.66.4-2  glibc-2.32-5  gmp-6.2.1-1  gnupg-2.2.27-1  gnutls-3.7.0-1  gpgme-1.15.1-1  iana-etc-20201229-1  iptables-1:1.8.7-1  kmod-28-1  krb5-1.18.3-1  less-563-1
              libarchive-3.5.1-1  libassuan-2.5.4-1  libcap-2.47-1  libcap-ng-0.8.2-1  libelf-0.182-1  libffi-3.3-4  libgcrypt-1.9.0-2  libgpg-error-1.41-1  libldap-2.4.56-1  libnftnl-1.1.9-1
              libp11-kit-0.23.22-1  libpcap-1.10.0-1  libseccomp-2.5.1-2  libsecret-0.20.4-1  libtirpc-1.3.1-1  libunistring-0.9.10-3  libusb-1.0.24-2  lz4-1:1.9.3-1  nettle-3.7-1  openssl-1.1.1.i-2
              p11-kit-0.23.22-1  pacman-mirrorlist-20210110-1  pam-1.5.1-1  pcre2-10.36-1  readline-8.1.0-2  sqlite-3.34.1-1  systemd-247.2-1  systemd-libs-247.2-1  tzdata-2021a-1  util-linux-2.36.1-4
              util-linux-libs-2.36.1-4  zstd-1.4.8-1

Total Download Size:    80.01 MiB
Total Installed Size:  342.18 MiB
Net Upgrade Size:        0.35 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 archlinux-keyring-20210110-1-any                                                             950.2 KiB   367 KiB/s 00:03 [##########################################################################] 100%
 tzdata-2021a-1-x86_64                                                                        386.1 KiB   180 KiB/s 00:02 [##########################################################################] 100%
 iana-etc-20201229-1-any                                                                      390.9 KiB   459 KiB/s 00:01 [##########################################################################] 100%
 filesystem-2021.01.19-1-x86_64                                                                30.4 KiB   223 KiB/s 00:00 [##########################################################################] 100%
 glibc-2.32-5-x86_64                                                                            9.8 MiB   381 KiB/s 00:26 [##########################################################################] 100%
 gcc-libs-10.2.0-4-x86_64                                                                      31.5 MiB   370 KiB/s 01:27 [##########################################################################] 100%
 readline-8.1.0-2-x86_64                                                                      319.1 KiB   382 KiB/s 00:01 [##########################################################################] 100%
 bash-5.1.004-1-x86_64                                                                       1692.4 KiB   555 KiB/s 00:03 [##########################################################################] 100%
 util-linux-libs-2.36.1-4-x86_64                                                              414.2 KiB   275 KiB/s 00:02 [##########################################################################] 100%
 openssl-1.1.1.i-2-x86_64                                                                       3.6 MiB   611 KiB/s 00:06 [##########################################################################] 100%
 libldap-2.4.56-1-x86_64                                                                      304.5 KiB   351 KiB/s 00:01 [##########################################################################] 100%
 krb5-1.18.3-1-x86_64                                                                        1332.3 KiB   542 KiB/s 00:02 [##########################################################################] 100%
 libcap-ng-0.8.2-1-x86_64                                                                      41.4 KiB   138 KiB/s 00:00 [##########################################################################] 100%
 audit-3.0-1-x86_64                                                                           372.9 KiB   316 KiB/s 00:01 [##########################################################################] 100%
 bzip2-1.0.8-4-x86_64                                                                          57.2 KiB   217 KiB/s 00:00 [##########################################################################] 100%
 libffi-3.3-4-x86_64                                                                           44.0 KiB   164 KiB/s 00:00 [##########################################################################] 100%
 libp11-kit-0.23.22-1-x86_64                                                                  494.0 KiB   459 KiB/s 00:01 [##########################################################################] 100%
 lz4-1:1.9.3-1-x86_64                                                                         123.0 KiB   214 KiB/s 00:01 [##########################################################################] 100%
 zstd-1.4.8-1-x86_64                                                                          778.7 KiB   538 KiB/s 00:01 [##########################################################################] 100%
 libgpg-error-1.41-1-x86_64                                                                   233.0 KiB   337 KiB/s 00:01 [##########################################################################] 100%
 libgcrypt-1.9.0-2-x86_64                                                                     572.4 KiB   379 KiB/s 00:02 [##########################################################################] 100%
 libtirpc-1.3.1-1-x86_64                                                                      176.9 KiB   223 KiB/s 00:01 [##########################################################################] 100%
 pam-1.5.1-1-x86_64                                                                           567.4 KiB   416 KiB/s 00:01 [##########################################################################] 100%
 libcap-2.47-1-x86_64                                                                          60.3 KiB   184 KiB/s 00:00 [##########################################################################] 100%
 systemd-libs-247.2-1-x86_64                                                                  500.5 KiB   364 KiB/s 00:01 [##########################################################################] 100%
 gmp-6.2.1-1-x86_64                                                                           438.4 KiB   237 KiB/s 00:02 [##########################################################################] 100%
 p11-kit-0.23.22-1-x86_64                                                                     143.5 KiB   235 KiB/s 00:01 [##########################################################################] 100%
 ca-certificates-mozilla-3.61-1-x86_64                                                        316.1 KiB   302 KiB/s 00:01 [##########################################################################] 100%
 libunistring-0.9.10-3-x86_64                                                                 634.1 KiB   485 KiB/s 00:01 [##########################################################################] 100%
 curl-7.74.0-1-x86_64                                                                        1075.7 KiB   485 KiB/s 00:02 [##########################################################################] 100%
 expat-2.2.10-2-x86_64                                                                        107.8 KiB   188 KiB/s 00:01 [##########################################################################] 100%
 gdbm-1.19-1-x86_64                                                                           179.3 KiB   244 KiB/s 00:01 [##########################################################################] 100%
 glib2-2.66.4-2-x86_64                                                                          2.8 MiB   335 KiB/s 00:09 [##########################################################################] 100%
 libassuan-2.5.4-1-x86_64                                                                      87.4 KiB   214 KiB/s 00:00 [##########################################################################] 100%
 nettle-3.7-1-x86_64                                                                          431.4 KiB   304 KiB/s 00:01 [##########################################################################] 100%
 gnutls-3.7.0-1-x86_64                                                                          2.9 MiB   252 KiB/s 00:12 [##########################################################################] 100%
 sqlite-3.34.1-1-x86_64                                                                      1727.8 KiB   459 KiB/s 00:04 [##########################################################################] 100%
 libsecret-0.20.4-1-x86_64                                                                    238.6 KiB   279 KiB/s 00:01 [##########################################################################] 100%
 gnupg-2.2.27-1-x86_64                                                                          2.4 MiB   254 KiB/s 00:10 [##########################################################################] 100%
 gpgme-1.15.1-1-x86_64                                                                        448.7 KiB   325 KiB/s 00:01 [##########################################################################] 100%
 libnftnl-1.1.9-1-x86_64                                                                       72.0 KiB   180 KiB/s 00:00 [##########################################################################] 100%
 libpcap-1.10.0-1-x86_64                                                                      280.6 KiB   270 KiB/s 00:01 [##########################################################################] 100%
 iptables-1:1.8.7-1-x86_64                                                                    433.0 KiB   175 KiB/s 00:02 [##########################################################################] 100%
 kmod-28-1-x86_64                                                                             105.6 KiB   187 KiB/s 00:01 [##########################################################################] 100%
 less-563-1-x86_64                                                                            109.7 KiB   254 KiB/s 00:00 [##########################################################################] 100%
 libarchive-3.5.1-1-x86_64                                                                    507.3 KiB   347 KiB/s 00:01 [##########################################################################] 100%
 libelf-0.182-1-x86_64                                                                        450.6 KiB   119 KiB/s 00:04 [##########################################################################] 100%
 libseccomp-2.5.1-2-x86_64                                                                     90.2 KiB   205 KiB/s 00:00 [##########################################################################] 100%
 libusb-1.0.24-2-x86_64                                                                        70.6 KiB   238 KiB/s 00:00 [##########################################################################] 100%
 pacman-mirrorlist-20210110-1-any                                                               6.5 KiB  1636 KiB/s 00:00 [##########################################################################] 100%
 pcre2-10.36-1-x86_64                                                                        1114.2 KiB   483 KiB/s 00:02 [##########################################################################] 100%
 util-linux-2.36.1-4-x86_64                                                                     2.5 MiB   305 KiB/s 00:08 [##########################################################################] 100%
 systemd-247.2-1-x86_64                                                                         6.1 MiB   318 KiB/s 00:20 [##########################################################################] 100%
(53/53) checking keys in keyring                                                                                          [##########################################################################] 100%
(53/53) checking package integrity                                                                                        [##########################################################################] 100%
(53/53) loading package files                                                                                             [##########################################################################] 100%
(53/53) checking for file conflicts                                                                                       [##########################################################################] 100%
(53/53) checking available disk space                                                                                     [##########################################################################] 100%
:: Processing package changes...
( 1/53) upgrading archlinux-keyring                                                                                       [##########################################################################] 100%
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signing key D8AFDDA07A5B6EDFA7D8CCDAD6D055F927843F1C...
==> ERROR: D8AFDDA07A5B6EDFA7D8CCDAD6D055F927843F1C could not be locally signed.
  -> Locally signing key DDB867B92AA789C165EEFA799B729B06A680C281...
==> ERROR: DDB867B92AA789C165EEFA799B729B06A680C281 could not be locally signed.
  -> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
==> ERROR: 91FFE0700E80619CEB73235CA88E23E377514E00 could not be locally signed.
  -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
==> ERROR: 0E8B644079F599DFC1DDC3973348882F6AC6A4C2 could not be locally signed.
  -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
==> ERROR: AB19265E5D7D20687D303246BA1DFB64FFF979E7 could not be locally signed.
( 2/53) upgrading tzdata                                                                                                  [##########################################################################] 100%
( 3/53) upgrading iana-etc                                                                                                [##########################################################################] 100%
( 4/53) upgrading filesystem                                                                                              [##########################################################################] 100%
( 5/53) upgrading glibc                                                                                                   [##########################################################################] 100%
Generating locales...
  en_US.UTF-8... done
Generation complete.
( 6/53) upgrading gcc-libs                                                                                                [##########################################################################] 100%
( 7/53) upgrading readline                                                                                                [##########################################################################] 100%
( 8/53) upgrading bash                                                                                                    [##########################################################################] 100%
( 9/53) upgrading util-linux-libs                                                                                         [##########################################################################] 100%
(10/53) upgrading openssl                                                                                                 [##########################################################################] 100%
New optional dependencies for openssl
    perl [installed]
(11/53) upgrading libldap                                                                                                 [##########################################################################] 100%
(12/53) upgrading krb5                                                                                                    [##########################################################################] 100%
(13/53) upgrading libcap-ng                                                                                               [##########################################################################] 100%
(14/53) upgrading audit                                                                                                   [##########################################################################] 100%
(15/53) upgrading bzip2                                                                                                   [##########################################################################] 100%
(16/53) upgrading libffi                                                                                                  [##########################################################################] 100%
(17/53) upgrading libp11-kit                                                                                              [##########################################################################] 100%
(18/53) upgrading lz4                                                                                                     [##########################################################################] 100%
(19/53) upgrading zstd                                                                                                    [##########################################################################] 100%
(20/53) upgrading libgpg-error                                                                                            [##########################################################################] 100%
(21/53) upgrading libgcrypt                                                                                               [##########################################################################] 100%
(22/53) upgrading libtirpc                                                                                                [##########################################################################] 100%
(23/53) upgrading pam                                                                                                     [##########################################################################] 100%
(24/53) upgrading libcap                                                                                                  [##########################################################################] 100%
(25/53) upgrading systemd-libs                                                                                            [##########################################################################] 100%
(26/53) upgrading gmp                                                                                                     [##########################################################################] 100%
(27/53) upgrading p11-kit                                                                                                 [##########################################################################] 100%
(28/53) upgrading ca-certificates-mozilla                                                                                 [##########################################################################] 100%
(29/53) upgrading libunistring                                                                                            [##########################################################################] 100%
(30/53) upgrading curl                                                                                                    [##########################################################################] 100%
(31/53) upgrading expat                                                                                                   [##########################################################################] 100%
(32/53) upgrading gdbm                                                                                                    [##########################################################################] 100%
(33/53) upgrading glib2                                                                                                   [##########################################################################] 100%
(34/53) upgrading libassuan                                                                                               [##########################################################################] 100%
(35/53) upgrading nettle                                                                                                  [##########################################################################] 100%
(36/53) upgrading gnutls                                                                                                  [##########################################################################] 100%
(37/53) upgrading sqlite                                                                                                  [##########################################################################] 100%
(38/53) upgrading libsecret                                                                                               [##########################################################################] 100%
(39/53) upgrading gnupg                                                                                                   [##########################################################################] 100%
(40/53) upgrading gpgme                                                                                                   [##########################################################################] 100%
(41/53) upgrading libnftnl                                                                                                [##########################################################################] 100%
(42/53) upgrading libpcap                                                                                                 [##########################################################################] 100%
(43/53) upgrading iptables                                                                                                [##########################################################################] 100%
(44/53) upgrading kmod                                                                                                    [##########################################################################] 100%
(45/53) upgrading less                                                                                                    [##########################################################################] 100%
(46/53) upgrading libarchive                                                                                              [##########################################################################] 100%
(47/53) upgrading libelf                                                                                                  [##########################################################################] 100%
(48/53) upgrading libseccomp                                                                                              [##########################################################################] 100%
(49/53) upgrading libusb                                                                                                  [##########################################################################] 100%
(50/53) upgrading pacman-mirrorlist                                                                                       [##########################################################################] 100%
warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
(51/53) upgrading pcre2                                                                                                   [##########################################################################] 100%
(52/53) upgrading util-linux                                                                                              [##########################################################################] 100%
(53/53) upgrading systemd                                                                                                 [##########################################################################] 100%
warning: /etc/systemd/homed.conf installed as /etc/systemd/homed.conf.pacnew
:: Running post-transaction hooks...
( 1/11) Creating system user accounts...
( 2/11) Updating journal message catalog...
( 3/11) Reloading system manager configuration...
  Skipped: Current root is not booted.
( 4/11) Updating udev hardware database...
( 5/11) Applying kernel sysctl settings...
  Skipped: Current root is not booted.
( 6/11) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
( 7/11) Reloading device manager configuration...
  Skipped: Device manager is not running.
( 8/11) Arming ConditionNeedsUpdate...
( 9/11) Rebuilding certificate stores...
(10/11) Reloading system bus configuration...
  Skipped: Current root is not booted.
(11/11) Cleaning up package cache...
[root@3974009933fe /]# pacman -S wget
resolving dependencies...
looking for conflicting packages...

Packages (1) wget-1.21.1-1

Total Download Size:   0.72 MiB
Total Installed Size:  2.99 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 wget-1.21.1-1-x86_64                                                                         740.9 KiB   428 KiB/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) installing wget                                                                                                     [##########################################################################] 100%
Optional dependencies for wget
    ca-certificates: HTTPS downloads [installed]
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Cleaning up package cache...
[root@3974009933fe /]# wget https://tug.org
--2021-01-26 16:52:38--  https://tug.org/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving tug.org (tug.org)... 94.23.251.76
Connecting to tug.org (tug.org)|94.23.251.76|:443... connected.
ERROR: The certificate of ‘tug.org’ is not trusted.
ERROR: The certificate of ‘tug.org’ doesn't have a known issuer.
[root@3974009933fe /]# curl https://tug.org -vo file
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 94.23.251.76:443...
* Connected to tug.org (94.23.251.76) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [108 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [4289 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [589 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=tug.org
*  start date: Dec  3 02:52:23 2020 GMT
*  expire date: Mar  3 02:52:23 2021 GMT
*  subjectAltName: host "tug.org" matched cert's "tug.org"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
} [5 bytes data]
> GET / HTTP/1.1
> Host: tug.org
> User-Agent: curl/7.74.0
> Accept: */*
> 
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Tue, 26 Jan 2021 16:54:02 GMT
< Server: Apache/2.4.46 (Unix) OpenSSL/1.0.2k-fips
< Accept-Ranges: bytes
< Transfer-Encoding: chunked
< Content-Type: text/html
< 
{ [6 bytes data]
100 17143    0 17143    0     0  91186      0 --:--:-- --:--:-- --:--:-- 91186
* Connection #0 to host tug.org left intact

Below you can see that wget seems to work fine if I don't upgrade all packages first:

[root@6c66c3ae9002 /]# pacman -Sy
:: Synchronizing package databases...
 core                                                                                         134.3 KiB   249 KiB/s 00:01 [##########################################################################] 100%
 extra                                                                                       1649.7 KiB   456 KiB/s 00:04 [##########################################################################] 100%
 community                                                                                      5.3 MiB   887 KiB/s 00:06 [##########################################################################] 100%
[root@6c66c3ae9002 /]# pacman -S wget
resolving dependencies...
looking for conflicting packages...

Packages (1) wget-1.21.1-1

Total Download Size:   0.72 MiB
Total Installed Size:  2.99 MiB

:: Proceed with installation? [Y/n] Y 
:: Retrieving packages...
 wget-1.21.1-1-x86_64                                                                         740.9 KiB   260 KiB/s 00:03 [##########################################################################] 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) installing wget                                                                                                     [##########################################################################] 100%
Optional dependencies for wget
    ca-certificates: HTTPS downloads [installed]
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Cleaning up package cache...
[root@6c66c3ae9002 /]# wget https://tug.org
--2021-01-26 16:57:41--  https://tug.org/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving tug.org (tug.org)... 94.23.251.76
Connecting to tug.org (tug.org)|94.23.251.76|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html                                             [ <=>                                                                                                            ]  16.74K  --.-KB/s    in 0.04s   

2021-01-26 16:57:41 (465 KB/s) - ‘index.html’ saved [17143]

Offline

#2 2021-01-26 18:20:22

loqs
Member
Registered: 2014-03-06
Posts: 19,025

Re: wget certificate problems after pacman -Syu

Offline

#3 2021-01-26 20:37:39

ibreatheair
Member
Registered: 2021-01-26
Posts: 2

Re: wget certificate problems after pacman -Syu

This seems to be the problem, thank you! As a workaround I put

IgnorePkg = gnutls

into /etc/pacman.conf

Offline

Board footer

Powered by FluxBB