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
3

1 Answer 1

-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
2
  • I tried it but not working.
    – hodophile
    May 12, 2016 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: github.com/PaoloRotolo/android-studio/releases
    – CareFree
    May 13, 2016 at 13:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .