-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!

  • Hello. Please do not show pictures of text. It would have been quite easy to have entered that short bit of text into the body of the question. – David Apr 14 '22 at 14:34
  • What you have here is not the complete error. – David Apr 14 '22 at 14:35
  • 1
    You could just open the file and delete the extra nonsense characters – user253751 Apr 14 '22 at 15:17
  • Edit your question and show me cat /etc/profile.d/maven.sh. – heynnema Apr 14 '22 at 16:18
  • @user253751 Until you've seen a cat /etc/profile.d/maven.sh you're just guessing. – heynnema Apr 14 '22 at 23:28
  • thank you guys. I have decided to reinstall everything and i am having trouble just installing maven first. I created a post about this :):

    https://askubuntu.com/questions/1402793/tmp-scheme-missing-same-error-even-when-i-create-a-tmp-folder-what-exactly

    – RocketEngineerStudent Apr 16 '22 at 11:09

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,599
  • 21
  • 27
  • Until you've seen a cat /etc/profile.d/maven.sh you're just guessing. – heynnema Apr 14 '22 at 23:28
  • I disagree. The error message clearly says the file starts with [200~export. I needn't see the whole file to conclude that's bad. – Tilman Apr 15 '22 at 10:32
  • Yes, I agree that doesn't look good. But what if there's more wrong than just that small part? You don't know until you look. – heynnema Apr 15 '22 at 12:16
  • That's why I wrote: "and check the remainder of the file." – Tilman Apr 15 '22 at 17:35
  • Sigh. OP has only been a user here for 2 days, and I strongly suspect that they don't know what to look for, otherwise they could have already fixed this themselves. It's our job to look at the file and see what's actually wrong with it, without making guesses. – heynnema Apr 15 '22 at 17:47
  • thank you guys. I have decided to reinstall everything and i am having trouble just installing maven first. I created a post about this :):

    https://askubuntu.com/questions/1402793/tmp-scheme-missing-same-error-even-when-i-create-a-tmp-folder-what-exactly

    – RocketEngineerStudent Apr 16 '22 at 11:09
  • that was it. Thanks ! – RocketEngineerStudent Apr 16 '22 at 11:45
-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
  • 36,399