Error in /etc/environment

Hi, I am using Slowroll since yesterday and so far I like it a lot. It’s been around 3 years that I did not use an openSUSE distro (Tumbleweed) and I thought I would see what it is up to now. I then came across Slowroll and decided to use that.

I have installed Cockpit and in the logs I see a lot of lines like the one below, only issued by other programs:

pam_env(cockpit:session): Unable to read configuration file /etc//environment line 2: Missing delimiter
I don’t know why there is a double forward slash in the path but this is what I copied from the logs.
The environment file contains this:

cat /etc/environment 
#Change $PATH
export PATH=/home/jan/.local/bin:/usr/local/bin:/usr/bin:/bin:/home/jan/bin

 User jan @ Server Medion-Slowroll in Folder ~ : vr apr 17 - 12:25:21

I checked and all mentioned folders do exist.
So, what is wrong here, what don’t I see?

I doubt this last line should be there?

This last line Henk, is my prompt to show that the command has finished.

Remove the export part this file is not a shell file.

man environment

Better also include the prompt of the command line. Then we would have understood what your rather elaborate prompt is.

Example:

henk@boven:~> uname -s
Linux
henk@boven:~> 

I indeed missed the prompt because it is a the next line:

User jan @ Server Medion-Slowroll in Folder ~ : vr apr 17 - 12:25:21
$ 

So the next command is typed on line 2 of the prompt.

It is nice you have such a prompt, but do not expect others to be clairvoyant. If the prompt exists of 10 lines, then show 10 lines. At the start and at the end.

I just changed this and until now the error is gone.
Thank you very much.

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