View previous topic :: View next topic |
Author |
Message |
Bovbo n00b

Joined: 18 Mar 2025 Posts: 3
|
Posted: Tue Mar 18, 2025 10:30 pm Post subject: Having trouble using emerge |
|
|
Hello,
I am currently trying to setup a gentoo virtual machine using the live CD option. (I would like to learn how to do everything without copy pasting)
I am currently stuck on emerging the gentoo kernel. Sorry for bad formatting or if I posting in the wrong section.
The error is the following:
Code: |
!!! The ebuild selected to satisy ">syskernel/installkernel-14[ugrd(-)]" has unmet requirements.
- syskernel/installkernel-56::gentoo UISE="dracut efistub systemd systemd-boot uki -grub -refind -ugrd -ukify" ABI_X86="(64)"
The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of (dracut ugrd)
|
What that tells me is that the USE flags is unsatisfied, pretty easy I think. So i go to to /etc/portage/make.conf to check and this is what I currently have:
Code: |
USE="modules-sign dracut"
|
If I edit it to have anything else (efistub) it doesn't seem to change. I'm a little lost here, and while I am sure it's in the manual, I have already kinda spent over 6 or 7 hours scouring the web.
Please help.
PS: if someone can help me copy paste from vmbox to the host, that would be awesome. |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55034 Location: 56N 3W
|
Posted: Tue Mar 18, 2025 11:03 pm Post subject: |
|
|
Bovbo,
Then Code: | wgetpaste -c 'some_command arg1 arg2 ...' |
Or Code: | wgetpaste /path/to/file | and tell us the URL.
You may need to play with the -s and -S knobs for bigger pastes.
Code: | $ wgetpaste -c 'emerge --info'
Your paste can be seen here: https://bpa.st/XC3Q |
The command and its entire output would be good.
Your error fragment
Code: | The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of (dracut ugrd) |
suggests that you have two conflicting USE flags set. You are allowed at most one from that list.
dracut and ugrd are both tools to build your initramfs, so you can only use one. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
CooSee Veteran


Joined: 20 Nov 2004 Posts: 1535 Location: Earth
|
Posted: Tue Mar 18, 2025 11:20 pm Post subject: |
|
|
found this in my old notes - i think it's still relevant - couldn't find the link from Wiki
Code: | REQUIRED_USE="foo? ( bar )" If foo is set, bar must be set.
REQUIRED_USE="foo? ( !bar )" If foo is set, bar must not be set.
REQUIRED_USE="foo? ( || ( bar baz ) )" If foo is set, bar or baz must be set.
REQUIRED_USE="^^ ( foo bar baz )" Exactly one of foo bar or baz must be set.
REQUIRED_USE="|| ( foo bar baz )" At least one of foo bar or baz must be set.
REQUIRED_USE="?? ( foo bar baz )" No more than one of foo bar or baz may be set. |
 _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
 |
Bovbo n00b

Joined: 18 Mar 2025 Posts: 3
|
Posted: Tue Mar 18, 2025 11:41 pm Post subject: |
|
|
NeddySeagoon wrote: | Bovbo,
Then Code: | wgetpaste -c 'some_command arg1 arg2 ...' |
Or Code: | wgetpaste /path/to/file | and tell us the URL.
You may need to plaf vith nte -s and -S knobs for bigger pastes.
Code: | $ wgetpaste -c 'emerge --info'
Your paste can be seen here: https://bpa.st/XC3Q |
The command and its entire output would be good.
Your error fragment
Code: | The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of (dracut ugrd) |
suggests that you have two conflicting USE flags set. You are allowed at most one from that list.
dracut and ugrd are both tools to build your initramfs, so you can only use one. |
Hi Neddy,
Thanks for responding . Here you go, I hope this helps.
https://bpa.st/6Q3Q
Code: |
# emerge --info sys-kernel/gentoo-kernel
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/desktop/gnome, gcc-14, glibc-2.40-r8, 6.6.74 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.74-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700F-with-glibc2.40
KiB Mem: 4005004 total, 3370252 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 18 Mar 2025 10:30:00 +0000
Head commit of repository gentoo: a2eef8add0594289aa654659b4967a76aba3c6f0
sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.72-r1::gentoo
dev-build/automake: 1.17-r1::gentoo
dev-build/cmake: 3.31.5::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.6.1::gentoo
dev-lang/perl: 5.40.0-r1::gentoo
dev-lang/python: 3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin: 1.84.1-r2::gentoo
llvm-core/clang: 19.1.7::gentoo
llvm-core/llvm: 19.1.7::gentoo
sys-apps/baselayout: 2.17::gentoo
sys-apps/openrc: 0.56::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 14.2.1_p20241221::gentoo
sys-devel/gcc-config: 2.12.1::gentoo
sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r8::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j2 -l5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet colord crypt cups dbus dracut dri dts dvd dvdr eds elogind encode evo exif flac gdbm gdk-pixbuf gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring kf6compat lcms libnotify libtirpc mad mng modules-sign mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa Nvidia dummy nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Thanks in advance! |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23218
|
Posted: Wed Mar 19, 2025 12:24 am Post subject: |
|
|
Are you sure you transcribed everything correctly? To recap our situation:- sys-kernel/installkernel allows at-most-one-of dracut and ugrd. Your output says that, and the ebuild seems to say the same.
- Your output says you have USE=dracut -ugrd, which should work.
- You enabled USE=dracut globally. I am not saying this is wrong or right, but noting it for completeness.
- You have not enabled ugrd globally.
- installkernel does not default-enable either of those flags.
- Your emerge --info does not show USE=ugrd enabled.
Putting all that together, your output showing USE="dracut -ugrd" looks expected - but if that were right, why is Portage reporting an unsatisfied constraint, since you do have exactly one of those two flags? Please share the URL from wgetpaste -c 'emerge --pretend --verbose sys-kernel/installkernel'. |
|
Back to top |
|
 |
