I have been trying to get this working for a lot of hours now but no success. Here is what I have done-
- ping 8.8.8.8 works
- Also added
nameserver 8.8.8.8, 8.8.4.4
in etc/resolv.conf as suggested on many forums (I have some of my company's nameservers added along as well) - I have also updated my source.list according to mentioned here- https://www.raspbian.org/RaspbianRepository.
I have tried changing it to deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi but hasn't helped. - tried sudo apt-get update, upgrade
- Also added my company's proxy servers using
export http_proxy
I am trying to install pip- sudo apt-get install python3-pip
(any package basically)
Error it is giving
E: Unable to locate package
It was earlier giving connection closed, failed to fetch errors
but now is giving above. Please suggest what should be done.
Update
I have tried to ping google.com
but it doesn't work.
I have changed /etc/apt/sources.list to stretch now so my sources.list is
deb mirrordirector.raspbian.org/raspbian stretch main contrib non-free rpi
and /etc/apt/sources.list.d/raspi.list is
archive.raspberry.org/raspbian stretch main contrib non-free
Still getting the same error- unable to locate package.
ping 8.8.8.8
works. Doesping google.com
also work?