Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If I try sudo apt-get install mc or sudo apt-get install fortune, I get E: Unable to locate package mc or E: Unable to locate package fortune.

Also in Ubuntu Software Center: Use this source is disabled.

Internet works and wget gets from Internet.

share|improve this question

3 Answers 3

up vote 8 down vote accepted

mc and fortune are both in the universe repository. Make sure you have the option to download and install packages from universe enabled.

Open software-center. Go to Edit menu --> Open software sources and check Universe option.

software-sources-gtk

After checking the option, run the following commands to install mc and fortune.

sudo apt-get update
sudo apt-get install mc fortune
share|improve this answer
    
I tried sudo apt-get update and it worked. –  Eduard Florinescu Aug 24 '12 at 12:30

After you install Ubuntu, run:

sudo apt-get update && sudo apt-get upgrade

This will update the package lists and upgrade your system.

However, if you've already done so, you can follow the instructions given by jokerdino.

share|improve this answer

Try this

sudo apt-get install ubuntu-restricted-extras

and then this

sudo apt-get update && sudo apt-get upgrade

and then try your commands

share|improve this answer
    
It would be helpful to explain why this sequence of commands should be executed. –  Marve Aug 24 '12 at 16:37

Your Answer

 
discard

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.