Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

First install issue with use flags? (solved)

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
45 posts
  • 1
  • 2
  • Next
Author
Message
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

First install issue with use flags? (solved)

  • Quote

Post by anarchosax » Fri Nov 14, 2025 8:19 am

I have the following use flags added to my /mnt/gentoo/etc/portage/make.conf file:

Code: Select all

USE=“sndio -systemd -kde -gnome -bluetooth -qt6”
When I run

Code: Select all

# emerge --ask --verbose --update --deep --changed-use @world
I get the following:

Code: Select all

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

Calculating dependencies... done!
Dependency resolution took 17.40 s (backtrack: 0/20).


!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

x11-base/xorg-server:0

  (x11-base/xorg-server-21.1.20:0/21.1.20::gentoo, ebuild scheduled for merge) USE="elogind udev xorg -debug -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (x11-base/xorg-server-21.1.18-1:0/21.1.18::gentoo, installed) USE="elogind udev xorg -debug -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)" pulled in by
    x11-base/xorg-server:0/21.1.18= required by (x11-drivers/xf86-video-dummy-0.4.1-5:0/0::gentoo, installed) USE="" ABI_X86="(64)"
                        ^^^^^^^^^^^                                                                                                                                                       
    (and 7 more with the same problem)

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


!!! The ebuild selected to satisfy "<media-video/ffmpeg-8.0" has unmet requirements.
- media-video/ffmpeg-7.1.2::gentoo USE="X alsa bzip2 chromium dav1d drm dvd fontconfig gnutls gpl jpegxl lcms libass opengl postproc sdl svg truetype vorbis vulkan webp x264 xml xvid zlib -amf -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -codec2 (-cuda) -doc -fdk -flite -frei0r -fribidi -gcrypt -gme -gmp -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -lame -libaom -libaribb24 -libcaca -libilbc -liblc3 -libplacebo -librtmp -libsoxr -libtesseract -lv2 -lzma -modplug -nvenc -openal -opencl -openh264 -openmpt -openssl -opus -pulseaudio -qrcode -qsv -quirc -rabbitmq -rav1e -rubberband -samba -shaderc -snappy -sndio -soc -speex -srt -ssh -svt-av1 -theora -twolame -v4l -vaapi -vdpau -verify-sig -vidstab -vmaf -vpx -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    chromium? ( opus )

  The above constraints are a subset of the following complete expression:
    cuda? ( nvenc ) fribidi? ( truetype ) gmp? ( !librtmp ) libplacebo? ( vulkan ) shaderc? ( vulkan ) libaribb24? ( gpl ) cdio? ( gpl ) dvd? ( gpl ) frei0r? ( gpl ) postproc? ( gpl ) rubberband? ( gpl ) samba? ( gpl ) vidstab? ( gpl ) x264? ( gpl ) x265? ( gpl ) xvid? ( gpl ) chromium? ( opus ) soc? ( drm )

(dependency required by "www-client/firefox-140.5.0::gentoo" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
I assume that there is an issue with my use flags, but am not sure...
Last edited by anarchosax on Tue Dec 02, 2025 8:46 pm, edited 1 time in total.
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Fri Nov 14, 2025 8:32 am

My additions to the make.conf file are commented out and I still get the following:

Code: Select all

# emerge --ask --verbose --update --deep --changed-use @world

 * IMPORTANT: 35 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies... done!
Dependency resolution took 5.10 s (backtrack: 0/20).


!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

x11-base/xorg-server:0

  (x11-base/xorg-server-21.1.20:0/21.1.20::gentoo, ebuild scheduled for merge) USE="elogind udev xorg -debug -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (x11-base/xorg-server-21.1.18-1:0/21.1.18::gentoo, installed) USE="elogind udev xorg -debug -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)" pulled in by
    x11-base/xorg-server:0/21.1.18= required by (x11-drivers/xf86-video-vesa-2.6.0-5:0/0::gentoo, installed) USE="" ABI_X86="(64)"
                        ^^^^^^^^^^^                                                                                                                                                      
    (and 7 more with the same problem)

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


!!! The ebuild selected to satisfy "<media-video/ffmpeg-8.0" has unmet requirements.
- media-video/ffmpeg-7.1.2::gentoo USE="X alsa bzip2 chromium dav1d drm dvd fontconfig gnutls gpl jpegxl lcms libass opengl postproc sdl svg truetype vorbis vulkan webp x264 xml xvid zlib -amf -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -codec2 (-cuda) -doc -fdk -flite -frei0r -fribidi -gcrypt -gme -gmp -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -lame -libaom -libaribb24 -libcaca -libilbc -liblc3 -libplacebo -librtmp -libsoxr -libtesseract -lv2 -lzma -modplug -nvenc -openal -opencl -openh264 -openmpt -openssl -opus -pulseaudio -qrcode -qsv -quirc -rabbitmq -rav1e -rubberband -samba -shaderc -snappy -sndio -soc -speex -srt -ssh -svt-av1 -theora -twolame -v4l -vaapi -vdpau -verify-sig -vidstab -vmaf -vpx -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    chromium? ( opus )

  The above constraints are a subset of the following complete expression:
    cuda? ( nvenc ) fribidi? ( truetype ) gmp? ( !librtmp ) libplacebo? ( vulkan ) shaderc? ( vulkan ) libaribb24? ( gpl ) cdio? ( gpl ) dvd? ( gpl ) frei0r? ( gpl ) postproc? ( gpl ) rubberband? ( gpl ) samba? ( gpl ) vidstab? ( gpl ) x264? ( gpl ) x265? ( gpl ) xvid? ( gpl ) chromium? ( opus ) soc? ( drm )

(dependency required by "www-client/firefox-140.5.0::gentoo" [ebuild])
(dependency required by "@selected" [set])
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Fri Nov 14, 2025 8:34 am

Can you post your emerge --info?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Fri Nov 14, 2025 9:38 am

fedeliallalinea wrote:Can you post your emerge --info?

Thanks for the reply. I have erased the install and will start over. It would helpful with comments about my additions. I want sndio when available and am trying to avoid anything Wayland, systemd, KDE, gnome, etc. Here are my additions to /mnt/gentoo/etc/portage/make.conf:

Code: Select all

MAKEOPTS=“-j13 -l2”
USE=“sndio -systemd -kde -gnome -bluetooth -qt6”
PORTAGE_NICENESS=1
Here is my computer CPU info:

Code: Select all

# lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
CPU(s):
CPU(s):                                       12
Thread(s) per core:                       2
Core(s) per socket:                       6
Socket(s):                                     1
CPU(s) scaling MHz:                      74%
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 14, 2025 11:46 am

anarchosax,

Welcome to Gentoo.

We can't usefully comment on your USE flags unless we know your profile too.
Your profile will set a lot of good things for you. make.conf adds/subtracts from there.

Code: Select all

emerge --info
shows most of what we need to know.

What do you want to do with this install?
Server, with no GUI, desktop ... ?

Don't reinstall Gentoo. It will not fix anything.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Nov 14, 2025 1:13 pm

anarchosax,

you dont need these settings: USE="-systemd -kde -gnome -qt6” ... just select the desired Profile. Please read:
https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
especially this chapter:
https://wiki.gentoo.org/wiki/User:Pieti ... _of_Gentoo
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Fri Nov 14, 2025 2:31 pm

NeddySeagoon wrote:anarchosax,

Welcome to Gentoo.

We can't usefully comment on your USE flags unless we know your profile too.
Your profile will set a lot of good things for you. make.conf adds/subtracts from there.

Code: Select all

emerge --info
shows most of what we need to know.

What do you want to do with this install?
Server, with no GUI, desktop ... ?

Don't reinstall Gentoo. It will not fix anything.
Thank you. While I can't run the emerge -- info command right now, I can provide the information. I ran the following:

Code: Select all

# eselect profile list | less
I selected "3" from the list.
I am going for a "minimalish" desktop install, with xorg, xterm, spectrwm, Thunar, dmenu, mousepad, opendoas and sndio.
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Fri Nov 14, 2025 2:43 pm

pietinger wrote:anarchosax,

you dont need these settings: USE="-systemd -kde -gnome -qt6” ... just select the desired Profile. Please read:
https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
especially this chapter:
https://wiki.gentoo.org/wiki/User:Pieti ... _of_Gentoo
Thanks for your reply, however I am more confused than ever. I read the linked articles. There is a note under the Portage heading:
Don't forget to edit the make.conf file.
So could you please be more specific as to what to do, particularly as I have very specific wishes for a Gentoo install (as per my use flags), to keep the desktop system rather kiss.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Nov 14, 2025 3:07 pm

anarchosax wrote:Thanks for your reply, however I am more confused than ever. I read the linked articles. There is a note under the Portage heading:
Don't forget to edit the make.conf file.
So could you please be more specific as to what to do, particularly as I have very specific wishes for a Gentoo install (as per my use flags), to keep the desktop system rather kiss.
Your quote show me that you had read also this wiki article:
https://wiki.gentoo.org/wiki/User:Pieti ... EFI_System
:D
So, yes this short note is a reminder to this chapter in the Handbook:
https://wiki.gentoo.org/wiki/Handbook:A ... le_options
Of course you can use all the default paramter you have in the default make.conf ... but maybe you want set some parameters like these to optimize your compiling (EXAMPLES):

Code: Select all

COMMON_FLAGS="-march=native -O2 -pipe"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
MAKEOPTS="-j4"
Thank you very much for your question ... this show me where something is missing ... I will add the link to the article right now. :D
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Nov 14, 2025 3:15 pm

P.S. Your choice for "3" is absolutely correct for a minimal desktop system. 8)

If you have a question about "makeopts=..." please read: https://wiki.gentoo.org/wiki/User:Pieti ... pile_times
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 14, 2025 3:49 pm

anarchosax,

On amd64,

Code: Select all

 [3]   default/linux/amd64/23.0/desktop (stable)
is correct.
on other architectures, it not. e.g. on arm64 its

Code: Select all

[6]   default/linux/arm64/23.0/desktop (stable)
...
You didn't tell what you were installing on.

There are two ways to proceed.
Start with the desktop profile stage3 and perhaps remove things you don't want.
Start with the bare stage3, set the profile to desktop then see what

Code: Select all

emerge -pvuUD @world
wants to do.
In particular, review the packages and USE flags.
Fine tune make.conf from that.

Code: Select all

emerge -pvuUD @world
only shows what would be done, the -p means --pretend, so you can have as many goes at the fine tuning as you need.

In my view, building up is easier that stripping out things you don't want. I say that as its what I do but both should get you to the same place.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Sun Nov 23, 2025 9:03 am

NeddySeagoon wrote:anarchosax,

Code: Select all

emerge -pvuUD @world
only shows what would be done, the -p means --pretend, so you can have as many goes at the fine tuning as you need.

In my view, building up is easier that stripping out things you don't want. I say that as its what I do but both should get you to the same place.
OK, sorry I didn't specify. I am using amd64. I haven't replied before now, as this appears to be turning into more of a medium to long term project. For the same reason, I have also switched computers. The other computer now has a void linux system running sndio as the sound server. I am slowing down on my "gentoo project", as I get information overload when reading the handbook. A cheat sheet that goes through the process in the correct order, including some use flag info and video card configuration would be the best resource for me to start out on... however, I am taking notes each time I try to move forward (and trying to refer to the Pietinger Quick install guide).

Other than being unsure as to whether to configure the make.conf or run the one shot cpuid2cpuflags first, the first issue that I have run into is the following:

Code: Select all

# emerge -pvuUD @world
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/gentoo'
!!! Invalid Repository Location (not a dir): '/var/db/repos/gentoo'


!!! /etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /var/db/repos/gentoo/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.
I am currently stuck after having downloaded and expanded the stage 3 tarball:

cpuid2cpuflags, then video card config, and finally the various flags? Not sure of the order, but as I stated above, the next command

Code: Select all

# emerge -pvuUD @world
doesn't appear to be happy...

The following steps, I don't have a problem with:

Code: Select all

