免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1059 | 回复: 0
打印 上一主题 下一主题

ubuntu添加lupa源 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-07 11:41 |只看该作者 |倒序浏览
在ubuntu server 8.04.1虚拟机中添加源的方法
第一个问题
   最近做项目用到了ubuntu server,遇到一个问题,可以上网,
1.运行apt-get install unzi命令时
0% ....[192.168.43.149]....
一直是0%
2.运行apt-get update
也是同样的反映
奇怪,192.168.43.149是个什么地址,为什么不直接连接us.ubuntu.com
最后在/etc/apt/apt.conf中发现这个地址,原来是在里面设置了代理.删除就好了.
第二个问题
   发现用us.ubuntu.com源还是觉得太慢了,想使用国内lupaworld的源.
1.先到http://mirror.lupaworld.com/source.html下载相应版本的源
这里是
deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn hardy main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multivers
把这个内容保存到addsource.txt(名字自定),上传到虚拟机里面.比如说~/addsource.txt
2. 在虚拟机里面,备份source.list
# cd /etc/apt
# cp source.list source.list.bak
# cat ~/addsource.txt >> source.list
# apt-get update
就可以了
第三问题:   添加cdrom 源
1. 把ubuntu-server版本添加到虚拟机的光驱,
2. #apt-cdrom add
3. #apt-get update


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13637/showart_1684281.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP