歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

嵌入式linux開發環境搭建(五)――Ubuntu第三方軟件倉庫源

嵌入式linux開發環境搭建(五)――Ubuntu第三方軟件倉庫源
一般來說ubuntu官方的軟件倉庫由於服務器在國外,下載更新速度較慢,需要將軟件倉庫更換為國內鏡像點。

1、修改源配置文件

先備份原來的配置文件
mv /etc/apt/sources.list /etc/apt/sources.list.bak
vim /etc/apt/sources.list
將國內的Ubuntu鏡像點添加到配置文件
Ubuntu 163鏡像點:
debhttp://mirrors.163.com/ubuntu/ precise main restricted
deb-srchttp://mirrors.163.com/ubuntu/ precise main restricted
debhttp://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-srchttp://mirrors.163.com/ubuntu/ precise-updates main restricted
debhttp://mirrors.163.com/ubuntu/ precise universe
deb-srchttp://mirrors.163.com/ubuntu/ precise universe
debhttp://mirrors.163.com/ubuntu/ precise-updates universe
deb-srchttp://mirrors.163.com/ubuntu/ precise-updates universe
debhttp://mirrors.163.com/ubuntu/ precise multiverse
deb-srchttp://mirrors.163.com/ubuntu/ precise multiverse
debhttp://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-srchttp://mirrors.163.com/ubuntu/ precise-updates multiverse
debhttp://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-srchttp://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
debhttp://mirrors.163.com/ubuntu/ precise-security main restricted
deb-srchttp://mirrors.163.com/ubuntu/ precise-security main restricted
debhttp://mirrors.163.com/ubuntu/ precise-security universe
deb-srchttp://mirrors.163.com/ubuntu/ precise-security universe
debhttp://mirrors.163.com/ubuntu/ precise-security multiverse
deb-srchttp://mirrors.163.com/ubuntu/ precise-security multiverse
debhttp://extras.ubuntu.com/ubuntu precise main
deb-srchttp://extras.ubuntu.com/ubuntu precise main
北京理工大學Ubuntu鏡像點:
debhttp://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
debhttp://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
debhttp://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
debhttp://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
debhttp://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb-srchttp://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-srchttp://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-srchttp://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-srchttp://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-srchttp://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

2、更新源

apt-get update
現在修改後的國內的ubuntu鏡像點就可以使用了。
本文出自 “生命不息,奮斗不止” 博客,請務必保留此出處http://9291927.blog.51cto.com/9281927/1789320
Copyright © Linux教程網 All Rights Reserved