Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get Unable to locate package for every single one. I then tried, as suggested throughout other forums, "sudo apt-get install python-pygame" however these were quite old forum posts, talking about Ubuntu 9.x. This did not work, and I got the error: unable to locate package pygame. Can someone please help me with this?

share|improve this question

2 Answers 2

Execute these commands as root, using sudo in a terminal.

tar -Jxf Python-3.3.0.tar.xz
cd Python-3.3.0
apt-get build-dep python3
make install 

After that just run the interpreter:

share|improve this answer

I was in the pygame directory (the source code) and simply changed to the root file cd ~/ and then type sudo apt-get install python-pygame and it worked!

share|improve this answer
Downvote: There is not relationship at all between the your current dir and apt-get. This is not the reason why apt-get worked. –  Javier Rivera May 31 '13 at 14:51
well it worked, and I do not know why. I just posted what worked and this is what worked. –  ReallyGoodPie May 31 '13 at 14:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.