本文主要是介绍Ubuntu 18.04设置阿里源,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
看到很多设置成为阿里源的,但是都有写缺陷的样子下面我来说一下自己怎么设置ubuntu的阿里源
首先进入阿里源的平台
阿里巴巴开源镜像站
https://opsx.alibaba.com/?lang=zh-CN
界面做的很优美
点开文档
按照文档的步骤即可
1.创建自己的配置文件,比如创建文件
vim /etc/apt/sources.list.d/aliyun.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
然后执行
sudo apt-get update
即可
这篇关于Ubuntu 18.04设置阿里源的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!