Bug 1257034
| Summary: | Failed to synchronize cache for repo 'fedora' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rei <rn0163> |
| Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | jsilhan, k.meena.genius, mluscon, packaging-team-maint, pnemade, rholy, rn0163, subodhpachghare, tim.lauridsen, tmlcoch, vmukhame |
| Target Milestone: | --- | Flags: | k.meena.genius:
needinfo+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-08-28 05:42:03 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rei
2015-08-26 06:42:46 UTC
It's because "fedora-$releasever" is not a valid fedora repo. The "$releasever" variable there is not properly expanded into your fedora version. Could you please run: $ rpm -q dnf librepo python-librepo and post here the output? Here it is: $ rpm -q dnf librepo python-librepo dnf-1.1.0-2.fc22.noarch package librepo is not installed package python-librepo is not installed What should be done in this case? Solved by installing librepo: $ dnf install librepo --releasever=22 I wonder how it was possible to had installed dnf without librepo because package dnf requires python-dnf and python-dnf requires python-librepo. Also I wonder if explicit specification of releasever by "--releasever=22" was necessary? The releasever should be auto-detected by dnf and if it isn't than it's probably a bug in dnf. Honzo, could you or someone from your team take a quick look on this? I don't think that it is possible to install dnf without librepo (using DNF). Also I believe that the output would not contain the librepo's output if it wasn't installed. Yes, the releasever should be auto-detected. I believe that there was no package which provides this information installed at that time. I believe that when the librepo was installed, it pulled in the package providing the information. It seems to me that the system in question was/is broken somehow. Looks like it missed a lot of packages. when i run this command $ rpm -q dnf librepo python-librepo i get this dnf-1.0.0-1.fc22.noarch librepo-1.7.13-1.fc22.x86_64 python-librepo-1.7.13-1.fc22.x86_64 but my fedora still show this error when i am updating and installing something Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-22&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-22&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org] could anyone please help. Just wanted to add some info, this behaviour also happens when DNS resolution is not working fine. I tried all methods to resolve before, clean cache, rebuild, etc. later on, found that DNS Server was not responding. Maybe, we need better error reporting from dnf. Thanks, Subodh Pachghare |