0

I am using Ubuntu 16.04 and I'm running this command:

sudo add-apt-repository ppa:paolorotolo/android-studio

and I'm getting this error:

I've even tried reinstalling ca-certificates, but after that the same error occurs.

sudo apt-get install --reinstall ca-certificates
David Foerster
  • 35,754
  • 55
  • 92
  • 145
hodophile
  • 142
  • 1
  • 1
  • 5
  • Did you verify your internet connection and DNS resolution? – Byte Commander May 12 '16 at 19:39
  • Please post text files and program output listings as text, not as images (see [How do I save terminal output to a file?](//askubuntu.com/q/420981/175814)). – David Foerster May 24 '16 at 12:20
  • 2
    Possible duplicate of [apt-get update fails to fetch files, “Temporary failure resolving …” error](http://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error) – It's about `apt-get` instead of `add-apt-repository` but the underlying issue and its solution(s) are the same. – David Foerster May 24 '16 at 12:22

1 Answers1

-2

I was able to add it using the command above. The error message indicates that the host where the repository is stored is not resolvable by your DNS server. But I think that's probably a red-herring. Deleting the ca-certificates and then reinstalling them should work;

rm -rf /usr/share/ca-certificates

apt-get --reinstall install ca-certificates
CareFree
  • 132
  • 3
  • I tried it but not working. – hodophile May 12 '16 at 19:21
  • Okay, I'm not sure. Here's a dumb question, but after you added the repository you did an apt-get update? If you want a workaround you can install the .deb file with the instructions here: https://github.com/PaoloRotolo/android-studio/releases – CareFree May 13 '16 at 13:48