簡體   English   中英

如何在Ubuntu中安裝apache2

[英]How to install apache2 in Ubuntu

我試圖在Ubuntu 12中安裝apache2。我在虛擬機中安裝了Ubuntu。 我有問題。 首先,我的系統無法更新或升級。 當我輸入:

我收到很多這樣的錯誤:

Err http://security.ubuntu.com quantal-security/main Sources
  404  Not Found [IP: 91.189.91.14 80]

在最后一行,這是結果:

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.

其次,當我嘗試安裝apache2時。 我輸入:

sudo apt-get install apache2 apache2-doc apache2-utils

同樣,它失敗了。 結果:

e @ ubuntu:/ etc $ sudo apt-get install apache2 apache2-doc apache2-utils閱讀包列表...完成構建依賴樹
讀取狀態信息...完成E:無法找到軟件包apache2 E:無法找到軟件包apache2-doc E:無法找到軟件包apache2-utils e @ ubuntu:/ etc $

你能幫我一下嗎?

編輯:此命令也不起作用。

sudo apt-get update && sudo apt-get upgrade

我得到:

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.

問題出在操作系統安裝上。 使用sudo apt-get update && sudo apt-get upgrade 如果您無法更新。 然后嘗試重新安裝操作系統。 全新安裝操作系統后,嘗試sudo apt-get install apache2 apache2-doc apache2-utils

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM