xiliang
(Frank Liang)
March 8, 2023, 2:26am
1
The error looks like below, I guess the main reason is “Opening repository primary data has failed: No such file or directory.” Any idea about this error?
dnf -v update
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, system-upgrade, uploadprofile
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
DNF version: 4.14.0
cachedir: /var/cache/dnf
User-Agent: constructed: ‘libdnf (Fedora Linux 37; workstation; Linux.x86_64)’
repo: using cache for: fedora-cisco-openh264
fedora-cisco-openh264: using metadata from Thu 06 Oct 2022 19:01:40 CST.
countme: no event for fedora-modular: window already counted
Fedora Modular 37 - x86_64 6.6 kB/s | 5.4 kB 00:00
reviving: ‘fedora-modular’ can be revived - metalink checksums match.
loading repo ‘fedora-modular’ failure: Opening repository primary data has failed: No such file or directory
Error: Loading repository ‘fedora-modular’ has failed
Try to refresh your dnf cache with:
dnf -v update --refresh
xiliang
(Frank Liang)
March 8, 2023, 3:26am
3
Thanks, tried and still failed. Below discussion solved my problem.
The history is very long, the answer is short for my problem.
Append “zchunk=false” to "/etc/dnf/dnf.conf ".
Here is my settings now:
[main]
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
zchunk=false
Refered link:
IME the easiest way to check for free space is to use df.
If / or /var is nearly full you could probably free up some space by using dnf clean all then retry the update.
Having /home on the same disk as / with btrfs means that if you download a lot you can easily fill up the drive with what you have in /home and take up the space needed for the OS. Btrfs shares space in the volume with all the subvolumes that exist there.
I see that you have a 3T drive as /dev/sdb but it does not appear to b…
Just a note beside your solution, to tune up your download speed (if your internet is fast enough!):
max_parallel_downloads=10
adding to your /etc/dnf/dnf.conf
vgaetera
(Vladislav Grigoryev)
March 8, 2023, 10:53am
5
Did you try cleaning the DNF cache before disabling that option?
sudo dnf clean all
xiliang
(Frank Liang)
March 8, 2023, 11:04am
6
Yes, did clean all and it did not work.
xiliang
(Frank Liang)
March 8, 2023, 11:08am
7
Thanks, got another tip from the thread, cheers!