.bashrc: shopt: not found
The output you just posted indicates that you aren't actually running bash
. This is why you are getting errors sourcing .bashrc
.
To fix this problem, you need to check your login shell to make sure it's actually set to bash:
chsh -l
will list the available shells, and
chsh -s /path/to/bash
will change your login shell to bash.
Then logout and log back in.