Fix Curl SSL Certificate Error Preventing Yaourt Installation
I recently encountered a problem while trying to install yaourt on Arch Linux. The problem caused a failure while downloading yaourt, with an error message stating:
curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none ==> ERROR: Failure while downloading https://github.com/archlinuxfr/yaourt/releases/download/1.8.1/yaourt-1.8.1.tar.xz Aborting...
After searching around online, I found the fix on the Arch Linux forum.
- Remove the incorrect ca-certificate.crt file:
sudo rm /etc/ssl/certs/ca-certificate.crt
- Manually link the ca-bundle.trust.crt to the expected location:
sudo ln -s /etc/ca-certificates/extracted/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt