§2023-08-27


mount --types proc /proc root/proc
mount --rbind /sys root/sys
mount --make-rslave root/sys
mount --rbind /dev root/dev
mount --make-rslave root/dev
mount --bind /run root/run
mount --make-slave root/run

pi64 /home/alexlai/build/gentoo/src # lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb           8:16   1 14.9G  0 disk 
├─sdb1        8:17   1  512M  0 part 
└─sdb2        8:18   1 14.4G  0 part /home/alexlai/build/gentoo/src/root
mmcblk0     179:0    0 28.3G  0 disk 
├─mmcblk0p1 179:1    0  255M  0 part /boot
└─mmcblk0p2 179:2    0 28.1G  0 part /
pi64 /home/alexlai/build/gentoo/src # chroot root /bin/bash
pi64 / # export PS1="(chroot) $PS1"
(chroot) pi64 / # nano /etc/resolv.conf
(chroot) pi64 / # ping google.com
PING google.com (172.217.160.78) 56(84) bytes of data.
64 bytes from tsa01s09-in-f14.1e100.net (172.217.160.78): icmp_seq=1 ttl=115 time=4.11 ms
64 bytes from tsa01s09-in-f14.1e100.net (172.217.160.78): icmp_seq=2 ttl=115 time=3.85 ms
pi64 /etc/portage # cp -v /etc/portage/make.conf /home/alexlai/build/gentoo/src/root/etc/portage/
'/etc/portage/make.conf' -> '/home/alexlai/build/gentoo/src/root/etc/portage/make.conf'
pi64 /etc/portage # mkdir /home/alexlai/build/gentoo/src/root/etc/portage/repos.conf
pi64 /etc/portage # cp -v /etc/portage/repos.conf/* /home/alexlai/build/gentoo/src/root/etc/portage/repos.conf
'/etc/portage/repos.conf/genpi64.conf' -> '/home/alexlai/build/gentoo/src/root/etc/portage/repos.conf/genpi64.conf'
'/etc/portage/repos.conf/gentoo.conf' -> '/home/alexlai/build/gentoo/src/root/etc/portage/repos.conf/gentoo.conf'
'/etc/portage/repos.conf/sakaki-tools.conf' -> '/home/alexlai/build/gentoo/src/root/etc/portage/repos.conf/sakaki-tools.conf'
(chroot) pi64 / # ln -sf /usr/portage/profiles/default/linux/amd64/17.1 /etc/portage/make.profile   <-- no apply rpi3
(chroot) pi64 / # emerge-webrsync
eselect profile list
eselect profile set 2

emerge --ask --verbose --update --deep --newuse @world

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)


!!! Section 'genpi64' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/genpi64'
!!! Section 'sakaki-tools' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/sakaki-tools'


!!! /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.


emerge -av sys-kernel/raspberrypi-sources

make menuconfig
make -j4
make modules_install
make install

!!! /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. after emerge --ask --verbose --update --deep --newuse @world, how to fix ChatGPT The error message you're encountering indicates that your Gentoo profile configuration is invalid. This could be due to various reasons, such as a misconfiguration or an issue with your profile setup. Here's how you can try to fix it:

Reverting Profile Configuration: If you recently changed your profile configuration and that caused the issue, you should revert back to the previous configuration:

sh Copy code eselect profile list eselect profile set <previous_profile_number> Replace <previous_profile_number> with the number of the profile you want to revert to.

Updating Portage Tree: Before attempting any fix, ensure your Portage tree is up-to-date:

sh Copy code emerge --sync Check Current Profile: Verify your current profile to ensure that it points to a valid location:

sh Copy code eselect profile show This will display the path to your current profile. It should be something like /var/db/repos/gentoo/profiles/<profile_name>.

Recreate the Symlink: If your profile configuration points to a valid location but the symlink is missing or incorrect, you can recreate it manually:

sh Copy code ln -sf /var/db/repos/gentoo/profiles/<profile_name> /etc/portage/make.profile Replace <profile_name> with the actual name of the profile.

Verify Profile Configuration: After recreating the symlink, verify that your profile configuration is now valid:

sh Copy code eselect profile show Run World Update: Once your profile configuration is fixed, you can proceed with the world update to ensure that all your installed packages are in sync with the profile:

sh Copy code emerge --ask --verbose --update --deep --newuse @world This command will update all packages in your system.

Resolve Any Further Issues: If you encounter any issues during the update process, carefully read the error messages and try to address them. It might involve adjusting package settings, dependencies, or flags.

Reboot (If Necessary): After successfully updating your system, consider rebooting to ensure that all changes take effect.

If you're still facing problems after attempting these steps, consider seeking help from the Gentoo community forums or documentation, as they might have more specific advice for your situation. Remember that system-level changes like these can have significant impacts, so proceed with caution and make sure to have backups before making major changes to your system configuration.

User (chroot) pi64 / # eselect profile show Current /etc/portage/make.profile symlink: default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, tehn ChatGPT It appears that your current profile is set to default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, tehn. This profile configuration should be valid, but you're still encountering issues. Since you've tried to update your system using the @world set and the error persists, let's try some additional steps to resolve the problem:

Recreate the Profile Symlink: Since your profile configuration seems correct, it's possible that the symlink might be broken or pointing to the wrong location. Try recreating the symlink:

sh Copy code ln -sf /var/db/repos/gentoo/profiles/default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr /etc/portage/make.profile Make sure the path matches the actual location of the profile.

Run emerge --info: Run the following command to gather information about your system's configuration:

sh Copy code emerge --info > ~/emerge_info.txt This will create a file named emerge_info.txt in your home directory with detailed information about your Gentoo setup. This file might be helpful for troubleshooting or seeking assistance on forums.

Check for Disk Space: Ensure that you have enough disk space available on your system. Sometimes, insufficient disk space can cause unexpected issues during package installation and updates.

Check Portage Configuration: Verify that your Portage configuration is correct. Check the contents of /etc/portage/make.conf and other relevant configuration files for any inconsistencies or errors.

Check for Filesystem Errors: It's possible that your filesystem might have errors that are affecting the profile symlink. Run a filesystem check on your root partition:

sh Copy code fsck /dev/sdXY Replace /dev/sdXY with the actual device and partition where your Gentoo installation is located.

Try a Different Profile: If none of the above steps work, you might consider switching to a different profile temporarily to see if the issue persists:

sh Copy code eselect profile list eselect profile set <desired_profile_number> Replace <desired_profile_number> with the number of the profile you want to switch to.

Reinstall Portage: If the problem persists and you've exhausted all other options, you might consider reinstalling Portage itself. This can sometimes help resolve deep-seated configuration issues.

sh Copy code emerge --ask --verbose --oneshot sys-apps/portage Remember that these steps involve modifying system-level components, so exercise caution and ensure you have backups of important data before proceeding. If the issue persists, consider reaching out to the Gentoo community forums or mailing lists for more specialized assistance tailored to your specific situation.

Regenerate Send a message

Free Research Preview. ChatGPT may produce inaccurate information about people, places, or facts. ChatGPT August 3 Version

? ChatGPT