# cp --dereference /etc/resolv.conf /mnt/gentoo/etc/
# mount --types proc /proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --make-rslave /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev
# mount --make-rslave /mnt/gentoo/dev
# mount --bind /run /mnt/gentoo/run
# mount --make-slave /mnt/gentoo/run
# chroot /mnt/gentoo /bin/bash
# source /etc/profile
# export PS1="(chroot) ${PS1}"
# mount /dev/nvme1n1p1 boot/efi
# emerge-webrsync
Then comes selecting a mirror (or more) and selecting a profile (basic desktop is fine for me)

Generating a locale seems straight forward.

The /etc/fstab caused me some problems as I used uuid and /boot/efi didn't get included for some reason, so I will try without uuid this time, but am not sure what I need to do...

Short, clear and concise answers work best on me, in an install process. I can always delve into the complexities of gentoo as I learn more over time.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Nov 23, 2025 9:27 am

anarchosax wrote:[...] I am currently stuck after having downloaded and expanded the stage 3 tarball:

cpuid2cpuflags, then video card config, and finally the various flags? Not sure of the order, but as I stated above, the next command [1]

Code: Select all

# emerge -pvuUD @world
doesn't appear to be happy...

The following steps, I don't have a problem with:

Code: Select all

...
# emerge-webrsync
Then comes selecting a mirror (or more) [2] and selecting a profile (basic desktop is fine for me) [3]

[4] The /etc/fstab caused me some problems as I used uuid and /boot/efi [...]
I dont know which steps you did ... so I can give you only some general information:
1) Have you done the "emerge-webrsync" before trying to do a world-update? (Yes, it is necessary to do it before)
2) This is not urgent ... do it at the very last
3) Best is to download the desktop-stage3 ... but if you had downloaded the default stage3 then wait with the change of the profile until the very end of your installation (= do it after your first boot into your installation). You can ask for all UUIDs and PARTUUIDs with "blkid".
4) /boot/efi has been outdated for two years -> see in this old info post: https://forums.gentoo.org/viewtopic-t-1 ... ight-.html
(maybe other Linux distribution still use it ... however, they are then not compliant with the specifications of the UAPI group.)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Sun Nov 23, 2025 3:12 pm

pietinger wrote: I dont know which steps you did ...
Thanks for the reply. So, mainly following your guide and my notes, at this point. I have started again and have just run:

Code: Select all

# cp -L /etc/resolv.conf etc && arch-chroot .
This looks like the point where I edit the make.conf file...

My plan is to do the following with the make.conf file:

Code: Select all

COMMON_FLAGS="-march=native -O2 -pipe"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
MAKEOPTS="-j6”
USE=“-systemd -kde -gnome -bluetooth -qt6 alsa sndio”
PORTAGE_NICENESS=1
This time around, I am not using a swap file as I have the following on the computer:

Code: Select all

$ lscpu
Architecture:                x86_64
CPU op-mode(s):            32-bit, 64-bit
Address sizes:             39 bits physical, 48 bits virtual
Byte Order:                Little Endian
CPU(s):                      16
On-line CPU(s) list:       0-15
Vendor ID:                   GenuineIntel
Model name:                Intel(R) Core(TM) i9-9900KS CPU @ 4.00GHz
CPU family:              6
Model:                   158
Thread(s) per core:      2
Core(s) per socket:      8
Socket(s):               1
Stepping:                13
CPU(s) scaling MHz:      54%
CPU max MHz:             5000.0000
CPU min MHz:             800.0000
and

Code: Select all

$ grep MemTotal /proc/meminfo
MemTotal:       65742972 kB
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Nov 23, 2025 3:24 pm

anarchosax wrote:[...]
My plan is to do the following with the make.conf file:

Code: Select all

COMMON_FLAGS="-march=native -O2 -pipe"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
MAKEOPTS="-j6”
USE=“-systemd -kde -gnome -bluetooth -qt6 alsa sndio”
PORTAGE_NICENESS=1
Please be careful with " and “ ... these are two different characters ;-) ... -> MAKEOPTS="-j6” ... does not work (the same with your USE=-statement)

BTW you dont need to deselect some use-flags when you use only a desktop-profile (and not a gnome- or plasma-profile ... or a systemd-profile) ... also "alsa" is enabled by default in a desktop-profile. So,try this ->

Code: Select all

