ubuntu修改163软件源
Posted OUYM
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu修改163软件源相关的知识,希望对你有一定的参考价值。
cd /etc/apt
cat sources.list
sudo su root
sudo echo ‘‘ > sources.list
nano sources.list
复制163软件源
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
ctrl+o-- 回车-- ctrl+x-- 回车
su ubuntu
sudo apt-get update
sudo apt-get upgrade
完事。
以上是关于ubuntu修改163软件源的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu20.04 LTS 更换国内163源、阿里源、清华源、中科大源