@BuZz OK.I've tried to dynamically change the DNS server to visit github.com and successfully installed retropie on Ubuntu(amd64).Maybe I just need to post a solution on local forums to instruct others.
@ciel Please provide details from your set-up and a log of the errors you are getting (See RetroPie-Setup/logs). Please put the logfile on a pastebin site rather than directly in the forum.