COMMON_FLAGS="-march=native -O2 -pipe"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
MAKEOPTS="-j6"
USE="-bluetooth sndio"
PORTAGE_NICENESS=1
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Sun Nov 23, 2025 4:15 pm

pietinger wrote: Please be careful with " and “ ... these are two different characters ;-) ... -> MAKEOPTS="-j6” ... does not work (the same with your USE=-statement)

BTW you dont need to deselect some use-flags when you use only a desktop-profile (and not a gnome- or plasma-profile ... or a systemd-profile) ... also "alsa" is enabled by default in a desktop-profile. So,try this ->

Code: Select all

COMMON_FLAGS="-march=native -O2 -pipe"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
MAKEOPTS="-j6"
USE="-bluetooth sndio"
PORTAGE_NICENESS=1
Oh, OK, I think that got changed in my notes. I ran into a weird issue:

Code: Select all

# nano /mnt/gentoo/etc/portage/make.conf
Gives me the following:

Code: Select all

[ Directory '/mnt/gentoo/etc/portage' does not exist ]
However, I can cd into /mnt/gentoo/etc/portage...

This is the last command that I ran, as per your quick install:

Code: Select all

# cp -L /etc/resolv.conf etc && arch-chroot .
According to my notes, I should run the following:

Code: Select all

# cp --dereference /etc/resolv.conf /mnt/gentoo/etc/
# mount --types proc /proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --make-rslave /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev
# mount --make-rslave /mnt/gentoo/dev
# mount --bind /run /mnt/gentoo/run
# mount --make-slave /mnt/gentoo/run
# chroot /mnt/gentoo /bin/bash
# source /etc/profile
# export PS1="(chroot) ${PS1}"
# mount /dev/nvme0n1p1 boot/efi
Edit make.conf and then:

Code: Select all

# emerge-webrsync
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Nov 23, 2025 6:34 pm

anarchosax wrote:[,,,]Gives me the following:

Code: Select all

[ Directory '/mnt/gentoo/etc/portage' does not exist ]
This is the last command that I ran, as per your quick install:

Code: Select all

# cp -L /etc/resolv.conf etc && arch-chroot .
According to my notes, I should run the following:

Code: Select all

# cp --dereference /etc/resolv.conf /mnt/gentoo/etc/
# mount --types proc /proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --make-rslave /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev
# mount --make-rslave /mnt/gentoo/dev
# mount --bind /run /mnt/gentoo/run
# mount --make-slave /mnt/gentoo/run
# chroot /mnt/gentoo /bin/bash
# source /etc/profile
# export PS1="(chroot) ${PS1}"
# mount /dev/nvme0n1p1 boot/efi
1. Chrooting into a directory means: Make it to my new root ... You BUILD your system in the directory /mnt/gentoo ... and therefore you must chroot into it at some time ... so ... if you want edit the make.conf of your (future) system (and not the system on the CD) ... you must either:
a) edit make.conf BEFORE chrooting -> this is /mnt/gentoo/etc/portage/make.conf, -OR-
b) edit make.conf AFTER chrooting -> this is /etc/portage/make.conf.

Always ask yourself where you are: OUTSIDE of your chrooted system == BEFORE you enter it, -OR- INSIDE == AFTER you did the chroot. All commands must therefore match ... ;-)

2. When you boot with our GentooCD THEN you CAN USE the command arch-chroot .... doing the same as you had to do before we have stolen this command from ARCH-Linux ( :lol: ) ... doing all mounts (+the chroot) manually. There is a TIP in our Handbook:
If using Gentoo's install media, this step can be replaced with simply: arch-chroot /mnt/gentoo.
-> https://wiki.gentoo.org/wiki/Handbook:A ... ilesystems

Again: Ask where you are! If you are IN /mnt/gentoo THEN you can use the command arch-chroot . ... if you are in / THEN you must use the command from our Handbook: arch-chroot /mnt/gentoo

... Have more trust in my quick installation guide ... :P
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Nov 23, 2025 7:52 pm

anarchosax,

Baby steps, you need to see/understand what you are doing.

Before you edit any USE flags, run

Code: Select all

