Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I can't install on Ubuntu using the following command

sudo yum install python-setuptools

I get this message

Setting up Install Process
No package python-setuptool available.

So I checked my repolist

sudo yum repolist

that return

repolist: 0

Wich repository should I add, Or what else could I be missing ?

Thanks in advance

share|improve this question

closed as off topic by quanta, voretaq7 Jul 27 '12 at 20:46

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
why are you using yum on ubuntu and not apt or aptitude ? –  Zypher Mar 6 '12 at 0:09
    
just because all the resources I have found used it –  svassr Mar 6 '12 at 15:30
    
@svassr We have an Ubuntu Specific Stack Exchange Site which may be a better fit for questions like this which are not specifically about server administration (we generally don't mind answering these kinds of questions here either, but I like to point people their way because they have a lot of deep Ubuntu-specific knowledge) –  voretaq7 Jul 27 '12 at 20:49

1 Answer 1

up vote 3 down vote accepted

Ubuntu generally doesn't use yum, unless yo've taken specific steps to enable it.

Instead, use apt:

apt-get install python-setuptools

I highly recommend reading through the Ubuntu package management pages: https://help.ubuntu.com/11.04/serverguide/C/package-management.html (they'll probably say to use some newer version of the apt command, which I'm guessing someone here on SF will educate me about in a comment or another answer).

share|improve this answer
    
Thanks Jed. What about adding repolist to yum. I'm still interested in learning how to do so. –  svassr Mar 6 '12 at 19:06
    
Honestly, I have no idea. If I wanted to use yum, I's use a RedHat based system like CentOS instead of a Debian based system like Ubuntu. My understanding is that yum in based on aptitude anyway. If you really want to learn about it, I'm sure man yum will get you started. –  Jed Daniels Mar 6 '12 at 22:58

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