Yum could'n connect to host

The following error is not always what it looks like:

$ yum search glib
Plugin "product-id" can't be imported
Plugin "subscription-manager" can't be imported
Loaded plugins: refresh-packagekit, security [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repo. Please verify its path and try again

In this case I was running yum without being root.

Permalink. First published on Fri 16 December 2015.