How to update extra repo and AUR when they have mutual dependencies

Hi,

today I wanted to install updates and run simply yay.
As I have installed virtualbox, yay suggested (among others) these package updates:

 5  extra/virtualbox             7.1.0-1              -> 7.1.2-1
 4  extra/virtualbox-guest-iso   7.1.0-1              -> 7.1.2-1
 3  extra/virtualbox-host-dkms   7.1.0-1              -> 7.1.2-1
 1  aur/virtualbox-ext-oracle    7.1.0-2              -> 7.1.2-1

But I cannot update all at once. yay complains about missing dependencies:

  • The extra repo package updates rely on aur/virtualbox-ext-oracle V7.1.2-1
  • The aur package relies on virtualbox 7.1.2
    So every repo points with the finger on the other repo/aur.

I tried to update them independently with yay -N and yay -a but that did not help either.
Off course I could simply uninstall aur/virtualbox-ext-oracle, then update extra repo and then reinstall aur/virtualbox-ext-oracle but there must be an easier way?

Thanks for any help here. Still trying to learn :smiley:

can you post the whole output of the command here?

Of course, but I am unsure how this will help.
BTW: My system is German, so the output is German. Is there any quick way to temporarily switch to English?
Edit: Managed to switch to English.

Updating virtualbox from extra repository:

[oliver@Levono-EOS ~]$ yay -S virtualbox
Sync Explicit (1): virtualbox-7.1.2-1
[sudo] password for oliver: 
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing virtualbox (7.1.2-1) breaks dependency 'virtualbox=7.1.0' required by virtualbox-ext-oracle
 -> error installing repo packages

Updating virtualbox-ext-oracle from AUR:

[oliver@Levono-EOS ~]$ yay -S virtualbox-ext-oracle
Sync Dependency (1): virtualbox-7.1.2-1
AUR Explicit (1): virtualbox-ext-oracle-7.1.2-1
:: PKGBUILD up to date, skipping download: virtualbox-ext-oracle
  1 virtualbox-ext-oracle            (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
  1 virtualbox-ext-oracle            (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: virtualbox-ext-oracle 7.1.2-1 (Sa 28 Sep 2024 16:12:07 CEST)
==> Retrieving sources...
  -> Found Oracle_VirtualBox_Extension_Pack-7.1.2.vbox-extpack
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    Oracle_VirtualBox_Extension_Pack-7.1.2.vbox-extpack ... Passed
:: (1/1) Parsing SRCINFO: virtualbox-ext-oracle
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing virtualbox (7.1.2-1) breaks dependency 'virtualbox=7.1.0' required by virtualbox-ext-oracle
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing virtualbox (7.1.2-1) breaks dependency 'virtualbox=7.1.0' required by virtualbox-ext-oracle
 -> error installing repo packages
error installing repo packages

Remove the oracle extensions. Update your system and reinstall the oracle extensions

1 Like

As I wrote:

Off course I could simply uninstall aur/virtualbox-ext-oracle, then update extra repo and then reinstall aur/virtualbox-ext-oracle but there must be an easier way?

No easier way? Something like “ignore dependencies for now - trust me, I know what I’m doing” ?

You can use yay -Syud but that will ignore all dependency version checks. Not just the one on virtualbox.

That could easily result in an unbootable system depending on what else is in your update.

You could upgrade the oracle ignoring dependencies but that would still be two steps which is the same as what is recommended above.

I think the safest solution is:

yay -R virtualbox-ext-oracle
yay -Syu virtualbox-ext-oracle

That being said, do you even need the oracle extensions? The vast majority of virtualbox users don’t actually need those.

Lastly, in 2024 Virtualbox is pretty much the worst virtualization option around. It just hasn’t been well maintained or updated compared to the alternatives.

You’re most likely right, but safe is boring and I want to learn something :grinning:
And just in case there is a timeshift snapshot.

You pushed me in the right direction, this worked:

  1. sudo pacman -Sd virtualbox
  2. yay -S virtualbox-ext-oracle

But of course not faster than your solution. Thanks!

What do you recommend? KVM, qemu? I played with those maybe two years ago and was not really happy, especially with GUIs and snapshots, but that may have changed in the meantime.

If you don’t mind proprietary software, I like VMware workstation. VMware now provides full workstation for free if you register.

Other than that kvm/qemu. However, there are multiples GUIs for that now. If you want simple and easy, you can use gnome boxes(It doesn’t have a lot of gnome deps). Alternatively, you can virt-manager which is harder to get setup but has more rich functionality.

Either solution will provide performance and compatibility superior to Virtualbox.

Personally, I use VMware Workstation because I prefer the interface and rich snapshot support.

1 Like

Will play with all of your suggestions, let’s see how they perform. Thanks for your help!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.