ubuntu apt源配置

Posted 强仔

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu apt源配置相关的知识,希望对你有一定的参考价值。

cd /etc/apt

vi sources.list

deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe

 

 sudo dpkg --remove --force-all mytestb

以上是关于ubuntu apt源配置的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu配置本地目录作为apt源

ubuntu基础配置

Ubuntu配置篇 | apt切换为国内源

Ubuntu配置篇 | apt切换为国内源

Ubuntu建立本地apt源

Ubuntu 16.04配置国内高速apt-get更新源