Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I open the Terminal I got the following the errors.

bash: /home/gaja/.bashrccu: No such file or directory 
bash: /home/gaja/.bashrc: line 4: syntax error near unexpected token ('
bash: /home/gaja/.bashrc: line 4: see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)'
share|improve this question
3  
can you add the output of head -n 5 ~/.bashrc? –  souravc Jan 4 at 13:05
    
how to add the output please send information. –  raja Jan 4 at 13:32

1 Answer 1

up vote 0 down vote accepted

To get rid of the error messages use the following command in your terminal,

cp /etc/skel/.bashrc ~/

It will replace your corrupt ~/.bashrc with a fresh one. But any changes in ~/.bashrc made by you (if any) will be lost.

Do not forget to source the ~/.bashrc, write in terminal,

source ~/.bashrc

To continue with your existing ~/.bashrc you need to add the output of

head -n 5 ~/.bashrc

So that we can point out the syntax error in your existing ~/.bashrc

share|improve this answer
    
Thanks sourav, it works fine. but i found a new problem. I couldn't install anything. When i use install command, the following error appears. “ dpkg: warning: 'tar' not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin E: Sub-process /usr/bin/dpkg returned an error code (2)” –  raja Jan 6 at 5:35
    
installation problem with dpkg is another issue. you should first search the solution and if you do not found a solution ask a new question here –  souravc Jan 6 at 7:51

Your Answer

 
discard

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.