Re: certificate errors when downloading (Was: reg. Failed: phase compiling: gcc5-5.5.0-3 failed)

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 4/23/22 1:48 PM, Saleh Elmohamed wrote:
> Hi guys,
> 
> Just tried to update fink on this old mac but unfortunately the
> updating failed due to:
> Downloading the file "fftw-3.3.10.tar.gz" failed...
> as shown in the log text below.
> 
> Would appreciate any suggestions or thoughts on how
> to go about fixing this problem. Thank you.
> 
> -Saleh
> 
> ========================================================
> 
> Saleh$ fink selfupdate
> 
> ERROR: Downloading packages from the binary distribution is currently only
> possible
> if Fink is installed at '/opt/sw'.
> Default answer will be chosen in 60 seconds...
> Continue with the 'UseBinaryDist' option temporarily disabled? [Y/n]
> /usr/bin/rsync -az -q  rsync://
> distfiles.master.finkmirrors.net/finkinfo//TIMESTAMP /sw/fink/TIMESTAMP.tmp
> I will now run the rsync command to retrieve the latest package
> descriptions.
> /usr/bin/rsync -rtz --delete-after --delete -q   --include='10.9-libcxx/'
> --include='10.9-libcxx/stable/' --include='10.9-libcxx/stable/main/'
> --include='10.9-libcxx/stable/main/finkinfo/'
> --include='10.9-libcxx/stable/main/finkinfo/*/'
> --include='10.9-libcxx/stable/main/finkinfo/*'
> --include='10.9-libcxx/stable/main/finkinfo/**/*' --include='VERSION'
> --include='DISTRIBUTION' --include='README' --exclude='**' 'rsync://
> distfiles.master.finkmirrors.net/finkinfo' '/sw/fink/'
> Scanning package description files..........
> Information about 18290 packages read in 3 seconds.
> No packages to install.
> 
> The core packages have been updated. You should now update the other
> packages using commands like 'fink
> update-all'.
> 
> 
> Saleh$ fink update-all
> 
> ERROR: Downloading packages from the binary distribution is currently only
> possible
> if Fink is installed at '/opt/sw'.
> Default answer will be chosen in 60 seconds...
> Continue with the 'UseBinaryDist' option temporarily disabled? [Y/n]
> Information about 18290 packages read in 23 seconds.
> The following 158 packages will be installed or updated:
>   arpack-ng arpack-ng-shlibs auctex autoconf2.6 autogen autogen-dev
> autogen-shlibs bison expat1
>   expat1-shlibs fftw3 fftw3-shlibs fig2dev fink-buildenv-modules
> fink-package-precedence freeglut2
>   freeglut2-shlibs fribidi-dev fribidi-shlibs gawk gcc5-compiler gcc5-shlibs
> gcc6-compiler gcc6-shlibs
>   gcc7-shlibs gcc8-shlibs gcc9-compiler gcc9-shlibs gd3 gd3-bin gd3-shlibs
> gdbm4 gdbm4-shlibs
>   graphicsmagick1322-dev graphicsmagick1322-shlibs gstreamer-0.10
> gstreamer-0.10-dev
>   gstreamer-0.10-shlibs hdf5.9 hdf5.9-bin hdf5.9-shlibs
> imagemagick6.9.q16-common imlib2 imlib2-shlibs
>   info intltool40 kpathsea libcurl4 libcurl4-shlibs libemf libemf-shlibs
> libgcrypt20 libgcrypt20-shlibs
>   libgpg-error libgpg-error-shlibs libharfbuzz0-dev libharfbuzz0-shlibs
> libheif1-dev libheif1-shlibs
>   libidn libidn-shlibs libidn2.0-shlibs libimagequant0 libimagequant0-shlibs
> libjpeg-bin libjpeg9
>   libjpeg9-shlibs libkpathsea6 libkpathsea6-shlibs libmagick++6.9.q16.6-dev
> libmagick++6.9.q16.6-shlibs
>   libmagickcore6.9.q16.2-dev libmagickcore6.9.q16.2-shlibs
> libmagickwand6.9.q16.2-dev
>   libmagickwand6.9.q16.2-shlibs libopenjp2.7 libopenjp2.7-shlibs libpcre1
> libpcre1-shlibs libraqm0-dev
>   libraqm0-shlibs libtasn1-6-dev libtasn1-6-shlibs libtheora0
> libtheora0-shlibs libtheoradec1-shlibs
>   libtheoraenc1-shlibs libtiff-bin libtiff5 libtiff5-shlibs libtool2
> libtool2-shlibs libunistring2
>   libunistring2-shlibs libwebp7 libwebp7-shlibs libx265.79-dev
> libx265.79-shlibs libxml2-py27 libzip2
>   libzip2-shlibs libzstd1-dev libzstd1-shlibs locale-textdomain-pm5182
> module-build-pm nasm netpbm-bin
>   netpbm11-shlibs ocaml openldap24-dev openldap24-shlibs openssl100-shlibs
> openssl110-dev
>   openssl110-shlibs perl5162-core po4a poppler-data poppler46-shlibs
> poppler8-glib poppler8-glib-shlibs
>   preview-latex pstoedit-bin pstoedit-shlibs ptexenc1 ptexenc1-shlibs
> python27 python27-shlibs
>   qhull6.3.1-dev qhull6.3.1-shlibs qrupdate qrupdate-shlibs qt5-mac-linguist
> qt5-mac-qcocoa-plugin
>   qt5-mac-qtbase qt5-mac-qtbase-dev-tools qt5-mac-qtconcurrent-shlibs
> qt5-mac-qtcore-shlibs
>   qt5-mac-qtdbus-shlibs qt5-mac-qtgui-shlibs qt5-mac-qtnetwork-shlibs
> qt5-mac-qtopengl-shlibs
>   qt5-mac-qtprintsupport-shlibs qt5-mac-qtsql-shlibs qt5-mac-qttest-shlibs
> qt5-mac-qtwidgets-shlibs
>   qt5-mac-qtxml-shlibs readline6-shlibs readline7-shlibs readline8
> readline8-shlibs sqlite3-dev
>   sqlite3-shlibs teckit-dev teckit-shlibs texinfo texlive-nox-base
> texlive-texmf xinitrc
> The following 59 additional packages will be installed:
>   fink-obsolete-packages gcc11-compiler gcc11-shlibs glew2.2 glew2.2-shlibs
> gnulib gsasl9-dev
>   gsasl9-shlibs guile22 guile22-dev guile22-libs guile22-shlibs gyp-py27
> ilmbase24-dev ilmbase24-shlibs
>   imagemagick7.q16-common isl2 isl22 isl22-shlibs libmagick++7.q16.5-dev
> libmagick++7.q16.5-shlibs
>   libmagickcore7.q16.9-dev libmagickcore7.q16.9-shlibs
> libmagickwand7.q16.9-dev
>   libmagickwand7.q16.9-shlibs libmpfr6 libnss3 libnss3-shlibs
> libopenexr24-dev libopenexr24-shlibs
>   libopenjpeg1 libpotrace0 libpotrace0-shlibs libraw20-dev libraw20-shlibs
> libwoff2-1.0.2-dev
>   libwoff2-1.0.2-shlibs libxxhash0-dev libxxhash0-shlibs ninja nspr.0e
> nspr.0e-shlibs poppler63
>   poppler63-shlibs qt5-mac-qtdeclarative qt5-mac-qtlocation
> qt5-mac-qtlocation-shlibs
>   qt5-mac-qtpositioning-shlibs qt5-mac-qtqml-shlibs qt5-mac-qtquick-shlibs
>   qt5-mac-qtquickparticles-shlibs qt5-mac-qtquicktest-shlibs
> qt5-mac-qtquickwidgets-shlibs
>   qt5-mac-qtsql-sqlite-plugins qt5-mac-qtxmlpatterns
> qt5-mac-qtxmlpatterns-shlibs re2c
>   setuptools-tng-py27 szip
> The following 5 packages might be temporarily removed:
>   freeglut2 gd3 libjpeg9 lua53-dev openldap24-dev
> Default answer will be chosen in 60 seconds...
> Do you want to continue? [Y/n]
> curl --connect-timeout 30 -f -L -A 'fink/0.45.6' -O
> http://distfiles.master.finkmirrors.net/distfiles/fftw-3.3.10.tar.gz
>    % Total    % Received % Xferd  Average Speed   Time    Time     Time
>   Current
>                                   Dload  Upload   Total   Spent    Left
>   Speed
> 100   277  100   277    0     0   1745      0 --:--:-- --:--:-- --:--:--
>   1753
>    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
>    0
> curl: (60) SSL certificate problem: certificate has expired
> More details here: https://curl.haxx.se/docs/sslcerts.html
> 
> curl performs SSL certificate verification by default, using a "bundle"
>   of Certificate Authority (CA) public keys (CA certs). If the default
>   bundle file isn't adequate, you can specify an alternate file
>   using the --cacert option.
> If this HTTPS server uses a certificate signed by a CA represented in
>   the bundle, the certificate verification probably failed due to a
>   problem with the certificate (it might be expired, or the name might
>   not match the domain name in the URL).
> If you'd like to turn off curl's verification of the certificate, use
>   the -k (or --insecure) option.
> HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
> ### execution of curl failed, exit code 60
> Downloading the file "fftw-3.3.10.tar.gz" failed.
> 
> (1) Give up
> (2) Retry the same mirror
> (3) Retry another mirror from your continent
> (4) Retry another mirror
> (5) Retry using original source URL

Does this work if you first install the package `ca-certificates` ? 
Because you need a working curl to download things, manually download 
the file

http://distfiles.master.finkmirrors.net/distfiles/ca-certificates_20210119.tar.xz

and save it to /sw/src (assuming Fink's root is /sw). Then run `fink 
install ca-certificates`

Once ca-certificates is installed, curl should work again.

Hanspeter
-- 
I'm not a robot like you. I don't like having disks crammed into me...
unless they're Oreos, and then only in the mouth. -- Fry



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.