On Sonntag, 25. Dezember 2022 11:10:26 CET Mark Gray wrote:

> See:

> After update: when ssh'ing to other 15.4: Invalid environment assignments

> https://bugzilla.opensuse.org/show_bug.cgi?id=1206500

>

> Basically there is some bash function in your environment that

> dbus-update-activation-environment misinterprets as a variable and

> systemd objects. In my case the "mc" package added a "mc" bash

> function that causes the problem. Removing the "mc" package fixes

> the bug. In the case of the poster of the bug it was "lua-lmod".

>

> If you add --verbose to the end of the call to

> dbus-update-activation-environment it will tell you which bash

> function is screwing up for you. I suspect that the command should

> not use "--all" and list only the precise environment variables

> that systemd should know about, but I am not a SuSE employee so I

> have no way of telling which variables they wanted to send.


On my machine the error message is shown for every variable.

I tried to do exactly what you suggested - set one variable at a time.