Forums

Skip to content

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

[SOLVED] Gentoo broken in a lot of ways for no reason

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
42 posts
  • 1
  • 2
  • Next
Author
Message
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

[SOLVED] Gentoo broken in a lot of ways for no reason

  • Quote

Post by Ari_archer » Thu Sep 30, 2021 12:06 pm

Hello, today I wanted to upgrade and got this message:

Code: Select all

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

looked it up, remade the symlink in /etc/make.profile, etc. nothing worked.

running etc-update gives this:

Code: Select all

sed: can't read /usr/etc/etc-update.conf: No such file or directory
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
/usr/etc doesn't exist, but etc-update.conf can be found in /etc/


eselect profile list errors out:

Code: Select all

!!! Error: get_repos failed
!!! Error: Failed to get a list of valid profiles
exiting


my settings are not even loaded by portage:

Code: Select all

Portage 3.0.26 (python 3.9.6-final-0, unavailable, gcc-10.3.0, unavailable, 5.14.8-gentoo x86_64)
=================================================================
System uname: Linux-5.14.8-gentoo-x86_64-Intel-R-_Core-TM-_i3-8130U_CPU_@_2.20GHz-with-glibc2.33
KiB Mem:     3937072 total,    955972 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Tue, 28 Sep 2021 20:36:25 +0000
sh sh
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_LICENSE="* -@EULA"
CFLAGS=""
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS=""
DISTDIR="/var/cache/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS=""
MAKEOPTS="-j4 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/usr/"
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"
USE=""
Unset:  ACCEPT_KEYWORDS, CBUILD, CC, CHOST, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

binutils also broken:

Code: Select all

 * binutils-config: unable to locate a profile for target:

