linux - apt-get fails with raspberry pi although ping works -


I am trying to update and install stuff with my Raspberry P.

Unfortunately this is failing, and I get these errors when updating sudo apt-get :

  error http: / /raspberrypi.collabora Com wheezy Release.gpg 'Host' error could not be resolved http://mirrordirector.raspbian.org wheezy release. Gpg 'Host' error can not be resolved http://archive.raspberrypi.org wheezy Release .gpg 'Host could not be resolved' AR http://repository.wolfram.com wheezy Release.gpg 'Host' could not be resolved ' 

And something like this And the lines ...
The strange thing is that if I ping the address, I get a response, so my DNS is probably okay:

  ping mirrordirector.raspbian Org  

that Any other ideas why would it fail? And obviously, how can I fix it?

Let me give you / etc / apt / sources your favorite text editor in root (Nano, Wim, ...), and write it down:

  #deb mirrordirector.raspbian.org/raspbian wheezy main contrib non-free RPI debarch http://archive.raspbian.org/ Raspbian wheezy main contrib non-free deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free  

There is a way to comment on a line in # sign sources < / P>

When you're done, download the public key and install it with this command To:

  wget http://archive.raspbian.org/raspbian.public.key -O - | Sudo apt-key add -  

If there is a problem send the output :).

Good luck


Comments