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
  • 36,264
  • 56
  • 94
  • 147
hodophile
  • 142

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
  • 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