在Ubuntu Desktop 14.10 上 安装 LAMP碰到报错

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
youyiyang
帖子: 3
注册时间: 2017-10-11 10:22
系统: ubuntu desktop 14.10

在Ubuntu Desktop 14.10 上 安装 LAMP碰到报错

#1

帖子 youyiyang » 2017-10-11 11:09

大神们好!

我是ubuntu的新手和菜鸟,刚安装了一个ubuntu 14.10的desktop版本,想安装LAMP。
但是我在使用这个命令的时候碰到这个错误,请问怎么解决?
root@ubuntu:/# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2
使用这个命令的时候碰到这个错误:
root@ubuntu:/# apt-get update
Ign http://us.archive.ubuntu.com utopic InRelease
Ign http://security.ubuntu.com utopic-security InRelease
Ign http://extras.ubuntu.com utopic InRelease
Ign http://us.archive.ubuntu.com utopic-updates InRelease
Ign http://security.ubuntu.com utopic-security Release.gpg
Hit http://extras.ubuntu.com utopic Release.gpg
Ign http://us.archive.ubuntu.com utopic-backports InRelease
Ign http://security.ubuntu.com utopic-security Release
Hit http://extras.ubuntu.com utopic Release
Ign http://us.archive.ubuntu.com utopic Release.gpg
Hit http://extras.ubuntu.com utopic/main Sources
Ign http://us.archive.ubuntu.com utopic-updates Release.gpg
Hit http://extras.ubuntu.com utopic/main i386 Packages
Ign http://us.archive.ubuntu.com utopic-backports Release.gpg
Ign http://us.archive.ubuntu.com utopic Release
Ign http://us.archive.ubuntu.com utopic-updates Release
Ign http://us.archive.ubuntu.com utopic-backports Release
Ign http://extras.ubuntu.com utopic/main Translation-en_US
Ign http://extras.ubuntu.com utopic/main Translation-en
Err http://security.ubuntu.com utopic-security/main Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/restricted Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/universe Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/multiverse Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/main i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/restricted i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/universe i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/multiverse i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Ign http://security.ubuntu.com utopic-security/main Translation-en_US
Ign http://security.ubuntu.com utopic-security/main Translation-en
Ign http://security.ubuntu.com utopic-security/multiverse Translation-en_US
Ign http://security.ubuntu.com utopic-security/multiverse Translation-en
Ign http://security.ubuntu.com utopic-security/restricted Translation-en_US
Ign http://security.ubuntu.com utopic-security/restricted Translation-en
Ign http://security.ubuntu.com utopic-security/universe Translation-en_US
Ign http://security.ubuntu.com utopic-security/universe Translation-en
Err http://us.archive.ubuntu.com utopic/main Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/restricted Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/universe Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/multiverse Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/main i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/restricted i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/universe i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic/multiverse i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Ign http://us.archive.ubuntu.com utopic/main Translation-en_US
Ign http://us.archive.ubuntu.com utopic/main Translation-en
Ign http://us.archive.ubuntu.com utopic/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com utopic/multiverse Translation-en
Ign http://us.archive.ubuntu.com utopic/restricted Translation-en_US
Ign http://us.archive.ubuntu.com utopic/restricted Translation-en
Ign http://us.archive.ubuntu.com utopic/universe Translation-en_US
Ign http://us.archive.ubuntu.com utopic/universe Translation-en
Err http://us.archive.ubuntu.com utopic-updates/main Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/restricted Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/universe Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/multiverse Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/main i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/restricted i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/universe i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-updates/multiverse i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Ign http://us.archive.ubuntu.com utopic-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com utopic-updates/main Translation-en
Ign http://us.archive.ubuntu.com utopic-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com utopic-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com utopic-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com utopic-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com utopic-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com utopic-updates/universe Translation-en
Err http://us.archive.ubuntu.com utopic-backports/main Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/restricted Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/universe Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/multiverse Sources
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/main i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/restricted i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/universe i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com utopic-backports/multiverse i386 Packages
404 Not Found [IP: 91.189.91.26 80]
Ign http://us.archive.ubuntu.com utopic-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com utopic-backports/main Translation-en
Ign http://us.archive.ubuntu.com utopic-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com utopic-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com utopic-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com utopic-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com utopic-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com utopic-backports/universe Translation-en
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ce/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ce/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ce/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ce/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... 6/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 91.189.91.26 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
我的ubuntu是联网的。

谢谢!
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 在Ubuntu Desktop 14.10 上 安装 LAMP碰到报错

#2

帖子 TeliuTe » 2017-10-11 11:44

安装长期支持版系统,像14.04/16.04,14.10的更新已经不支持了
也可以先试试XAMPP: https://www.apachefriends.org/download.html
youyiyang
帖子: 3
注册时间: 2017-10-11 10:22
系统: ubuntu desktop 14.10

Re: 在Ubuntu Desktop 14.10 上 安装 LAMP碰到报错

#3

帖子 youyiyang » 2017-10-11 14:20

TeliuTe 写了:安装长期支持版系统,像14.04/16.04,14.10的更新已经不支持了
也可以先试试XAMPP: https://www.apachefriends.org/download.html
感谢回答,安装了14.04版本后就可以正常安装了。谢谢! :Haha
回复