Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge virtualbox problem [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
apiaio
Guru
Guru


Joined: 04 Dec 2008
Posts: 419

PostPosted: Sun Jun 02, 2024 4:59 pm    Post subject: emerge virtualbox problem [SOLVED] Reply with quote

Code:
# emerge app-emulation/virtualbox -vp

These are the packages that would be merged, in order:

Calculating dependencies |

!!! Problem resolving dependencies for app-emulation/virtualbox
... done!
Dependency resolution took 0.50 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "app-emulation/virtualbox" has unmet requirements.
- app-emulation/virtualbox-7.0.14-r2::gentoo USE="alsa dbus gui nls opengl pam pulseaudio python sdk sdl udev -debug -doc -dtrace -java -lvm (-pch) -vboxwebsrv -vde -vnc" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 )

So I added
Code:
>=app-emulation/virtualbox-7.0.14-r2  python_single_target_python3_11

Now
Code:
 # emerge --update --deep --changed-use --exclude gentoo-sources --exclude gentoo-kernel --exclude gentoo-kernel-bin --exclude linux-firmware --with-bdeps=y @world  -av

wants reinstall 97 packages. Is it necessary or I omitted something?
Code:
# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.11
  [2]   python3.12 (fallback)


Last edited by apiaio on Tue Jun 04, 2024 4:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tout
n00b
n00b


Joined: 18 Jul 2020
Posts: 37

PostPosted: Sun Jun 02, 2024 5:22 pm    Post subject: Reply with quote

I tried to mask this version, so other packages are not blocked. But can't get that to work.

I have

=app-emulation/virtualbox-7.0.14-r2

In mask directory. But now it gives the same error on a 6.1.50 version.

edit: I do encounter the same
Back to top
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 744

PostPosted: Sun Jun 02, 2024 5:42 pm    Post subject: Reply with quote

I was having trouble getting the "stable" virtualbox to work with the latest gentoo-sources a few months ago so I have the following four lines in /etc/portage/package.accept_keywords/temporary_keywords which give me the latest portage "unstable" virtual box AND works with the latest "unstable" gentoo-sources kernel.


Code:
app-emulation/virtualbox ~amd64
app-emulation/virtualbox-additions ~amd64
app-emulation/virtualbox-extpack-oracle ~amd64
app-emulation/virtualbox-modules ~amd64


This gives you virtualbox-7.0.18 ("unstable") as of 2 June 2024.
Back to top
View user's profile Send private message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 169
Location: Germany/Berlin

PostPosted: Mon Jun 03, 2024 10:39 am    Post subject: Reply with quote

virtualbox package is not python 3.12 ready (yet)
Back to top
View user's profile Send private message
Tout
n00b
n00b


Joined: 18 Jul 2020
Posts: 37

PostPosted: Mon Jun 03, 2024 10:42 am    Post subject: Reply with quote

mhex wrote:
virtualbox package is not python 3.12 ready (yet)


Yes, that seems part of the problem.

But running:

python --version

on my system gives:

Python 3.11.7

edit: i just start running a emerge sync and stuff, and it started a big update of 118, so that might hopefully solve things. A lot of python involved.

edit2: in this emerge I see virtualbox 7.0.18-r1 now :) Hopeful
Back to top
View user's profile Send private message
Tout
n00b
n00b


Joined: 18 Jul 2020
Posts: 37

PostPosted: Mon Jun 03, 2024 12:49 pm    Post subject: Reply with quote

It is working correctly after the latest update for me
Back to top
View user's profile Send private message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 169
Location: Germany/Berlin

PostPosted: Mon Jun 03, 2024 12:58 pm    Post subject: Reply with quote

Not for me unfortunately. Portage is synced.
Code:
emerge -pv virtualbox

These are the packages that would be merged, in order:

Calculating dependencies /

!!! Problem resolving dependencies for app-emulation/virtualbox
... done!
Dependency resolution took 3.02 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "virtualbox" has unmet requirements.
- app-emulation/virtualbox-7.0.18-r1::gentoo USE="alsa dbus gui nls opengl pam pulseaudio python sdk sdl udev vmmraw -debug -doc -dtrace -java -lvm (-pch) -vboxwebsrv -vde -vnc" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 ) )

  The above constraints are a subset of the following complete expression:
    java? ( sdk ) python? ( sdk exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 ) ) vboxwebsrv? ( java )
Back to top
View user's profile Send private message
Tout
n00b
n00b


Joined: 18 Jul 2020
Posts: 37

PostPosted: Mon Jun 03, 2024 1:12 pm    Post subject: Reply with quote

mhex wrote:
Not for me unfortunately. Portage is synced.
Code:
emerge -pv virtualbox


Do you have the vboxwebsrv use flag enabled? I don't think I use that use flag.

edit: maybe totally unrelated I realise some moments later, just trying to see the difference made me ask this
Back to top
View user's profile Send private message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 169
Location: Germany/Berlin

PostPosted: Mon Jun 03, 2024 2:44 pm    Post subject: Reply with quote

Code:
USE=".. -vboxwebsrv .."
therefore not enabled
Back to top
View user's profile Send private message
NichtDerHans
Apprentice
Apprentice


Joined: 27 Jan 2023
Posts: 150

PostPosted: Mon Jun 03, 2024 2:50 pm    Post subject: Reply with quote

Virtualbox-kvm needs an update too.

https://packages.gentoo.org/packages/app-emulation/virtualbox-kvm

Thank you very much Mr. Ebuildman. :)
Back to top
View user's profile Send private message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 169
Location: Germany/Berlin

PostPosted: Tue Jun 04, 2024 6:43 am    Post subject: Reply with quote

putting this at the top of
Code:
package.use

Code:

*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_11


helps, also with other packages not upgraded to 3.12
Back to top
View user's profile Send private message
apiaio
Guru
Guru


Joined: 04 Dec 2008
Posts: 419

PostPosted: Tue Jun 04, 2024 7:09 am    Post subject: Reply with quote

mhex wrote:
putting this at the top of
Code:
package.use

Code:

*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: -* python3_11


How to do that when package.use is directory?
Back to top
View user's profile Send private message
NichtDerHans
Apprentice
Apprentice


Joined: 27 Jan 2023
Posts: 150

PostPosted: Tue Jun 04, 2024 7:44 am    Post subject: Reply with quote

write it in /etc/portage/package.use/python
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21934

PostPosted: Tue Jun 04, 2024 3:23 pm    Post subject: Reply with quote

Also, follow the other steps from the news item that starts with the step that mhex posted. Leaving mhex's advice in place indefinitely will eventually lead to other problems.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum