Page 1 of 1

[SOLVED] dnf synchronize cache fails

PostPosted: Apr 13th, '21, 10:05
by magfan
How can I force dnf to synchronize the cache for the repos? Or is it possible to create a new cache?

Code: Select all
# dnf update --refresh
Mageia 7 - x86_64 - Nonfree                                                                                                                             0.0  B/s |   0  B     00:04   
Failed to synchronize cache for repo 'mageia-x86_64-nonfree'
Mageia 7 - x86_64 - Nonfree - Updates                                                                                                                   0.0  B/s |   0  B     00:04   
Failed to synchronize cache for repo 'updates-x86_64-nonfree'
Schnellster Mirror wird ermittelt (1 Hosts).. done.                          [      ===                                                               ] ---  B/s |   0  B     --:-- ETA
Mageia 7 - x86_64                                                                                                                                       0.0  B/s |   0  B     02:18   
Failed to synchronize cache for repo 'mageia-x86_64'
Mageia 7 - x86_64 - Updates                                                                                                                             0.0  B/s |   0  B     01:57   
Failed to synchronize cache for repo 'updates-x86_64'
Ignoring repositories: mageia-x86_64-nonfree, updates-x86_64-nonfree, mageia-x86_64, updates-x86_64
Abhängigkeiten sind aufgelöst.
Nichts zu tun.
Fertig.
#


Code: Select all
# cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
proxy=xxxx:80
proxy_username=yyyy
proxy_password=zzzz
sslverify=false
fastestmirror=true
zchunk=false
#

Re: dnf synchronize cache fails

PostPosted: Apr 13th, '21, 18:17
by doktor5000
What's the output of
Code: Select all
dnf -v makecache

[SOLVED] Re: dnf synchronize cache fails

PostPosted: Apr 14th, '21, 19:39
by magfan
@doktor5000: Thank you! Now it is working. Additionally I had to increase the timeout to 60 sec.

Re: dnf synchronize cache fails

PostPosted: Apr 15th, '21, 09:33
by isadora
Please, don't forget to mark the topic [SOLVED].
You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)a