timlau / yumex-dnf-old

Next Generation of Yum Extender using DNF as backend
GNU General Public License v2.0
61 stars 17 forks source link

Better handling of repo error #164

Open timlau opened 3 years ago

timlau commented 3 years ago

g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.dnf.exceptions.RepoError: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/dnf/repo.py", line 574, in load ret = self._repo.load() File "/usr/lib64/python3.9/site-packages/libdnf/repo.py", line 331, in load return _repo.Repo_load(self) libdnf._error.Error: Failed to download metadata for repo 'updates': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib64/python3.9/site-packages/dbus/service.py", line 715, in _message_cb retval = candidate_method(self, *args, *keywords) File "/usr/lib/python3.9/site-packages/dnfdaemon/server/init.py", line 68, in newFunc rc = func(args, **kwargs) File "/usr/share/dnfdaemon/dnfdaemon-system", line 207, in SetConfig rc = self.set_option(setting, value) File "/usr/lib/python3.9/site-packages/dnfdaemon/server/init.py", line 764, in set_option if hasattr(self.base.conf, option): File "/usr/lib/python3.9/site-packages/dnfdaemon/server/init.py", line 205, in base self._get_base() File "/usr/lib/python3.9/site-packages/dnfdaemon/server/init.py", line 1139, in _get_base self._base.setup_base() File "/usr/lib/python3.9/site-packages/dnfdaemon/server/backend.py", line 125, in setup_base self.fill_sack() File "/usr/lib/python3.9/site-packages/dnf/base.py", line 399, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.9/site-packages/dnf/base.py", line 139, in _add_repo_to_sack repo.load() File "/usr/lib/python3.9/site-packages/dnf/repo.py", line 581, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to download metadata for repo 'updates': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f34&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org] (36)