Interesting failure updating F42 from the commandline. After a lot of searching through the Fedora Forum and reading several posts (multiple different releases) on the subject Curl “failed to read data from mirrors…” and “failed to write data…”; I found one post which led to my issue and a fix.
It turns out the issue is related to a disk full error, since Fedora and Redhat uses tmpfs /tmp to store the mirror data. The “curl error” is really disk full indication.
$df -h /tmp
to see available tmp storage.
The usual suggestions to:
sudo dnf clean all
sudo dnf update --refresh
or modification of /etc/yum.repos.d/fedora.repo
had no effect.
Rebooting would’ve fixed the tmp storage issue, too. The errant file on my system was a 4G file that somehow wound up in /tmp.
My system now:
df -Th /tmp
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 3.8G 3.7M 3.8G 1% /tmp