Ask Your Question

Why are updates and updates-debuginfo repos out of sync (fedora 26)

asked 2017-10-30 05:45:13 -0500

nikkej gravatar image

updated 2017-11-01 04:22:45 -0500

When dnf shows there are packages available for update I often find that debug infos for those packages are not. I.e. there can be even days between time stamps of packages updated and their respective debug info package. Below there's a partial output of dnf command in case where there is, according to metadata time stamps 23rd of Oct and 29th of Oct, almost one week of lag between content of updates and updates-debuginfo:

dnf upgrade --refresh --verbose --enablerepo=updates-debuginfo
Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repograph, repomanage, reposync, system-upgrade
DNF version: 2.7.5
cachedir: /var/cache/dnf
reviving: 'updates' can be revived - metalink checksums match.
not found deltainfo for: Fedora 26 - x86_64 - Updates
updates: using metadata from Sun 29 Oct 2017 04:43:24 PM EET.
reviving: 'updates-debuginfo' can be revived - metalink checksums match.
not found deltainfo for: Fedora 26 - x86_64 - Updates - Debug
not found updateinfo for: Fedora 26 - x86_64 - Updates - Debug
updates-debuginfo: using metadata from Mon 23 Oct 2017 07:44:20 PM EEST.
reviving: 'fedora' can be revived - metalink checksums match.
not found deltainfo for: Fedora 26 - x86_64
not found updateinfo for: Fedora 26 - x86_64
fedora: using metadata from Wed 05 Jul 2017 11:31:38 PM EEST.

Because of that, I often need to postpone upgrade until there are debug info packages I need for sw development, available. What I have found so far is that

dnf clean all && dnf makecache

does not change anything

Update by 1st of Nov: I looked forward and investigated real content of directories at mirror which is closest to me. What I found seems quite bizarre. Might this be even bug introduced by some mirroring infrastructure top level config? For reference, updates repo repodata directory which is good:

Index of /pub/mirrors/

 Icon   Name                                                  Last modified      Size  Description
 [DIR]  Parent Directory                                                        -
 [   ]  21cadb5f2ee7f037f...8f-primary.xml.gz                 30-Oct-2017 18:04  3.1M
 [   ]  63cff7903fddeae90...6e-primary.sqlite.bz2             30-Oct-2017 18:04  6.9M
 [   ]  282b0fdd6bd48baf6...0d-comps-Everything.x86_64.xml    30-Oct-2017 18:03  1.8M
 [   ]  95715c1618f07276b...9a-other.xml.gz                   30-Oct-2017 18:04  1.4M
 [   ]  373721a0d5be20ce4...f6-comps-Everything.x86_64.xml.gz 30-Oct-2017 18:04  443K
 [   ]  abbc90c416d9a5bcd...d2-updateinfo.xml.xz              30-Oct-2017 18:14  813K
 [   ]  ae67ff2628d300947...20-filelists.sqlite.bz2           30-Oct-2017 18:04   12M
 [   ]  de9f9748ba4cf2ba0...12-filelists.xml.gz               30-Oct-2017 18:04   12M
 [   ]  eabc77d8bd3004b61...9b-other.sqlite.bz2               30-Oct-2017 18:04  2.3M
 [   ]  repomd.xml                                            30-Oct-2017 18:14  4.3K

But then for debug infos:

Index of /pub/mirrors/

 Icon   Name                                       Last modified      Size  Description
 [DIR]  Parent Directory                                                -
 [DIR]  repodata/                                  01-Nov-2017 04:26    -
 [   ]  084314c0a9009d8f6...6b-primary.sqlite.xz   23-Oct-2017 19:44  365K
 [   ]  6c642cb77ee95f2df...aa-primary.xml.gz      23-Oct-2017 19:44  255K
 [   ]  724d1785d9f915c0a...39-other.sqlite.xz     23-Oct-2017 19:44  392K
 [   ]  873fe6487cd08c3f3...05-other.xml.gz        23-Oct-2017 19:44  421K
 [   ]  919a1614dba6ebc70...87-filelists.xml.gz    23-Oct-2017 19:44  4.6M
 [   ]  fe6afa8f63cdc34b2...0a-filelists.sqlite.xz 23-Oct-2017 19:44  4.2M
 [   ]  repomd.xml                                 23-Oct-2017 19:44  3 ...
edit retag flag offensive close merge delete


Change to another mirror. Does it behave differently? If so then contact your preferred mirror and tell them what you think is wrong.

Aeyoun gravatar imageAeyoun ( 2017-11-01 04:34:16 -0500 )edit

Hmm, how do I force mirror? Even wget seems to load content from when I point it to dnf base URL. Or maybe I take a list of mirrors and look if same bizarre directory structure applies to other mirrors as well

nikkej gravatar imagenikkej ( 2017-11-01 04:46:29 -0500 )edit

Ok, I did a quick look and this bizarre directory structure seems to repeat on those. Also, there were same pattern for fedora 25 but not for 27. I filed a bug report, let's see how it will be received

nikkej gravatar imagenikkej ( 2017-11-01 05:51:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-10-31 09:17:57 -0500

Aeyoun gravatar image

updated 2017-10-31 09:20:14 -0500

It may be your mirror. You could get updates from one mirror and updates-debuginfo from another mirror. All mirrors are not maintained/created equal. Even from the same mirror, the two repositories may be out of sync. Pick another mirror if you’re not happy with the one the system picked for you. My local mirror here in Norway is often several days behind bodhi, which sometimes even introduces dependency conflicts.

You can avoid mirrors and get updates straight from Fedora infrastructure with the bodhi-client. The Fedora Magazine recently ran an article explaining how to use it.

edit flag offensive delete link more


While I thank you very much providing good alternative to handle urgent updates, please see my latest edit. I think I found something bizarre related to directory structure of debug repodata

nikkej gravatar imagenikkej ( 2017-11-01 03:58:49 -0500 )edit

While reconsidering this whole thing, there clearly are two distinct problems here. I messed up and mixed those two. The very original and more common is related mirroring itself and how data is propagated and copied differently by different times due to network load, bandwidth, priorities etc. Aeyoun, your answer gives viable alternate method to solve issue. The other problem I found is totally different and just happens to exist right now, I think

nikkej gravatar imagenikkej ( 2017-11-02 03:29:28 -0500 )edit

Question Tools

1 follower


Asked: 2017-10-30 04:28:03 -0500

Seen: 156 times

Last updated: Nov 01 '17