OM repos 404 not found

That will work.

I did it, so now what?

Reboot
and try it

See if that works.

sudo dnf clean all ; sudo dnf dsync

Will show if the repos are working then install your package.

I am changing the thread title to what the issue this turned out to be, “OM repos 404 not found”.

For information for all users encountering something similar to this:

Edit: For @SilentRanger copying the .repo file I posted should work just fine, then after doing that use Sofware Repository Selector aka om-repo-picker to enable or disable which repos you wish to use. For other users you can get someone to post a working .repo file and copy that or you could do the following:

Download for your OMLx branch and arch, using ROME (rolling repository) x86_64 as the example here:

Download from here: https://abf-downloads.openmandriva.org/

Look for rolling if you use ROME or Rock if you use that and then your arch. Then navigate to the main release repo in this example here: Index of /rolling/repository/x86_64/main/release/

Find and download the .rpm for distro-release-repos in this example: https://abf-downloads.openmandriva.org/rolling/repository/x86_64/main/release/distro-release-repos-25.04-4-omv2504.x86_64.rpm

Then you want to back up your existing .repo file in this example:

cd /etc/yum.repos.d
ls
find your .repo file in this example we:
sudo mv openmandriva-rolling-x86_64.repo openmandriva-rolling-x86_64.repo.bak

So openmandriva-rolling-x86_64.repo.bak is the backed up file in case it is needed in the future. Then:

Navigate to the directory where you downloaded the distro-release-repos .rpm and install that in this case like this:

sudo dnf in distro-release-repos-25.04-4-omv2504.x86_64.rpm

and that should rewrite your .repo file to the latest version available. Then you can open Software Repository Selector aka: om-repo-picker and set which repos you wish enabled.

Note: If you use znver1 just change x86_64 to znver1 in the commands.

Note-2: Obviously this applies IF the problem is something incorrect in the actual .repo file. There are other possible reasons why one might see 404 not found. For instance if you happen to try a dnf transaction while packages are being published or when developers are copying packages from cooker to rolling this results in the repodata being rewritten which dnf sees as “404 Not found”. But this is just a matter of waiting a bit and trying again. Or some server might be down, this is not common but also not never.

Yeah it just works perfectly fine.

[mandrake@OpenMandrivaLx-Btw ~]$ sudo dnf clean all ; sudo dnf dsync
[sudo] password for mandrake: 
4 files removed
brave                                                                         191 kB/s |  49 kB     00:00    
OpenMandriva Rolling - x86_64                                                 916 kB/s | 5.5 MB     00:06    
OpenMandriva Rolling - Extra - x86_64                                         510 kB/s | 1.4 MB     00:02    
OpenMandriva Rolling - Restricted - x86_64                                     19 kB/s |  36 kB     00:01    
Dependencies resolved.
==============================================================================================================
 Package                              Architecture  Version            Repository                        Size
==============================================================================================================
Upgrading:
 dnfdrake                             noarch        5.0.3-1            rolling-x86_64                   311 k
 gstreamer-plugins-rs                 x86_64        1.26.0-100         rolling-x86_64-restricted         21 M
 gstreamer1.0-a52dec                  x86_64        1.26.0-100         rolling-x86_64-restricted         16 k
 gstreamer1.0-cdio                    x86_64        1.26.0-100         rolling-x86_64-restricted         15 k
 gstreamer1.0-gtk-wayland             x86_64        1.26.0-100         rolling-x86_64-restricted         25 k
 gstreamer1.0-mpeg                    x86_64        1.26.0-100         rolling-x86_64-restricted         20 k
 gstreamer1.0-plugins-bad             x86_64        1.26.0-100         rolling-x86_64-restricted        3.1 M
 gstreamer1.0-plugins-ugly            x86_64        1.26.0-100         rolling-x86_64-restricted        181 k
 gstreamer1.0-wayland                 x86_64        1.26.0-100         rolling-x86_64-restricted         20 k
 lib64gstadaptivedemux1.0_0           x86_64        1.26.0-100         rolling-x86_64-restricted         46 k
 lib64gstbadaudio1.0_0                x86_64        1.26.0-100         rolling-x86_64-restricted         30 k
 lib64gstbasecamerabinsrc1.0_0        x86_64        1.26.0-100         rolling-x86_64-restricted         17 k
 lib64gstcodecparsers1.0_0            x86_64        1.26.0-100         rolling-x86_64-restricted        289 k
 lib64gstcuda1.0_0                    x86_64        1.26.0-100         rolling-x86_64-restricted         60 k
 lib64gstinsertbin1.0_0               x86_64        1.26.0-100         rolling-x86_64-restricted         16 k
 lib64gstisoff1.0_0                   x86_64        1.26.0-100         rolling-x86_64-restricted         14 k
 lib64gstmpegts1.0_0                  x86_64        1.26.0-100         rolling-x86_64-restricted         74 k
 lib64gstphotography1.0_0             x86_64        1.26.0-100         rolling-x86_64-restricted         16 k
 lib64gstplayer1.0_0                  x86_64        1.26.0-100         rolling-x86_64-restricted         28 k
 lib64gstsctp1.0_0                    x86_64        1.26.0-100         rolling-x86_64-restricted         10 k
 lib64gsturidownloader1.0_0           x86_64        1.26.0-100         rolling-x86_64-restricted         17 k
 lib64gstvulkan1.0_0                  x86_64        1.26.0-100         rolling-x86_64-restricted        125 k
 lib64gstwayland1.0_0                 x86_64        1.26.0-100         rolling-x86_64-restricted         30 k
 lib64gstwebrtc1.0_0                  x86_64        1.26.0-100         rolling-x86_64-restricted         43 k
