Update-alternatives: error: unknown argument when trying to change the auto option

These are my alternatives for that topic

sudo update-alternatives --config default-displaymanager
There are 4 choices for the alternative default-displaymanager (providing /usr/lib/X11/displaymanagers/default-displaymanager).

  Selection    Path                                  Priority   Status
------------------------------------------------------------
* 0            /usr/lib/X11/displaymanagers/gdm       25        auto mode
  1            /usr/lib/X11/displaymanagers/console   5         manual mode
  2            /usr/lib/X11/displaymanagers/gdm       25        manual mode
  3            /usr/lib/X11/displaymanagers/lightdm   15        manual mode
  4            /usr/lib/X11/displaymanagers/xdm       10        manual mode

Press <enter> to keep the current choice[*], or type selection number: 0

this is the command I tried

sudo update-alternatives --auto default-displaymanager /usr/lib/X11/displaymanagers/lightdm

but it recognises lightdm as an unknown argument. How do I properly set something to be auto without that error?

sudo update-alternatives --auto default-displaymanager

just yields nothing. And 3 was an invalid argument too.
I have no idea how to use yast for this as I cannot select an alternative to update after searching.

https://en.opensuse.org/SDB:Change_Display_Manager

Also have a look at man update-alternatives

Did you do as it prompts?

It is not how you show program errors. You copy and paste the full command line, its complete output and the subsequent shell prompt. You do not paraphrase the command output.

Anyway, first you request the alternative to be set automatically and then you provide an explicit value. It should be fairly obvious that two options are mutually exclusive.

Thanks, I only read --help and I thought auto set the auto, not made it auto. But the wiki page didn’t work as it just went back to auto, that’s why I’m trying to set the auto as something else.

I placed it in the title but I decided to remove /usr/lib/X11/displaymanagers/lightdm later and I forgot about it. And yes, I did, that’s why there is a 0. The other ones were set only temporary and after rebooting they went back. That’s why I’m changing the auto. It isn’t about it. But yeah, the other person helped because I forgot that there is man for opensuse commands.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.