Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This appears when I open the terminal:

bash: export: `=': not valid name
bash: export: `/home/(my account name)/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/(my account name)/bin': not valid name

I'm using Ubuntu 11.10 i386, and I think I messed up with repositories or something.

share|improve this question

You have probably copy/pasted something in your ~/.bashrc file.

bash: export: `=': not valid name probably means you used an = with spaces. Remove spaces around this to fix this.

/home/(my account name)/bin is wrong, you should replace (my account name) with your actual account name.

You can open your .bashrc by typing gedit ~/.bashrc & in your terminal or opening your home folder and choose View > Show hidden files and opening it from there.

If this doesn't fix it, could you add the contents of your .bashrc to your question?

share|improve this answer
Oh, it solved my problem.. Thanks a million! I've added space around the '='... Thanks.. PS. (my account name) thing, that was something what I've replaced from the terminal output, since that contained my personal info :) Thanks! – MinSik CHO Feb 10 '12 at 11:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.