How do I apply a security update to apache

Solution 1:

Try this

sudo -i

gedit /etc/apt/sources.list

add the line

deb http://us.archive.ubuntu.com/ubuntu/ precise main

Save and exit, then do

sudo apt-get update
sudo apt-get install apache2
apache2 -v

Then edit /etc/apt/sources.list again, and comment out or delete the following line completely

#deb http://us.archive.ubuntu.com/ubuntu/ precise main

sudo apt-get update