Make sure that you have a working, wired Internet connection with reasonable speed for this activity. Now, let's prepare our Pi for computer vision:
sudo service networking restart
ping –c4 www.google.com
If the command fails, then check the Internet connection with some other device and resolve the issue. After that, repeat the preceding steps again.
sudo apt-get update sudo apt-get upgrade sudo rpi-update sudo reboot –h now