emerge -pve @world
and see if you need to.
Run that command after you change USE flags too, to see the effect, if any.
Use flags control optional dependencies only. When you set USE="-qt6" anything that hard depends on qt6 will still pull it in.
Your profile sets lots of USE flags for you.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Mon Nov 24, 2025 9:15 am

I am almost ready to install the kernel (binary), but I ran into the following issue:

Code: Select all

# env-update && /etc/profile && export PS1="(chroot) $PS1"
>>> Regenerating /etc/ld.so.cache...
bash: /etc/profile: Permission denied
I am root, in chroot so I don't really understand the message.

Edit:
This should be sorted now. Syntax error.
Last edited by anarchosax on Mon Nov 24, 2025 9:27 am, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Nov 24, 2025 9:25 am

anarchosax,

You asked the shell to execute /etc/profile. It's not something that gets executed, so permission denied is correct.
If you examine the permissions, it does not have +x.
That's correct.

/etc/profile is someting that is sourced.
The command should be

Code: Select all

source /etc/profile
It's also written

Code: Select all

. /etc/profile
Don't miss the dot.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Mon Nov 24, 2025 10:05 am

NeddySeagoon wrote:anarchosax,

You asked the shell to execute /etc/profile. It's not something that gets executed, so permission denied is correct.
If you examine the permissions, it does not have +x.
That's correct.

/etc/profile is someting that is sourced.
The command should be

Code: Select all

source /etc/profile
It's also written

Code: Select all

. /etc/profile
Don't miss the dot.
Thanks for that. I ran into another issue, not sure what is going on:

Code: Select all

emerge -q sys-kernel/gentoo-kernel-bin
--- Invalid atom in /etc/portage/package.use/installkernel: “sys-kernel/installkernel

 * IMPORTANT: 20 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

[ebuild  N    ] sys-boot/gnu-efi-4.0.2 
[ebuild  N    ] app-crypt/sbsigntools-0.9.5 
[ebuild  N    ] dev-util/pahole-1.30 
[ebuild  N    ] app-text/asciidoc-10.2.1 
[ebuild  N    ] sys-kernel/dracut-106-r2 
[ebuild   R   ] sys-kernel/installkernel-60 
[ebuild  N    ] sys-kernel/gentoo-kernel-bin-6.12.54 
[ebuild  N    ] virtual/dist-kernel-6.12.54 

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sys-kernel/gentoo-kernel-bin-6.12.54::gentoo[initramfs]
# required by virtual/dist-kernel-6.12.54::gentoo
>=sys-kernel/installkernel-60 dracut

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.
I ran into the "invalid atom before:

Code: Select all

emerge -q sys-kernel/installkernel
--- Invalid atom in /etc/portage/package.use/installkernel: “sys-kernel/installkernel
Then there is of course the following:

Code: Select all

[ebuild   R   ] sys-kernel/installkernel-60
Is that a dependency for the gentoo-kernel-bin package?

Edit:
OK, I omitted the -q flag on the two commands, but I get the following:

Code: Select all

[ebuild   R    ] sys-kernel/installkernel-60  USE="dracut*"
I have run:

Code: Select all

echo “sys-kernel/installkernel dracut grub” >> /etc/portage/package.use/installkernel
so, I am a bit unsure what is going on...
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Nov 24, 2025 12:19 pm

anarchosax,

Portage cannot parse

Code: Select all

--- Invalid atom in /etc/portage/package.use/installkernel: 
so we need to see its entire content to determine the problem.

That means that the package list the emerge command produced is incomplete/wrong/misleading, it's not useful anyway.
We have to fix the first error as it can trigger further errors.

You have sys-kernel/installkernel-60 installed already

Code: Select all

[ebuild   R   ] sys-kernel/installkernel-60
the R means that it is to be rebuilt but we can't see why.
That would need the --verbose option to emerge.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Nov 24, 2025 12:39 pm

anarchosax wrote:

Code: Select all

[ebuild  N    ] app-crypt/sbsigntools-0.9.5
tells me you are trying something you have not mentioned ... :lol: ... always tell us erverything you have tried before ... ;-)

Now do what @Neddy already said. 8)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Mon Nov 24, 2025 1:22 pm

pietinger wrote:
anarchosax wrote:

Code: Select all

