SOLVED: Failed to synchronize cache for repo 'updates'

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

SOLVED: Failed to synchronize cache for repo 'updates'

Postby batoum » Wed Jul 07, 2021 8:27 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Failed to synchronize cache for repo 'updates'

Postby bigfoot65 » Wed Jul 07, 2021 5:22 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

Re: Failed to synchronize cache for repo 'updates'

Postby batoum » Sat Jul 10, 2021 5:51 am

hi
thanks. no configuration changes and it didn't work...

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Failed to synchronize cache for repo 'updates'

Postby cpg » Sat Jul 10, 2021 4:13 pm

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

Re: Failed to synchronize cache for repo 'updates'

Postby batoum » Sun Jul 11, 2021 2:18 am

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...

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

Re: Failed to synchronize cache for repo 'updates'

Postby batoum » Sun Jul 11, 2021 2:29 am

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?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Failed to synchronize cache for repo 'updates'

Postby cpg » Sun Jul 11, 2021 3:04 am

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

Re: Failed to synchronize cache for repo 'updates'

Postby batoum » Sun Jul 11, 2021 3:06 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Failed to synchronize cache for repo 'updates'

Postby bigfoot65 » Sun Jul 11, 2021 6:59 pm

That is correct for the amahi.repo file.

Did you get this sorted out?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

batoum
Posts: 49
Joined: Sun Oct 04, 2015 3:53 am

Re: Failed to synchronize cache for repo 'updates'

Postby batoum » Sun Aug 29, 2021 2:07 am

sorry for the late reply... i went away with work that took a lot longer than expected

yes -- it worked! Thank you!

Who is online

Users browsing this forum: No registered users and 14 guests