qemu cannot resolve * , a dependency of "qemu-system-x86

Problems with packages? Post here, using [tags] of the package name.

qemu cannot resolve * , a dependency of "qemu-system-x86

Postby umbrellarunaround » Sun Dec 25, 2022 10:15 pm

Hi archlinux arm

I left a donation from the main site - thanks for all your work :)

I get these warnings when I install qemu on a new archlinux arm 64 rpi4 8Gb system. Do you know what the problem is?

root@alarm alarm]# pacman -S qemu
:: There are 3 providers available for qemu:
:: Repository extra
1) qemu-base 2) qemu-desktop 3) qemu-full

Enter a number (default=1): 1
resolving dependencies...
warning: cannot resolve "libbpf.so=0-64", a dependency of "qemu-system-x86"
warning: cannot resolve "edk2-ovmf", a dependency of "qemu-system-x86"
warning: cannot resolve "seabios", a dependency of "qemu-system-x86"
warning: cannot resolve "qemu-system-x86", a dependency of "qemu-base"
umbrellarunaround
 
Posts: 16
Joined: Fri Mar 12, 2021 12:31 pm

Re: qemu cannot resolve * , a dependency of "qemu-system-x86

Postby umbrellarunaround » Sun Dec 25, 2022 10:30 pm

: Do you want to skip the above package for this upgrade? [y/N]
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'libbpf.so=0-64' required by qemu-system-x86
:: unable to satisfy dependency 'edk2-ovmf' required by qemu-system-x86
:: unable to satisfy dependency 'seabios' required by qemu-system-x86
:: unable to satisfy dependency 'qemu-system-x86' required by qemu-base
umbrellarunaround
 
Posts: 16
Joined: Fri Mar 12, 2021 12:31 pm

Re: qemu cannot resolve * , a dependency of "qemu-system-x86

Postby robg » Tue Dec 27, 2022 8:06 pm

This is a consequence of some upstream changes to the QEMU package that have not yet been ported to ALARM. See this thread for more information.
robg
 
Posts: 194
Joined: Tue Jan 05, 2021 8:22 am

Re: qemu cannot resolve * , a dependency of "qemu-system-x86

Postby slashdolt » Fri Dec 30, 2022 1:48 am

qemu-base installs all the x86 stuff, which you probably don't need or want. I installed just qemu-system-aarch64 and I'm emulating aarch64 machines. This may work with qemu-system-arm too, but I haven't tried it, YMMV.

qemu-system-aarch64 depends on edk2-armvirt. This has been replaced with the split edk2-arm and edk2-aarch64 packages, so you'll have to manually download and install edk2-armvirt from https://archive.archlinux.org/packages/e/edk2-armvirt/. Fortunately these are all noarch packages so pulling them from the x86 repos is an option.

I'm using edk2-armvirt-202111-1-any.pkg.tar.zst and it works fine.

As for the libbpf dependency, I'm not sure. I have libbpf 0.8.1-1 installed, from the libbpf package. Try just "pacman -S libbpf" and it might get you there.

So to run aarch64 VMs: install libbpf, download and install (with pacman -U) edk2-armvirt, and then install qemu-system-aarch64.

Let me know if you absolutely must install qemu-base, there's a way to do that too.

EDIT: I see the latest version of core/libbpf is 1.0.1-1. This might be too new for the 7.0 version of qemu. Maybe you can find an older version if so. Good luck.

EDIT EDIT: DON'T use a newer version of the OVMF files from a newer edk2 package. It won't work. For example, you can install the edk2-aarch64 package, but if you use the UEFI files it provides, qemu won't boot. Use an older edk2-armvirt package as indicated above.
slashdolt
 
Posts: 10
Joined: Mon Sep 21, 2020 2:01 am

Re: qemu cannot resolve * , a dependency of "qemu-system-x86

Postby umbrellarunaround » Mon Jan 02, 2023 5:50 pm

Hi all thanks very much for the guidance. I'll give it it go. :)
umbrellarunaround
 
Posts: 16
Joined: Fri Mar 12, 2021 12:31 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 21 guests