[英]How to install apache2 in Ubuntu
I am trying to install apache2 in Ubuntu 12. I installed Ubuntu in Virtual Machine. 我试图在Ubuntu 12中安装apache2。我在虚拟机中安装了Ubuntu。 I have problems.
我有问题。 First, my system can not update or upgrade.
首先,我的系统无法更新或升级。 When I type:
当我输入:
I receive a lot of errors like this: 我收到很多这样的错误:
Err http://security.ubuntu.com quantal-security/main Sources
404 Not Found [IP: 91.189.91.14 80]
At the final line, this is the result: 在最后一行,这是结果:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Second, when I try to install apache2. 其次,当我尝试安装apache2时。 I type:
我输入:
sudo apt-get install apache2 apache2-doc apache2-utils
Again, it fails. 同样,它失败了。 The result:
结果:
e@ubuntu:/etc$ sudo apt-get install apache2 apache2-doc apache2-utils Reading package lists... Done Building dependency tree e @ ubuntu:/ etc $ sudo apt-get install apache2 apache2-doc apache2-utils阅读包列表...完成构建依赖树
Reading state information... Done E: Unable to locate package apache2 E: Unable to locate package apache2-doc E: Unable to locate package apache2-utils e@ubuntu:/etc$ 读取状态信息...完成E:无法找到软件包apache2 E:无法找到软件包apache2-doc E:无法找到软件包apache2-utils e @ ubuntu:/ etc $
Can you help me plz? 你能帮我一下吗?
EDIT: This command does not work either. 编辑:此命令也不起作用。
sudo apt-get update && sudo apt-get upgrade
I get: 我得到:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The problem is with the OS installation. 问题出在操作系统安装上。 use
sudo apt-get update && sudo apt-get upgrade
. 使用
sudo apt-get update && sudo apt-get upgrade
。 If ou cannot update. 如果您无法更新。 Then try to re-install the OS.
然后尝试重新安装操作系统。 After a fresh install of your OS try
sudo apt-get install apache2 apache2-doc apache2-utils
全新安装操作系统后,尝试
sudo apt-get install apache2 apache2-doc apache2-utils
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.