If you're using magento connect to install a new theme. choose magento connect 2.0 then select key.
This solved my problem.
I just want to install Google analytic but every time getting this "Couldn't resolve host 'magento-community' " pop up message. Any solution please?