I'm very new in Rpi community and sure enough had to spent the last 24 hours to figure out how to ssh connect from my MacBook to my Pi3 via an ethernet cable. I'm following the steps in the second method in here for this: http://smirshekari.wikidot.com/rpi
Now when I want to update and install packages required for what I'm planning to do in terminal window in usual Ubuntu format (which I expected to work just fine, but they don't!):
sudo apt-get install gphoto2
sudo apt-get update
I get errors like the one below which I believe it is all because of issues in internet connection. I've tried my best to find a solution for it and tested a few suggested methods that I found online, no success yet. Any comment and/or suggestion on that will be appreciated.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
vim-runtime
Suggested packages:
ctags vim-doc vim-scripts
The following NEW packages will be installed:
vim vim-runtime
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,198 kB of archives.
After this operation, 30.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf vim-runtime all 2:8.0.0197-4+deb9u1
Temporary failure resolving 'mirrordirector.raspbian.org'
Err:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf vim armhf 2:8.0.0197-4+deb9u1
Temporary failure resolving 'mirrordirector.raspbian.org'
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/v/vim/vim-runtime_8.0.0197-4+deb9u1_all.deb Temporary failure resolving 'mirrordirector.raspbian.org'
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/v/vim/vim_8.0.0197-4+deb9u1_armhf.deb Temporary failure resolving 'mirrordirector.raspbian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?