emerge --sync throws a python error:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/emerge", line 51, in <module>
    retval = emerge_main()
  File "/root/.local/lib/python3.9/site-packages/_emerge/main.py", line 1318, in emerge_main
    return run_action(emerge_config)
  File "/root/.local/lib/python3.9/site-packages/_emerge/actions.py", line 3778, in run_action
    return action_sync(emerge_config)
  File "/root/.local/lib/python3.9/site-packages/_emerge/actions.py", line 2388, in action_sync
    success, msgs = syncer.auto_sync(options=options)
  File "/root/.local/lib/python3.9/site-packages/portage/emaint/modules/sync/sync.py", line 90, in auto_sync
    return self._sync(repos, return_messages, emaint_opts=options)
  File "/root/.local/lib/python3.9/site-packages/portage/emaint/modules/sync/sync.py", line 264, in _sync
    display_news_notification(
  File "/root/.local/lib/python3.9/site-packages/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/root/.local/lib/python3.9/site-packages/_emerge/post_emerge.py", line 42, in display_news_notification
    news_counts = count_unread_news(portdb, vardb)
  File "/root/.local/lib/python3.9/site-packages/portage/news.py", line 471, in count_unread_news
    count = manager.getUnreadItems(repo, update=True)
  File "/root/.local/lib/python3.9/site-packages/portage/news.py", line 214, in getUnreadItems
    self.updateItems(repoid)
  File "/root/.local/lib/python3.9/site-packages/portage/news.py", line 174, in updateItems
    if item.isRelevant(
  File "/root/.local/lib/python3.9/site-packages/portage/news.py", line 289, in isRelevant
    if restriction.checkRestriction(**kwargs):
  File "/root/.local/lib/python3.9/site-packages/portage/news.py", line 399, in checkRestriction
    return kwargs["profile"].startswith(self.profile[:-1])
AttributeError: 'NoneType' object has no attribute 'startswith'

i can't even list packages....

and for some odd reason I was also logged out of my account on here

In general A LOT is broken and I don't understand why?


here's some info:

my /etc/portage: https://github.com/TruncatedDinosour/do ... ge/portage

tell me if you need any other info
Last edited by Ari_archer on Sun Oct 03, 2021 9:42 pm, edited 1 time in total.
Best regards,
Arija A.
Top
forrestfunk81
Guru
Guru
User avatar
Posts: 567
Joined: Tue Feb 07, 2006 12:33 pm
Location: münchen.de

  • Quote

Post by forrestfunk81 » Thu Sep 30, 2021 12:35 pm

Your PORTAGE_CONFIGROOT is incorrect. I just checked three of my systems and this variable is always set to /

Code: Select all

PORTAGE_CONFIGROOT="/" 
I don't know if you changed this on purpose nor where you set this variable, maybe in /etc/portage/make.conf. Also I never noticed the existence of this variable before. I never had to change it.
# cd /pub/
# more beer
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Thu Sep 30, 2021 12:40 pm

forrestfunk81 wrote:Your PORTAGE_CONFIGROOT is incorrect. I just checked three of my systems and this variable is always set to /

Code: Select all

PORTAGE_CONFIGROOT="/" 
I don't know if you changed this on purpose nor where you set this variable, maybe in /etc/portage/make.conf. Also I never noticed the existence of this variable before. I never had to change it.

That doesn't work...

well it does when I do:

Code: Select all

$ sudo PORTAGE_CONFIGROOT="/" emerge --sync
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Trusted signature found on top commit

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
but my make.conf is not being sourced as i mentioned in the post
Best regards,
Arija A.
Top
forrestfunk81
Guru
Guru
User avatar
Posts: 567
Joined: Tue Feb 07, 2006 12:33 pm
Location: münchen.de

  • Quote

Post by forrestfunk81 » Thu Sep 30, 2021 1:47 pm

Ari_archer wrote: but my make.conf is not being sourced as i mentioned in the post
You mentioned your make.profile, not the make.conf. But I can see on github make.conf that PORTAGE_CONFIGROOT is not set there.

Is it probably set as an environment variable?

Code: Select all

env | grep PORTAGE_CONFIGROOT
Is it a new Gentoo install or are you using the installation since some time? Most likely some of your last emerges installed the configuration files to the wrong place (e.g. /usr/etc/ instead of /etc/).

You should cleanup /usr/. Move your files which don't belong there to the appropriate location (most of it should be etc). You can also reinstall the affected packages with the correct config_root. This should install the files to the correct location. Therefore you either know when this problem occurred fist and then have a look at /var/log/emerge.log to find packages installed after or just reinstall all packages.

Code: Select all

PORTAGE_CONFIGROOT="/" emerge -eva world
# cd /pub/
# more beer
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Thu Sep 30, 2021 2:10 pm

forrestfunk81 wrote:
Ari_archer wrote: but my make.conf is not being sourced as i mentioned in the post
You mentioned your make.profile, not the make.conf. But I can see on github make.conf that PORTAGE_CONFIGROOT is not set there.

Is it probably set as an environment variable?

Code: Select all

env | grep PORTAGE_CONFIGROOT
Is it a new Gentoo install or are you using the installation since some time? Most likely some of your last emerges installed the configuration files to the wrong place (e.g. /usr/etc/ instead of /etc/).

You should cleanup /usr/. Move your files which don't belong there to the appropriate location (most of it should be etc). You can also reinstall the affected packages with the correct config_root. This should install the files to the correct location. Therefore you either know when this problem occurred fist and then have a look at /var/log/emerge.log to find packages installed after or just reinstall all packages.

Code: Select all

PORTAGE_CONFIGROOT="/" emerge -eva world
sorry, I meant the "my settings are not being loaded" part

not an env variable

I've been using the install for around a month

my last successful emerge was mypaint and the last failed one was qutebrowser

`PORTAGE_CONFIGROOT="/" emerge -eva world` and `USE="" PORTAGE_CONFIGROOT="/" emerge -eva world` fail:

Code: Select all

 * Error: circular dependencies:

(app-portage/elt-patches-20201205:0/0::gentoo, ebuild scheduled for merge) depends on
 (app-arch/xz-utils-5.2.5-r1:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (app-portage/elt-patches-20201205:0/0::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
Best regards,
Arija A.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

Re: Gentoo broken in a lot of ways for no reason

  • Quote

Post by Tony0945 » Thu Sep 30, 2021 4:47 pm

Ari_archer wrote:!!! Your current profile is invalid.
What is the result of "eselect profile list"
If none of the profiles have "*" after them you probably had a profile that has been eliminated.
Like 13.0 was eliminated.
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

Re: Gentoo broken in a lot of ways for no reason

  • Quote

Post by Hu » Thu Sep 30, 2021 6:01 pm

Please post the output of declare -p ; emerge --info. I see that you posted emerge --info above, but I want to see it as run from the same shell where we see the full environment. If you use sudo to run commands, please use sudo sh -c 'declare -p ; emerge --info'.
Tony0945 wrote:What is the result of "eselect profile list"
If none of the profiles have "*" after them you probably had a profile that has been eliminated.
Like 13.0 was eliminated.
Based on other output, I think the problem is that the symlink itself is not found, since it is sought in the wrong place.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

Re: Gentoo broken in a lot of ways for no reason

  • Quote

Post by Ari_archer » Thu Sep 30, 2021 6:19 pm

Tony0945 wrote:
Ari_archer wrote:!!! Your current profile is invalid.
What is the result of "eselect profile list"
If none of the profiles have "*" after them you probably had a profile that has been eliminated.
Like 13.0 was eliminated.

Code: Select all

!!! Error: get_repos failed
!!! Error: Failed to get a list of valid profiles
exiting

my profile is default/linux/amd64/17.1/no-multilib
Last edited by Ari_archer on Thu Sep 30, 2021 9:49 pm, edited 1 time in total.
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

Re: Gentoo broken in a lot of ways for no reason

  • Quote

Post by Ari_archer » Thu Sep 30, 2021 6:24 pm

Hu wrote:Please post the output of declare -p ; emerge --info. I see that you posted emerge --info above, but I want to see it as run from the same shell where we see the full environment. If you use sudo to run commands, please use sudo sh -c 'declare -p ; emerge --info'.
Tony0945 wrote:What is the result of "eselect profile list"
If none of the profiles have "*" after them you probably had a profile that has been eliminated.
Like 13.0 was eliminated.
Based on other output, I think the problem is that the symlink itself is not found, since it is sought in the wrong place.

the symlink to make.profile is to ../../var/db/repos/gentoo/profiles/default/linux/amd64/17.1/no-multilib

also the ourput of sudo sh -c 'declare -p ; emerge --info' is:

https://nekobin.com/sosupebujo


Also sudo is an alias to this for me:
alias sudo='/usr/bin/sudo env "PATH=$PATH"'
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Fri Oct 01, 2021 11:21 am

I think portage itself might be the issue, tried emergeing it with sudo PORTAGE_CONFIGROOT='/' emerge portage -v
and got this: https://nekobin.com/roxejisuta
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Fri Oct 01, 2021 6:00 pm

I symblic linked /usr/etc to /etc (/usr/etc was not there):

Code: Select all

sudo ln -s /etc /usr/etc
Portage doesn't throw the "make.profile is not a symlink" and eselect doesn't work:
eselect profile show

Code: Select all

Current /etc/portage/make.profile symlink:
!!! Error: get_repos failed
exiting
sudo emerge -uDU --with-bdeps=y @world

Code: Select all

Total: 295 packages (295 new), Size of downloads: 286,469 KiB

 * Error: circular dependencies:

(app-portage/elt-patches-20201205:0/0::gentoo, ebuild scheduled for merge) depends on
 (app-arch/xz-utils-5.2.5-r1:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (app-portage/elt-patches-20201205:0/0::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
(why so many new pkgs? I upgraded like 2 days ago heh and not a lot of apps are under ~amd64 nor have this many deps....)


/usr/share/eselect/modules/profile.eselect has a function get_repos:

Code: Select all

get_repos() {
    # sort: DEFAULT_REPO first, then alphabetical order
    portageq get_repos "${EROOT:-/}" \
        | sed "s/[[:space:]]\+/\n/g;s/^${DEFAULT_REPO}\$/ &/gm" \
        | LC_ALL=C sort
    [[ "${PIPESTATUS[*]}" = "0 0 0" ]]
}

It uses the EROOT variable, it's empty and it falls back to /, which doesn't work sadly.
when I manually type portageq get_repos / it fails:

Code: Select all

ERROR: This version of portageq only supports <eroot>s ending in '/usr'. The provided <eroot>, '/', doesn't.
but portageq get_repos /usr works:

Code: Select all

torbrowser dinolay gentoo

I'm guessing portage was supposed to work without me needing to symlink it as it did before, but whatever hehe, now the question
is how should I made the EROOT variable valid?

and should I unlink /usr/etc from /etc as it was not there before?
Best regards,
Arija A.
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Oct 01, 2021 6:37 pm

Those nekobin links come up blank for me. I cannot see any content. Please post it inline or use a working pastebin service.
Ari_archer wrote:I symblic linked /usr/etc to /etc (/usr/etc was not there):
This was not correct. /usr/etc should not exist.
Ari_archer wrote:sudo emerge -uDU --with-bdeps=y @world

Code: Select all

Total: 295 packages (295 new), Size of downloads: 286,469 KiB
(why so many new pkgs? I upgraded like 2 days ago heh and not a lot of apps are under ~amd64 nor have this many deps....)
We would need to see a sample of the packages to investigate.
Ari_archer wrote:when I manually type portageq get_repos / it fails:

Code: Select all

ERROR: This version of portageq only supports <eroot>s ending in '/usr'. The provided <eroot>, '/', doesn't.
This is probably more fallout from your use of $PORTAGE_CONFIGROOT.
Ari_archer wrote:is how should I made the EROOT variable valid?
As I understand it, EROOT being blank is correct for regular users. EROOT is used for Prefix installs, and possibly in some other unusual cases that likely do not apply here.
Ari_archer wrote:and should I unlink /usr/etc from /etc as it was not there before?
Yes.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Fri Oct 01, 2021 9:17 pm

Hu wrote:Those nekobin links come up blank for me. I cannot see any content. Please post it inline or use a working pastebin service.
Ari_archer wrote:I symblic linked /usr/etc to /etc (/usr/etc was not there):
This was not correct. /usr/etc should not exist.
Ari_archer wrote:sudo emerge -uDU --with-bdeps=y @world

Code: Select all

Total: 295 packages (295 new), Size of downloads: 286,469 KiB
(why so many new pkgs? I upgraded like 2 days ago heh and not a lot of apps are under ~amd64 nor have this many deps....)
We would need to see a sample of the packages to investigate.
Ari_archer wrote:when I manually type portageq get_repos / it fails:

Code: Select all

ERROR: This version of portageq only supports <eroot>s ending in '/usr'. The provided <eroot>, '/', doesn't.
This is probably more fallout from your use of $PORTAGE_CONFIGROOT.
Ari_archer wrote:is how should I made the EROOT variable valid?
As I understand it, EROOT being blank is correct for regular users. EROOT is used for Prefix installs, and possibly in some other unusual cases that likely do not apply here.
Ari_archer wrote:and should I unlink /usr/etc from /etc as it was not there before?
Yes.
https://nekobin.com/sosupebujo :
https://ari-web.netlify.app/data/sosupebujo

https://nekobin.com/roxejisuta :
https://ari-web.netlify.app/data/roxejisuta

(if those don't appear - curl or wget them)

pastebin is not loading, keeps hanging and dies with a "server not found"
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sat Oct 02, 2021 12:43 pm

It seems like dracut is also miss-behaving:
https://ari-web.netlify.app/data/kernel_build

At this point I think I tried everything and thinking about just reinstalling...
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 9:43 am

Sorry guys, I will reinstall gentoo, nothing is working, I will keep my instllation for today just in case I find some fix, but I think I tried everything. I will update y'all.
Best regards,
Arija A.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56089
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 10:10 am

Ari_archer,

Code: Select all

PORTAGE_CONFIGROOT="/usr/"
should be ="/" or unset.
While that's set like that, almost nothing works as portage looks for most things in /usr and not in / (root).
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sun Oct 03, 2021 12:10 pm

Amplifying Nedy Seagoon's post:

Code: Select all

sudo grep CONFIG_ROOT -r /etc/* |grep -i ^#
If anything shows up, edit the offending file by prepending #

Interestingly I found a bunch of stuff under /etc/kernels from 2011 and 2015. "equery b" doesn't show what /etc/kernels belongs to. I think it's cruft from when I used genkernel.

I think you are very close and quitting and starting over will gain you no knowledge.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56089
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 12:25 pm

Tony0945,

Yep, it belonged to genkernel.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 12:57 pm

NeddySeagoon wrote:Ari_archer,

Code: Select all

PORTAGE_CONFIGROOT="/usr/"
should be ="/" or unset.
While that's set like that, almost nothing works as portage looks for most things in /usr and not in / (root).
I didn't define PORTAGE_CONFIGROOT
Best regards,
Arija A.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 12:58 pm

Tony0945 wrote:Amplifying Nedy Seagoon's post:

Code: Select all

sudo grep CONFIG_ROOT -r /etc/* |grep -i ^#
If anything shows up, edit the offending file by prepending #

Interestingly I found a bunch of stuff under /etc/kernels from 2011 and 2015. "equery b" doesn't show what /etc/kernels belongs to. I think it's cruft from when I used genkernel.

I think you are very close and quitting and starting over will gain you no knowledge.
Nothing showed up and I run a custom kernel
Best regards,
Arija A.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56089
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 2:03 pm

Ari_archer,

Try just

Code: Select all

grep CONFIG_ROOT -r /etc/*
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Ari_archer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 130
Joined: Mon Aug 30, 2021 11:52 am
Location: Lithuania
Contact:
Contact Ari_archer
Website

  • Quote

Post by Ari_archer » Sun Oct 03, 2021 2:49 pm

NeddySeagoon wrote:Ari_archer,

Try just

Code: Select all

grep CONFIG_ROOT -r /etc/*

Code: Select all

/etc/kernel_configs/kernel_config_8:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_7:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_6:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_4:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_5:CONFIG_ROOT_NFS=y
with permission errors:

Code: Select all

/bin/grep: /etc/cups/cupsd.conf: Permission denied
/bin/grep: /etc/cups/snmp.conf.default: Permission denied
/bin/grep: /etc/cups/cups-files.conf: Permission denied
/bin/grep: /etc/cups/snmp.conf: Permission denied
/bin/grep: /etc/cups/cups-files.conf.default: Permission denied
/bin/grep: /etc/default/useradd: Permission denied
/bin/grep: /etc/gshadow: Permission denied
/bin/grep: /etc/gshadow-: Permission denied
/etc/kernel_configs/kernel_config_8:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_7:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_6:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_4:CONFIG_ROOT_NFS=y
/etc/kernel_configs/kernel_config_5:CONFIG_ROOT_NFS=y
/bin/grep: /etc/libvirt/nwfilter/allow-dhcpv6.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-other-rarp-traffic.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-ipv4.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-arp-mac-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcpv6-server.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ip-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/qemu-announce-self-rarp.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-ipv6.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ip-multicast.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-arp-ip-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-mac-broadcast.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ipv6-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/clean-traffic-gateway.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcp.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-dhcp-server.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/qemu-announce-self.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-mac-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/clean-traffic.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-arp-spoofing.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-ipv6-multicast.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/no-other-l2-traffic.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-incoming-ipv6.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-incoming-ipv4.xml: Permission denied
/bin/grep: /etc/libvirt/nwfilter/allow-arp.xml: Permission denied
/bin/grep: /etc/libvirt/qemu/networks/default.xml: Permission denied
/bin/grep: /etc/libvirt/secrets: Permission denied
/bin/grep: /etc/nullmailer/remotes: Permission denied
/bin/grep: /etc/shadow: Permission denied
/bin/grep: /etc/shadow-: Permission denied
/bin/grep: /etc/skel/.ssh: Permission denied
/bin/grep: /etc/ssh/ssh_host_dsa_key: Permission denied
/bin/grep: /etc/ssh/ssh_host_ed25519_key: Permission denied
/bin/grep: /etc/ssh/ssh_host_rsa_key: Permission denied
/bin/grep: /etc/ssh/ssh_host_ecdsa_key: Permission denied
/bin/grep: /etc/ssh/sshd_config: Permission denied
/bin/grep: /etc/ssl/private: Permission denied
/bin/grep: /etc/sudoers: Permission denied
/bin/grep: /etc/sudoers.d: Permission denied
/bin/grep: /etc/sudoers.dist: Permission denied
Best regards,
Arija A.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56089
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Oct 03, 2021 3:31 pm

Ari_archer,

There are no hits in /etc/portage, nor are there any permission denied problems in /etc/portage

That tells that CONFIG_ROOT is not set by anything that we would expect to influence portage.
It must be in the environment before emerge is started.

As your normal user, try

Code: Select all

grep CONFIG_ROOT -r ~/
As the root user,

Code: Select all

grep CONFIG_ROOT -r /root
~ is short for /home/<user_name/>
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sun Oct 03, 2021 3:49 pm

I notice this from March 2021 on the web:
https://dev.gentoo.org/~zmedico/portage ... rge.1.html
PORTAGE_CONFIGROOT = [path]
Use PORTAGE_CONFIGROOT to specify the location for various portage configuration files (see FILES for a detailed list of configuration files). This variable can be set via the --config-root option. However, it is now superseded by the SYSROOT variable and can only be given if its value matches SYSROOT or if ROOT=/.
Defaults to /.
So I searched for that instead:

Code: Select all

~ $ sudo grep SYSROOT -r /etc/*
/etc/portage/savedconfig/sys-apps/busybox-1.23.1-r1:CONFIG_SYSROOT=""
/etc/portage/savedconfig/sys-apps/busybox-1.32.1-r1:CONFIG_SYSROOT=""
For what it's worth, if anything.
Top
dbtx
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Mon Jan 20, 2020 5:31 am
Contact:
Contact dbtx
Website

  • Quote

Post by dbtx » Sun Oct 03, 2021 4:30 pm

CONFIG_ROOT appears to be a contagious typo that wouldn't match PORTAGE_CONFIGROOT anyway.
Top
Post Reply

42 posts
  • 1
  • 2
  • Next

Return to “Other Things 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