Problem updating OpenMandriva - Different architecture error

Hello,

OpenMandriva Lx version:
OpenMandriva Lx 25.02 (ROME) Rolling x86_64

Desktop environment (KDE, LXQT…):
KDE Plasma 6.3.1

Description of the issue (screenshots if relevant):
I’m having a problem when trying to update my system in OpenMandriva. When I run sudo dnf distro-sync, the update fails with several errors like:

Error in transaction test:
package <package-name> is intended for different architecture

This happens for several packages such as rpm, gtk+3.0, plasma6-desktop, among others. I’ve tried clearing the cache with dnf clean all and redoing the update, but the problem persists.

Has anyone experienced this or knows how to solve it?

Relevant informations (hardware involved, software version, logs or output…):

  • CPU: Intel(R) Core™ i5-10400H CPU @ 2.60GHz (8 cores, x86_64)
  • Kernel: Linux 6.13.4-desktop-2omv2590
  • Packages: 2340 (rpm), 14 (flatpak)
  • Shell: bash 5.2.37
  • Terminal: Konsole 24.12.2
  • Display:
    • Primary: LGD05FF (1920x1080 @ 60Hz, Built-in)
    • Secondary: HP S1932 (1366x768 @ 60Hz, External)
  • Architecture Check:
    • uname -m: x86_64
    • rpm --eval '%{_arch}': x86_64

Let me know if any more details are needed. Thanks in advance for any help!

2 Likes

Welcome! We are glad to see you and we hope you will feel at home here.

1 Like

Give us the output of dnf repolist

2 Likes

I’ve never seen this happening before - chances are you somehow managed to enable the aarch64 and/or znver1 and/or risc-v repositories. Make sure only x86_64 repositories are enabled.

1 Like

@ivy

  1. did you happen to enable some repositories in Discover?
  2. did you update the system in Discover?
  3. When was the system installed?
1 Like

Hello,
I installed OpenMandriva just 1 day ago. As a way to solve some problems that were in my previous system. So I had to touch the repositories a little, because there was a problem with the main repository, it was inactive, so I had to use a mirror, because even trying to change the main server with om-mirror-selector.sh -m, no mirror worked.

Here is my output from dnf repolist:

[ivy@Roman tmp]$ dnf repolist
repository id repository name
rolling-x86_64 OpenMandriva rolling - x86_64
[ivy@Roman tmp]$ 

We have been syncing updates from Cooker to ROME and that takes the repos offline for a while. That has been completed and all of the repos are online again.

I have not used the mirror selector, as I use the standard repos. Are you able to undo what was done?

Yes yes. I actually only have the rolling-x86_64 repository active. I just left one asset trying to solve this problem, I thought it was probably a conflict between packages coming from different repositories.

[ivy@Roman tmp]$ dnf repolist
id do repo                                                  nome do repo
rolling-x86_64                                              OpenMandriva Rolling - x86_64

For example, now I need git, and I couldn’t install it, with this same problem.

I had to download it using sudo dnf download --releasever=rolling --downloaddir=/tmp git and then install it via rpm. And the installation was a success.

Please add the output of dnf -v repolist

2 Likes

I installed the system yesterday (23rd, 1 day ago), and the first thing I did was run dnf update. But that didn’t work because the main repository was offline. So I tried changing the repository with om-mirror-selector. I changed it twice 3 times, but none of the servers I selected were online. It always gave 404 or something like that. So I changed it manually, commented out the baseUrl lines, and activated mirrorlist and fastetmirror.

After that I was able to do the update. But after 1h, I tried updating again; Then I started having this problem.

Fastest mirror won’t work without the BaseUrl line. :slightly_smiling_face:

1 Like

Yes yes. I can do this. I have to go into a meeting now with some guys. Soon, I’ll do that. And thank you very much.

1 Like

Yes, yes:

[ivy@Roman tmp]$ dnf -v repolist
Plugins loaded: builddep, changelog, config-manager, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, pre-transaction-actions, repoclosure, repodiff, repograph, repomanage, reposync, rpmconf, system-upgrade
DNF version: 4.22.0
cachedir: /var/tmp/dnf-ivy-gqhpy7p8
OpenMandriva Rolling - x86_64 323 kB/s | 5.4MB 00:17    
Last metadata check: 0:00:02 ago on Mon 24 Feb 2025 18:58:00.
Repository ID: : rolling-x86_64
Repo name: OpenMandriva Rolling - x86_64
Repo review.      : 1740318253
Repo. updated: Sun 23 Feb 2025 15:44:05
Repo packages.          : 30,901
Available repo packages: 30,901
Repo size.          : 46G
Repo base URL.       : https://ftp.tu-chemnitz.de/pub/linux/openmandriva/rolling/repository/x86_64/main/release/,
                        : http://abf-downloads.openmandriva.org/rolling/repository/x86_64/main/release/
Repo. expired: 172,800 second(s) (last: Mon 24 Feb 2025 18:58:00)
Repo file name.      : /etc/yum.repos.d/openmandriva-rolling-x86_64.repo
Total packages: 30,901

1)

2)
Type in console commands:

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

Type N (no) to abort the transaction and attach the dsync-log.txt file here.

2 Likes

@rugyada is correct. ROME is a rolling release and must be done differently. :grinning:

Any time you run into issues, don’t bite off more than you can chew. Come here and ask questions. OpenMandriva is a unique thing. It is not based on Debian or Fedora or SUSE and it is about as old as they are. So, it does things a bit differently.

2 Likes

Yes, yes:
dsync-log.txt (3,2,KB)

Oh right! Thank you very much. I didn’t know that.

I don’t see anything wrong in your log.
What if you do commands again and type Y (yes) this time?
Attach the log here again please.

1 Like

yes. m
dsync-log-2.txt (8,5,KB)
y system is in Portuguese, so I will translate the last part of the log to English so you can understand.

Don’t bite off more than you can chew. Come here and ask questions.
I like this :grin: :clap: :trophy:

1 Like