How to fix the errors encountered while processing installation

I wanted to reinstall java which was accidently deleted, using this post. As mentioned in the above post on runningsudo apt install default-jre, I got this error: Reading package lists......

Why is bash still searching for conda?

I have a PC with Ubuntu 16.04 LTS installed on it. Also, I have installed Anaconda python distribution. So, I was facing this Invalid archive error (similar to this issue) after installing pathos...