[ebuild  N    ] app-crypt/sbsigntools-0.9.5
tells me you are trying something you have not mentioned ... :lol: ... always tell us erverything you have tried before ... ;-)

Now do what @Neddy already said. 8)
Here are all the commands that I have run (from notes):

Code: Select all

# emerge-webrsync

# emerge --ask --verbose --oneshot app-portage/mirrorselect
# mirrorselect -i -o >> /etc/portage/make.conf

# eselect profile list | less

Quit out of less.

# eselect profile set 3
# emerge --sync --quiet
# emerge --ask --verbose --update --deep --changed-use @world
# getuto
# emerge --sync --quiet
# ln -sf ../usr/share/zoneinfo/XXX


# nano /etc/locale.gen

Uncomment en_US.UTF-8 UTF-8

# locale-gen
# eselect locale list
# eselect locale set X
# . /etc/profile
# env-update && source /etc/profile && export PS1="(chroot) $PS1"

# echo 'sys-kernel/linux-firmware @BINARY-REDISTRIBUTABLE' | tee -a /etc/portage/package.license

# emerge -q sys-kernel/linux-firmware
# emerge sys-firmware/sof-firmware

# echo “sys-kernel/installkernel dracut grub” >> /etc/portage/package.use/installkernel
# emerge sys-kernel/installkernel
# emerge sys-kernel/gentoo-kernel-bin
Unsure as to which command that I should use the --verbose flag on, but here are the errors that appear in my terminal (for transparency):

Code: Select all

* Messages for package sys-apps/portage-3.0.69.3-r2:

 * Unable to find kernel sources at /usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version

* Messages for package app-alternatives/gpg-0-r2:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/bin/gpgv
 *      /usr/bin/gpg
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * None of the installed packages claim the file(s).
 * 
 * Package 'app-alternatives/gpg-0-r2' merged despite file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.

 * Messages for package dev-lang/perl-5.42.0-r1:

 * UPDATE THE PERL MODULES:
 * After updating dev-lang/perl to a new major version the installed Perl modules
 * have to be re-installed. In most cases, this is done automatically
 * by the package manager.
 * ONLY if you encounter problems, call perl-cleaner to clean up any old files
 * and trigger any remaining rebuilds portage may have missed.
 * Use: perl-cleaner --all

* Messages for package sys-apps/coreutils-9.8-r1:

 * Make sure you run 'hash -r' in your active shells.
 * You should also re-source your shell settings for LS_COLORS
 *   changes, such as: source /etc/profile


 * Messages for package sys-apps/locale-gen-3.9-r1:

 * As of version 3.9, locale-gen(8) only supports locale/charmap pairs that are
 * officially supported by glibc itself. For most users, there should be no
 * impact. Nevertheless, if running locale-gen(8) raises errors regarding
 * unsupported combinations, it will be necessary to modify its config file.
 * The locale.gen(5) man page explains how to determine which are supported.

* Messages for package sys-libs/pam-1.7.1-r2:

 * Some software with pre-loaded PAM libraries might experience
 * warnings or failures related to missing symbols and/or versions
 * after any update. While unfortunate this is a limit of the
 * implementation of PAM and the software, and it requires you to
 * restart the software manually after the update.
 * You can get a list of such software running a command like
 *   lsof / | grep -E -i 'del.*libpam\.so'
 * Alternatively, simply reboot your system.
 
 * Messages for package sys-auth/elogind-255.17-r1:

 * Unable to find kernel sources at /usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 
 * Messages for package sys-apps/portage-3.0.69.3-r2:

 * Unable to find kernel sources at /usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3053
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Mon Nov 24, 2025 2:19 pm

anarchosax wrote:

Code: Select all

--- Invalid atom in /etc/portage/package.use/installkernel: “sys-kernel/installkernel
Make note of the “ character there.
anarchosax wrote:I have run:

Code: Select all

echo “sys-kernel/installkernel dracut grub” >> /etc/portage/package.use/installkernel
so, I am a bit unsure what is going on...
Check a look into the file '/etc/portage/package.use/installkernel'.

It will not contain what you might expect. :]
Kindest of regardses.
Top
Post Reply

45 posts
  • 1
  • 2
  • Next

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic