This error was caught in my machine due to curl package . While I was trying one theme in my linux(Ubuntu 11.10) machine I was unable to activate theme . After seeing error log in apache , I came to know that my machine requires php curl package.
Steps I did to fix this problem was:
apt-get install curl libcurl3 libcurl3-dev php5-curl
and Restart apache by