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.

I installed ubuntu last night. And after reading 100s of posts, I still couldn't make my sudo apt-get work at all. I remember, I have to modify the software server somehow. But I can't remember how or where to do it.

Nothing is being installed.

Need help.

share|improve this question
    
What is it that you're trying to do? –  Mitch May 18 '13 at 5:33
    
@Mitch: sudo apt-get install git –  xan May 18 '13 at 5:36
    
Do sudo apt-get update && sudo apt-get upgrade before installing, and then try to install git. let me know what happens. –  Mitch May 18 '13 at 5:41
    
Show us some console output of the error message, to help figure out what is not working. –  ortang May 18 '13 at 5:51
    
@Mitch: It's still installing the packages. I'll notify you when things get done. –  xan May 18 '13 at 6:04
show 4 more comments

2 Answers 2

up vote 3 down vote accepted

After a fresh install of ubuntu run :

sudo apt-get update && sudo apt-get upgrade on Terminal (Ctrl+Alt+T)

Once, this process has been completed, you can install packages using sudo apt-get install <package_name>

share|improve this answer
add comment
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

That should clear your existing lists and rebuild.

share|improve this answer
add comment

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.