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

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 guess the tittle says it all: I installed apache on my ubuntu(11.10), which repository do I add to automatically update it?

share|improve this question
How did you install it? The 2 opposites: 1. If it is from USC/tasksel it will automatically update. 2. If it is from source you will have to do it yourself. – Rinzwind May 21 '12 at 14:33
up vote 1 down vote accepted

Apache will automatically update to the latest available version for your distribution if you installed it from the Ubuntu repositories via any of the available methods: Software Center, Synaptic, or apt-get/aptitude from the terminal.

Sometimes the very latest versions of software are only available for the latest Ubuntu version, which yours is not. You may want add the Ubuntu repositories oneiric-backports and oneiric-proposed in that case; they will sometimes have newer versions than those in the "main" repositories.

Here's how you'd add those two from the Software Center:

  • Press Alt+F2, type gksudo software-center, enter, type your password, and enter.
  • Go to the Edit menu, ... Software Sources, and the Updates tab. As in the screenshot below, make sure the bottom two (Pre-released/Unsupported updates) are checked.
  • Close and exit.

enter image description here

share|improve this answer
I installed it with a command, but I did add some old outdated repository which I now deleted as it caused problem with updating. What's the full command to add those two repositories? (I'm a bit new to linux, so not sure how to construct the right command to add a repository in the terminal/or add some line in sources) – Happy May 21 '12 at 19:06
@Happy: please see updated answer :). – izx May 21 '12 at 20:29
I'm not sure what you meant with "Alt+F2, type gksudo software-center", terminal is Ctrl+Alt+T and I just started Software Sources app and clicked the update tab =) Thanks to your help it's solved now! – Happy May 24 '12 at 9:17

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.