dnf gets stuck on poor connections

Porfirio Andres Paiz Carrasco porfiriopaiz at gmail.com
Sat Nov 14 01:17:33 UTC 2015


2015-11-13 5:21 GMT-06:00 Suvayu Ali <fatkasuvayu+linux at gmail.com>:
> Hi,
>
> Lately I have been on unreliable connections.  I noticed that after I
> have my laptop running for a few days, dnf stops working.  Any dnf
> command hangs indefinitely.  I can get back to the shell again by
> killing the process with SIGKILL.  It seems to me this happens when the
> dnf-makecache service gets stuck.  I have tried restarting it, but it
> does not help.  Restarting the dnf-makecache timer does not help either.
> Of course all this goes away after a reboot.  But then that's not really
> a solution.
>
> Any ideas anyone?
>
I have faced this problem too, my internet connection is 512kbps, but
before dnf in the memorables yum days I never had this kind of
problems.

Did you added this lines to the dnf.conf configuration file?

keepcache=true # This config line adds the capability of keeping the
cache and the dowloaded packages on the cache if something got stuck
and you need to restart it without having to download the already
downloaded packages again.

deltarpm=true # This config line will retrieve delta rpm's packages
for download updates instead of downloading the full packages, it save
time and data if you are using 3G or LTE connections.

fastestmirror=true # This will force dnf to keep a cache of the most
efficience mirrors.

To add it:
su -c "echo 'keepcache=true' >> /etc/dnf/dnf.conf"
su -c "echo 'deltarpm=true' >> /etc/dnf/dnf.conf"
su -c "echo 'fastestmirror=true' >> /etc/dnf/dnf.conf"

I must confess that even adding this to my dnf.conf file sometimes the
problem back or appear.

Also there is a bug about dnf-make cache service, it tries to run on
the boot up, get stuck and if the user try to run a dnf update cause
this annoying problem.

https://bugzilla.redhat.com/show_bug.cgi?id=1187111

You may try this:
1. Kill the dnf-makecache process

2. Clean all the dnf cache:
su -c "dnf clean all"

3. And then make the cache:
su -c "dnf makecache"

If you are under a slow internet connection make sure that there is
not any other process that might drain your bandwidth.

> TIA,
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org


More information about the users mailing list