Page 1 of 2

SOLVED: Failed to synchronize cache for repo 'updates'

Posted: Wed Jul 07, 2021 8:27 am
by batoum
Whenever I used yum or dnf, I get an error 'Failed to synchronize cache for repo 'updates''

The output of dnf --verbose update is as follows:

Code: Select all

Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repograph, repomanage, reposync DNF version: 2.7.5 cachedir: /var/cache/dnf repo: using cache for: amahi not found deltainfo for: Amahi repository for Fedora 27 not found updateinfo for: Amahi repository for Fedora 27 amahi: using metadata from Fri 14 May 2021 16:19:30 PDT. Cannot download 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-f27&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f27&arch=x86_64 [error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none]. Error: Failed to synchronize cache for repo 'updates'
ANy suggestions? I need to install openssl to create a private key. Thank you

Re: Failed to synchronize cache for repo 'updates'

Posted: Wed Jul 07, 2021 5:22 pm
by bigfoot65
Try

Code: Select all

sudo dnf clean all
Then try again.

Have you made any manual configuration changes recently?

That behavior indicates you don't have internet connection.

Also, openssl should be installed already with Amahi.

Re: Failed to synchronize cache for repo 'updates'

Posted: Sat Jul 10, 2021 5:51 am
by batoum
hi
thanks. no configuration changes and it didn't work...

Re: Failed to synchronize cache for repo 'updates'

Posted: Sat Jul 10, 2021 4:13 pm
by cpg
Maybe try to just upgrade the CA certs.

Code: Select all

dnf update ca-certificates
Though of course that may fail. If it does, perhaps we can find links for you that can be used for direct install.

Re: Failed to synchronize cache for repo 'updates'

Posted: Sun Jul 11, 2021 2:18 am
by batoum
that didnt work. I got this error message

Code: Select all

Amahi repository for Fedora 27 482 kB/s | 220 kB 00:00 Error: Failed to synchronize cache for repo 'updates'
I forgot to mention that I updated my SSL certificates, but that is it...

Re: Failed to synchronize cache for repo 'updates'

Posted: Sun Jul 11, 2021 2:29 am
by batoum
Shoot....

I forgot something.... When I re-installed my certificates from GoDaddy, I re-wrote my ca-bundle.crt file with the contents of another file. I think that is what is causing the break.

Is there a way i can get a new ca-bundle.crt file?

Re: Failed to synchronize cache for repo 'updates'

Posted: Sun Jul 11, 2021 3:04 am
by cpg
Yes, that will do it.

I packaged ca-bundle.crt and ca-bundletrust.crt in http://alpha.amahi.org/tmp/ca-bundle.zip in case you can use it. It's from a recent OS and I believe it may work.

Let us know.

Re: Failed to synchronize cache for repo 'updates'

Posted: Sun Jul 11, 2021 3:06 am
by batoum
One more thing... here is the contents of the amahi.repo file:

[amahi]
name=Amahi repository for Fedora

baseurl=http://f$releasever.amahi.org/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amahi

Re: Failed to synchronize cache for repo 'updates'

Posted: Sun Jul 11, 2021 6:59 pm
by bigfoot65
That is correct for the amahi.repo file.

Did you get this sorted out?

Re: Failed to synchronize cache for repo 'updates'

Posted: Sun Aug 29, 2021 2:07 am
by batoum
sorry for the late reply... i went away with work that took a lot longer than expected

yes -- it worked! Thank you!