Jupyter Notebook Launch Error from Navigator

Viewed 1365

When I attempt to launch Jupyter NB from Anaconda Navigator, nothing happens, and in the terminal I see the following:

/home/captroberts/.anaconda/navigator/scripts/notebook.sh: 5: /home/captroberts/anaconda3/etc/conda/deactivate.d/deactivate-gxx_linux-64.sh: Syntax error: "(" unexpected

What does this mean, how do I fix it to launch apps from Navigator.

Jupyter-Notebook from the shell works fine.

3 Answers

Ubuntu by default the interpreting shell is dash. set bash as the /bin/sh

sudo dpkg-reconfigure dash

The following fixed the issue for me. Some suggestion online to remove the word 'function' from line 5 and 31 from all the .sh files in the folders anaconda3/etc/conda/activate.d and anaconda3/etc/conda/deactivate.d

I just started deleting the offending *.sh files until it worked. No issues since.

Related