在Ubuntu 10.10上缺lessapache2

我想在Ubuntu 10.10上安装Apache。

我试过运行:

sudo apt-get install apache2 

但它给出了以下错误:

 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package apache2 

任何想法,我可以findapache2包?

看看这个post! 它会一步一步向你展示LAMP Ubuntu 10.10

它开始与我的Ubuntu的盒子很好:

 sudo apt-get install tasksel 

apache2元数据包可从security.ubuntu.com获得,请确保在/etc/apt/sources.list文件中包含以下条目:

deb http://security.ubuntu.com/ubuntu特立独行安全主要限制
deb-src http://security.ubuntu.com/ubuntu maverick-security主要受限制
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse

另外,请记住apt-get在每次运行时都不会自动下载存储库内容(与yum不同)。 你必须使用sudo apt-get update手动执行此操作。