Installing dependencies:
 lib64de265                           x86_64        1.0.15-4           rolling-x86_64-restricted        249 k
 lib64fdk-aac                         x86_64        2.0.3-1            rolling-x86_64-restricted        732 k
 lib64vo-aacenc0                      x86_64        0.1.3-1            rolling-x86_64-restricted         71 k
 lib64vo-amrwbenc0                    x86_64        0.1.3-1            rolling-x86_64-restricted         70 k
 lib64vvdec                           x86_64        3.0.0-1            rolling-x86_64-restricted        585 k
 lib64x265                            x86_64        4.1-1              rolling-x86_64-restricted        658 k

Transaction Summary
==============================================================================================================
Install   6 Packages
Upgrade  24 Packages

Total download size: 28 M
Is this ok [y/N]:  

2 Likes

And also, finally, I have finally contributed into this project for once. My first achivement.

1 Like

No, we don’t update like APT at all. --refresh is a necessary part of the dsync process. The metadata will update after the stale period, but if a UM is occurring against ROME then you will get 404’s. In some cases, that is a good thing because you won’t install things that are either out of date or have already been fixed in the dependency chain. Being in the chat rooms is the best way to stay informed about that.

During an install, a --refresh isn’t completely necessary.

Aha, I see.

i do suppose it’s not om-welcome, as i’m getting the same exact error on gnome right now

i’m actually browsing the post to see if i can solve the issue myself :slight_smile:

OK, your system was working, so what changed?

i know it sounds weird, but i haven’t touched anything, i just threw up a dnf update on the terminal, but all i get is

OpenMandriva Rock - x86_64            5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-x86_64':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/main/release/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/main/release/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OpenMandriva Rock - x86_64 - Updates  5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-updates-x86_64':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/main/updates/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/main/updates/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-updates-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OpenMandriva Rock - x86_64 - Testing  5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-testing-x86_64':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/main/testing/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/main/testing/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-testing-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OpenMandriva Rock - Extra - x86_64    5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-x86_64-extra':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/extra/release/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/extra/release/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-x86_64-extra': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OpenMandriva Rock - Extra - x86_64 -  5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-updates-x86_64-extra':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/extra/updates/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/extra/updates/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-updates-x86_64-extra': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OpenMandriva Rock - Restricted - x86_ 5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-x86_64-restricted':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/restricted/release/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/restricted/release/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-x86_64-restricted': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
OpenMandriva Rock - Non-free - x86_64 5.2  B/s |  10  B     00:01    
Errors during downloading metadata for repository 'rock-x86_64-non-free':
  - Status code: 404 for http://mirror.openmandriva.org/rock/repository/x86_64/non-free/release/;http:/abf-downloads.openmandriva.org/rock/repository/x86_64/non-free/release/repodata/repomd.xml (IP: 140.211.11.99)
Error: Failed to download metadata for repo 'rock-x86_64-non-free': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Opera Browser                         1.6 kB/s | 1.8 kB     00:01    
Repository ignorati: rock-x86_64, rock-updates-x86_64, rock-testing-x86_64, rock-x86_64-extra, rock-updates-x86_64-extra, rock-x86_64-restricted, rock-x86_64-non-free

i tried putting my vpn to canada so it detects another mirror but i have it doesn’t work, plus i tried reinstalling the repo files but says the same file is already installed

very weird

1 Like

You’ve got the exact same issue.

1 Like

NOTE: you can’t paste the text from above. That is for ROME.

well of course i tried the same but related to rock, not to rome :slight_smile:

So look at how @ben79 has the repos in 2 lines. You will have to fix yours to do the same thing. If you don’t want to have to do them all, just do the ones that say

enabled=1

I am curious what changed to do this? One is Rolling and one is Rock. Something happened.

@247 how do you do your updates? Please tell me you use

sudo dnf clean all ; dnf clean all ; sudo dnf distro-sync --refresh --allowerasing 2>&1| tee dsync2-log.txt

and that you have the ~/dsync2-log.txt

I would really like to know what users are doing to get their .repo files messed up like this? We can not fix a problem if we don’t know what the user with the problem actually did, all of it.

As @WilsonPhillips says there are 2 things are wrong there. This url is incorrect:

http:/abf-downloads.openmandriva.org

That has to be in every instance:

http://abf-downloads.openmandriva.org

The the format of the 2 url’s is incorrect it has to be like this in every instance:

baseurl=http://mirror.openmandriva.org/rock/repository/x86_64/main/release/
	http://abf-downloads.openmandriva.org/rock/repository/x86_63/main/release/

Neither of these is optional, when I say it has to be this way take me seriously. Also there is no semicolon between the 2 urls.

Did you actually use sudo dnf update?