安装Apache

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
hlb1987711
帖子: 5
注册时间: 2010-07-26 15:11
送出感谢: 0
接收感谢: 0

安装Apache

#1

帖子 hlb1987711 » 2010-07-26 15:16

输入:~# apt-get install apache
输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package apache has no installation candidate


怎么解决,请高手支招……
头像
mengwind
帖子: 74
注册时间: 2008-08-01 17:25
送出感谢: 0
接收感谢: 0

Re: 安装Apache

#2

帖子 mengwind » 2010-07-26 15:41

sudo apt-get update
hlb1987711
帖子: 5
注册时间: 2010-07-26 15:11
送出感谢: 0
接收感谢: 0

Re: 安装Apache

#3

帖子 hlb1987711 » 2010-07-26 15:46

运行sudo apt-get update
得到:
Hit http://archive.canonical.com intrepid Release.gpg
Ign http://archive.canonical.com intrepid/partner Translation-en_GB
Hit http://security.ubuntu.com intrepid-security Release.gpg
Ign http://security.ubuntu.com intrepid-security/main Translation-en_GB
Hit http://archive.ubuntu.com intrepid Release.gpg
Hit http://us.archive.ubuntu.com intrepid Release.gpg
Get: 1 http://us.archive.ubuntu.com intrepid/main Translation-en_GB [27.0kB]
Hit http://archive.canonical.com intrepid Release
Ign http://security.ubuntu.com intrepid-security/restricted Translation-en_GB
Ign http://security.ubuntu.com intrepid-security/universe Translation-en_GB
Ign http://security.ubuntu.com intrepid-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com intrepid-security Release
Hit http://archive.ubuntu.com intrepid Release
Hit http://archive.canonical.com intrepid/partner Packages
Hit http://security.ubuntu.com intrepid-security/main Packages
Hit http://archive.ubuntu.com intrepid/main Sources
Hit http://archive.canonical.com intrepid/partner Sources
Hit http://security.ubuntu.com intrepid-security/restricted Packages
Hit http://security.ubuntu.com intrepid-security/restricted Sources
Hit http://security.ubuntu.com intrepid-security/main Sources
Hit http://security.ubuntu.com intrepid-security/multiverse Sources
Hit http://archive.ubuntu.com intrepid/restricted Sources
Get: 2 http://us.archive.ubuntu.com intrepid/restricted Translation-en_GB [1135B]
Hit http://security.ubuntu.com intrepid-security/universe Sources
Hit http://security.ubuntu.com intrepid-security/universe Packages
Hit http://security.ubuntu.com intrepid-security/multiverse Packages
Get: 3 http://us.archive.ubuntu.com intrepid/universe Translation-en_GB [8049B]
Get: 4 http://us.archive.ubuntu.com intrepid/multiverse Translation-en_GB [46.0kB]
Hit http://us.archive.ubuntu.com intrepid-updates Release.gpg
Get: 5 http://us.archive.ubuntu.com intrepid-updates/main Translation-en_GB [27.0kB]
Get: 6 http://us.archive.ubuntu.com intrepid-updates/restricted Translation-en_GB [1135B]
Get: 7 http://us.archive.ubuntu.com intrepid-updates/universe Translation-en_GB [8049B]
Get: 8 http://us.archive.ubuntu.com intrepid-updates/multiverse Translation-en_GB [46.0kB]
Hit http://us.archive.ubuntu.com intrepid Release
Hit http://us.archive.ubuntu.com intrepid-updates Release
Hit http://us.archive.ubuntu.com intrepid/main Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Sources
Hit http://us.archive.ubuntu.com intrepid/main Sources
Hit http://us.archive.ubuntu.com intrepid/multiverse Sources
Hit http://us.archive.ubuntu.com intrepid/universe Sources
Hit http://us.archive.ubuntu.com intrepid/universe Packages
Hit http://us.archive.ubuntu.com intrepid/multiverse Packages
Hit http://us.archive.ubuntu.com intrepid-updates/main Packages
Hit http://us.archive.ubuntu.com intrepid-updates/restricted Packages
Hit http://us.archive.ubuntu.com intrepid-updates/restricted Sources
Hit http://us.archive.ubuntu.com intrepid-updates/main Sources
Hit http://us.archive.ubuntu.com intrepid-updates/multiverse Sources
Hit http://us.archive.ubuntu.com intrepid-updates/universe Sources
Hit http://us.archive.ubuntu.com intrepid-updates/universe Packages
Hit http://us.archive.ubuntu.com intrepid-updates/multiverse Packages
Fetched 164kB in 5s (30.6kB/s)
Reading package lists... Done


接下来怎么办????
头像
link_01
帖子: 1024
注册时间: 2008-11-05 13:24
送出感谢: 0
接收感谢: 4 次

Re: 安装Apache

#4

帖子 link_01 » 2010-07-26 16:46

# apt-get install apache[2]
笔记
-------------------------------------
http://blog.163.com/wqt_1101
回复

回到 “服务器基础应用”