How Do You Troubleshoot Adding Red Hat Packages with Errors Like “Curl error (77): Problem with the SSL CA cert (path? access rights?)”?

Problem scenario
You try to run a DNF command, but you get stymied with errors like these:

Fedora 32 foobar (From SomeCompany) - x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'fedora-somecompany-foobar': - Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://mirrors.fedoraproject.org/metalink?repo=fedora-somecompany-foobar-32&arch=x86_64 [error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs]
Cannot prepare internal mirrorlist: Curl error (77): Problem with the SSL CA cert (path? access rights?)

How do you not get blocked by a problem like this?

Possible solution #1
Look at /etc/ssl/certs/ca-certificates.crt. Is it the right size? What are the permissions? Messing around with .so files and curl packages can involve accidentally deleting this file. Where can you one that you need? Run this: sudo find / -name ca-certificates.crt
Another valid one may be somewhere else on your machine.

Possible solution #2
Try to run the dnf command with sudo or as root.

Possible solution #3
Run this command (but substitute "somecompany-foobar" with what you saw in the original error message):
sudo dnf config-manager --set-disabled fedora-somecompany-foobar
Now try to run the command again.

Possible solution #4
Run a command like this:
sudo dnf -y install ca-certificates

Leave a comment

Your email address will not be published.