Unable to upgrade pip version 8.1.1 to 21.3

Showing sytax error


This could be because of your incomplete apt update. I’ve taken forward your request, will let you know of any solution to the issue.

Even I am facing the issue of not being able to upgrade from pip version 8.1.1 to version 22.2.2 which is the latest version. It suggests the command “pip install --upgrade pip” but it doesn’t seem to work. My main problem is it saying “Some index files failed to download. They have been ignored or old ones used instead” on running the ‘sudo apt-get -y update’ command.