Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eselect failed to get a list of valid profiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kane82
n00b
n00b


Joined: 04 Mar 2019
Posts: 3

PostPosted: Mon Mar 04, 2019 7:35 am    Post subject: eselect failed to get a list of valid profiles Reply with quote

ive seen some other posts about thsi but none coudl help me

when i do eselect profile show
output is

current /etc/portage/make.profile symlink

but if i nano /etc/portage/make.profile

i get a blank file

can someone please help im in chroot


kane
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6960

PostPosted: Mon Mar 04, 2019 8:18 am    Post subject: Reply with quote

make.profile should be a symbolic link, if it points to nothing or a dead entry it should be what disturb eselect output
working or not, a symbolic link is an empty file in nano
you can use ls, readlink or file to see its target

Code:
>file /etc/portage/make.profile
/etc/portage/make.profile: symbolic link to ../../usr/portage/profiles/default/linux/amd64/17.0
>eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/17.0

I think you can just fix that using eselect profile list then eselect profile set # or eselect profile set # --force
Back to top
View user's profile Send private message
kane82
n00b
n00b


Joined: 04 Mar 2019
Posts: 3

PostPosted: Mon Mar 04, 2019 8:40 am    Post subject: Reply with quote

using eselect profile list and the other two options retuns the result failed to get a lpist of valid profiles

what do i put as eselect profile set # --force exactly?

kane
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6960

PostPosted: Mon Mar 04, 2019 8:47 am    Post subject: Reply with quote

kane82 wrote:
using eselect profile list and the other two options retuns the result failed to get a lpist of valid profiles

what do i put as eselect profile set # --force exactly?

kane


Code:
eselect profile
Usage: eselect profile <action> <options>

Standard actions:
  help                      Display help text
  usage                     Display usage information
  version                   Display version information

Extra actions:
  list                      List available profile symlink targets
  set <target>              Set a new profile symlink target
    target                    Target name or number (from 'list' action)
    --force                   Forcibly set the symlink
  show                      Show the current make.profile symlink

I'm not quiet sure, i assume the --force may be use to set the profile by forcing the file to be a symlink (for case when the file exist already but is not a symlink)

If profile list return nothing, then you have issue with the portage tree, either it is empty or portage cannot find it ; profiles are download with the tree and belong in /usr/portage/profiles
if portage is not set to look in /usr/portage or that directory is empty (on new install if you forget to emerge --sync before using eselect, /usr/portage will hold no profiles), no profiles could be use
Back to top
View user's profile Send private message
kane82
n00b
n00b


Joined: 04 Mar 2019
Posts: 3

PostPosted: Mon Mar 04, 2019 9:10 am    Post subject: Reply with quote

ive done emerge -sync and then eselect with thwe same result
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42559
Location: 56N 3W

PostPosted: Mon Mar 04, 2019 9:37 am    Post subject: Reply with quote

kane82,

Your profile are stored in the portage tree at /usr/portage/profiles/...

What do you have in /usr/portage/profiles/default/linux/amd64/ or whatever your arch is?

In days of old, this symlink was set by hand. That still works
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bambogambo
n00b
n00b


Joined: 04 Mar 2019
Posts: 2
Location: Bielsko-Biala, Poland

PostPosted: Wed Mar 06, 2019 1:48 pm    Post subject: Reply with quote

Hi, I don't want to interrupt since other people are trying to solve it, but aren't you looking for what the command below does?

Code:
eselect profile list


The topic seems like you want to list all targets.
_________________
This is my Gentoo. There are many like it, but this one is mine.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42559
Location: 56N 3W

PostPosted: Wed Mar 06, 2019 5:45 pm    Post subject: Reply with quote

kane82,

bambogambo got it right, the rest of us are not reading what you wrote.
Code:
nano /etc/portage/make.profile
should return an empty file as yo say with

[ "/etc/portage/make.profile" is a directory ] at the bottom.

As /etc/portage/make.profile is a directory, nano is not the right tool to use on it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

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