Your "# apt-get update" failed due to some Internet problem. Try it again. Here in my N9 is works ok. But to get gcc/g++ on (Harmattan) device : - until PR1.1 (for Nokia N9) trivial, just "# apt-get install build-essential"; - the post #18 doesn't work anymore for PR1.3 ! It was ok for PR1.2; - now on PR1.3, I've only succeeded by chrooting a Harmattan SDK image...
I'll give more details on how-to-do it easily later today.