LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache2 installing problem (https://www.linuxquestions.org/questions/linux-software-2/apache2-installing-problem-899779/)

NabiVakili 08-27-2011 06:42 AM

Apache2 installing problem
 
I want to install Apache2 on Ubuntu 10.04,
I used this command :
Quote:

sudo apt-get install apache2
but I got this error:
Quote:

package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package apache2
I checked the source.list file, there are some universe repositories :
Quote:

#
# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted

#deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
What is the problem?

T3RM1NVT0R 08-27-2011 07:05 AM

@ Reply
 
Hi there,

Try
Code:

sudo apt-get update
and then run

Code:

sudo apt-get apache2


All times are GMT -5. The time now is 03:30 PM.