Bovbo n00b

Joined: 18 Mar 2025 Posts: 3
|
Posted: Wed Mar 19, 2025 12:32 am Post subject: |
|
|
Hu wrote: | Are you sure you transcribed everything correctly? To recap our situation:- sys-kernel/installkernel allows at-most-one-of dracut and ugrd. Your output says that, and the ebuild seems to say the same.
- Your output says you have USE=dracut -ugrd, which should work.
- You enabled USE=dracut globally. I am not saying this is wrong or right, but noting it for completeness.
- You have not enabled ugrd globally.
- installkernel does not default-enable either of those flags.
- Your emerge --info does not show USE=ugrd enabled.
Putting all that together, your output showing USE="dracut -ugrd" looks expected - but if that were right, why is Portage reporting an unsatisfied constraint, since you do have exactly one of those two flags? Please share the URL from wgetpaste -c 'emerge --pretend --verbose sys-kernel/installkernel'. |
Here you go. I hope I transcribed everything correctly. As requested here you go.
https://bpa.st/JKSA
Quote: |
# emerge --pretend --verbose sys-kernel/installkernel
* IMPORTANT: 11 config files in '/etc/portage' need updating.
These are the packages that would be merged, in order:
Calculating dependencies * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
!!! Problem resolving dependencies for sys-kernel/installkernel
... done!
Dependency resolution took 1.30 s (backtrack: 3/20).
!!! The following update has been skipped due to unsatisfied dependencies:
sys-kernel/installkernel:0
selected: (sys-kernel/installkernel-57:0/0::gentoo, installed)
skipped: (sys-kernel/installkernel-57:0/0::gentoo, ebuild scheduled for merge) (see unsatisfied dependency below)
!!! All ebuilds that could satisfy ">=sys-kernel/dracut-106" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-kernel/dracut-9999::gentoo (masked by: missing keyword)
- sys-kernel/dracut-106-r1::gentoo (masked by: ~amd64 keyword)
(dependency required by "sys-kernel/installkernel-57::gentoo[dracut]" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
!!! The ebuild selected to satisfy "sys-kernel/installkernel" has unmet requirements.
- sys-kernel/installkernel-50::gentoo USE="dracut efistub systemd systemd-boot uki -grub -refind -ugrd -ukify" ABI_X86="(64)"
The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of ( efistub grub systemd-boot )
The above constraints are a subset of the following complete expression:
at-most-one-of ( efistub grub systemd-boot ) refind? ( !systemd-boot !grub ) systemd-boot? ( systemd ) ukify? ( uki ) at-most-one-of ( dracut ugrd )
* IMPORTANT: 21 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
Hope that helps.
Just also noticed that it says a masked dependency is required, could I have been missing that? But I don't understand since IU have the @BINARY-REDISTRIBUTABLE flag enabled. Or am I just wrong? |
|
Back to top |
|
 |
sMueggli Guru

Joined: 03 Sep 2022 Posts: 568
|
Posted: Wed Mar 19, 2025 9:42 am Post subject: |
|
|
Portage tries to install unstable packages for installkernel and dracut, but ACCEPT_KEYWORDS="amd64" is for a stable system.
The question is, whether you want a stable (maybe with a few unstable packages) or an unstable system? |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5509 Location: Bavaria
|
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2063
|
Posted: Wed Mar 19, 2025 12:18 pm Post subject: |
|
|
Bovbo wrote: | Code: |
!!! The ebuild selected to satisy ">syskernel/installkernel-14[ugrd(-)]" has unmet requirements.
- syskernel/installkernel-56::gentoo UISE="dracut efistub systemd systemd-boot uki -grub -refind -ugrd -ukify" ABI_X86="(64)"
The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of (dracut ugrd)
|
|
One important point that people are missing is that the above, incomplete, output is autounmask trying to enable ugrd but being blocked by the dracut USE.
If we had the full output of the original command, then this can be solved as well. Making more changes without this information is ill advised. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5509 Location: Bavaria
|
Posted: Wed Mar 19, 2025 12:23 pm Post subject: |
|
|
Hmmm ... maybe we should ask PO for the output of:
Code: | # grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2063
|
Posted: Wed Mar 19, 2025 12:26 pm Post subject: |
|
|
pietinger wrote: | Hmmm ... maybe we should ask PO for the output of:
Code: | # grep -r --exclude-dir=savedconfig --exclude-dir=repos.conf "" /etc/portage |
|
That may not be too helpful as Portage is noticing the conflict before writing the staging file.
Edit: But then again, such output might as the keywords don't line up as you say in your post. Certainly there is more happening than what is being mentioned. The OP also shows ~amd64 build selected. |
|
Back to top |
|
 |
|
|
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
|
|