8.04 desktop竟然没有g++,apt-get 无法下载安装包,怎么办?

重复贴和参考价值不大的帖子,版主维护
回复
flyingdragonzebi
帖子: 2
注册时间: 2008-04-29 8:44
送出感谢: 0
接收感谢: 0

8.04 desktop竟然没有g++,apt-get 无法下载安装包,怎么办?

#1

帖子 flyingdragonzebi » 2008-04-30 16:25

8.04 desktop竟然没有g++,apt-get 无法下载安装包,怎么办?
头像
zhaojichang
帖子: 32
注册时间: 2008-05-03 17:13
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 zhaojichang » 2008-05-03 22:43

呵呵。需要更新一下源列表 /etc/apt/source.list,比较好用的是cn99,可以上网找一些8。04的源。如:

deb http://ubuntu.cn99.com/ubuntu hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu hardy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://ubuntu.cn99.com/ubuntu hardy-updates main restricted universe multiverse

就不错。
然后:
apt-get update
apt-get install g++
Just believe the running code...
回复

回到 “归档贴”