0
bash: workspace_dir: No such file or directory
bash: export: `PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin': not a valid identifier
bash: /opt/ros/melodic/setup.bash: No such file or directory
bash: /opt/ros/melodic/setup.bash: No such file or directory

enter image description here

I want to remove it, please guide

1 Answers1

3

You have on one way or antother messed around with the configuration of bash.

  • If you have sufficient experience or can be helped by your system administrator, the preferred solution will be to inspect the files ~/.profile and ~/.bashrc and correct the malconfiguration, either in these statements or in configuration with the non-standard programs you seem to have installed at one time.
  • If you do not have sufficient experience, the short pain will be to restore these two files to default.
    1. Delete both ~/.profile and ~/.bashrc with the following command (which actually renames them so you could still inspect or restore them:

      mv ~/.profile ~/.profile_broken
      mv ~/.bashrc ~/.bashrc_broken
      
    2. Restore the system default versions

      cp /etc/skel/.profile ~
      cp /etc/skel/.bashrc ~
      
    3. Log out then back in so the default ~.profile takes effect in your session.

      This restores these files to the factory default. This may break the applications or configuration you or someone else may have installed.

vanadium
  • 97,564