rpm-software-management/libdnf

[dnf5] aarch64 architecture not recognized while installing packages

berolinux opened this issue · 1 comments

Initial tests of dnf5 are working great on x86_64, but on aarch64, it doesn't recognize aarch64 as a compatible architecture.
Installing the same package from the same repository works with dnf 4.13.0.

[openmandriva@instance-20220628-0332 ~]$ uname -a
Linux instance-20220628-0332 5.19.0-rc4 #1 SMP PREEMPT_DYNAMIC Tue Jun 28 02:37:58 CEST 2022 aarch64 aarch64 aarch64 GNU/Linux
[openmandriva@instance-20220628-0332 ~]$ cat /proc/cpuinfo 
processor       : 0
BogoMIPS        : 50.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x3
CPU part        : 0xd0c
CPU revision    : 1
[openmandriva@instance-20220628-0332 ~]$ sudo dnf5 install htop
Updating and loading repositories:
[0/0] OpenMandriva Cooker - aarch64                                                                                                         100% |   2.4 MiB/s |  33.1 MiB |  00m14s
Repositories loaded.
Failed to resolve the transaction:
Problem: conflicting requests
  - package htop-3.2.1-1.aarch64 does not have a compatible architecture
[openmandriva@instance-20220628-0332 ~]$ sudo dnf install htop
Last metadata expiration check: 0:44:39 ago on Tue 28 Jun 2022 01:54:24 AM BST.
Dependencies resolved.
====================================================================================================================================================================================
 Package                                Architecture                              Version                                    Repository                                        Size
====================================================================================================================================================================================
Installing:
 htop                                   aarch64                                   3.2.1-1                                    cooker-aarch64                                   132 k

Transaction Summary
====================================================================================================================================================================================
Install  1 Package

Total download size: 132 k
Installed size: 285 k
Is this ok [y/N]: x
Is this ok [y/N]: y
Downloading Packages:
htop-3.2.1-1-omv4090.aarch64.rpm                                                                                                                     85 kB/s | 132 kB     00:01    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                85 kB/s | 132 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                            1/1 
  Installing       : htop-3.2.1-1.aarch64                                                                                                                                       1/1 
  Verifying        : htop-3.2.1-1.aarch64                                                                                                                                       1/1 

Installed:
  htop-3.2.1-1.aarch64                                                                                                                                                              

Complete!
[openmandriva@instance-20220628-0332 ~]$ file `which dnf5`
/bin/dnf5: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.10.0, BuildID[sha1]=856274ff29d1da7e03586966f5d3f11a986d12c2, stripped

This is fixed in current (2022/08/16) dnf5