-1

when i start my laptop, i get the following error message:

Error found when loading /etc/profile.d/maven.sh: line 1:[200~export: command not found

Screenshot of the Error

Can someone please provide me with a solution? it seems to be a unique problem and I could not find any solution on this site or anywhere. Unique in the sense, I have not seen anywhere else that it says it has an error at "line 1".

Thank you in advance!

2 Answers2

0

Verify the contents of the file /etc/profile.d/maven.sh. If you created it yourself, remove the garbage characters [200~ from the beginning of the file and check whether the remainder of the file has any more garbage sprinkled into it. If it came with some package you installed, reconfigure or reinstall that package.

Tilman
  • 3,769
-1

The first line of your script should specify the interpreter for the script, using the #! convention. If the first line isn't something like.

#!/bin/bash

an old interpreter, /bin/sh, is used. /bin/sh doesn't understand export.

Put the above code before your export.

waltinator
  • 37,856