本文主要是介绍Ubuntu更新源来获取apt-get包,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
2.sudo vim /etc/apt/source.list
3.更新源 apt-get update
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
这篇关于Ubuntu更新源来获取apt-get包的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!