Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to using Ubuntu, and so in need of some help getting my development box up and running. I am trying to develop C++ code, but when I try to install CodeBlock IDE or Eclipse indigo, I run into some wall.

When I attempt to use Ubuntu Software to install Eclipse Indigo, I get an error about my internet connection "Failed to download Package File, Check your internet connection"(I use wireless and have no problems using the internet). When I try to install Codeblock, I get the same error. Is there some configuration issue I have not handled here? I am running Ubuntu on VMWare. Any help will be very much appreciated.

share|improve this question
Try running sudo apt-get update && sudo apt-get upgrade and then downloading the software from the software center. – Nitin Venkatesh Sep 14 '11 at 23:11
Like I said I am new to Ubuntu. How exactly would I run this command please? – user272671 Sep 14 '11 at 23:11
Press Ctrl+Alt+T that will open a terminal. There copy & paste the code – Nitin Venkatesh Sep 14 '11 at 23:13
Thanks. I did that, and it is running. What exactly would the above do? – user272671 Sep 14 '11 at 23:22
Posted the explanation as an answer, so that you can mark it as the correct answer :) – Nitin Venkatesh Sep 14 '11 at 23:29
up vote 3 down vote accepted

Open a terminal (Ctrl+Alt+T) and type sudo apt-get update && sudo apt-get upgrade

sudo apt-get update refreshes your sources, basically it refreshes the sources from where the packages are going to be downloaded from and looks for new updates and so on.

sudo apt-get upgrade will download updates, if there any.

share|improve this answer

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.