Ubuntu 如何更换阿里源

摘要:
//Mirrors.aliyun.com/ubuntu/xenial updatesmainrestrictduniversemultiversedeb-schchttp:选择中国-->https://blog.csdn.net/chen472015439/article/details/77327520https:

#进入源地址

cd /etc/apt

#备份源文件

sudo cp sources.list sources.list.bak

#编辑

sudo vim /etc/apt/sources.list

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

#更新源

sudo apt-get update

#更新软件

sudo apt-get upgrade

ps:

1、系统中没有 vim 时,sudo apt-get install vim-gtk

2、修改系统时间 执行tzselect命令-->选择Asia-->选择China--> Beijing

  执行cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime,用 date 查看

参考:

https://blog.csdn.net/chen472015439/article/details/77327520

https://blog.csdn.net/u013399093/article/details/48030103

免责声明:文章转载自《Ubuntu 如何更换阿里源》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇CKEditor粘贴图片自动上传到服务器(JS版)FastAPI 学习之路(二十一)请求体 更新数据下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

简单应用复旦FNLP自然语言处理工具(一)

FNLP是一个基于机器学习的中文自然语言文本处理的开发工具包,FNLP主要是为中文自然语言处理而开发的工具包,也包含为实现这些任务的机器学习算法和数据集。                                                      ----------百度百科 信息检索 文本分类 新闻聚类 中文处理: 中文分词 词性标注...

python egg

经常接触Python的同学可能会注意到,当需要安装第三方python包时,可能会用到easy_install命令。easy_install是由PEAK(Python Enterprise Application Kit)开发的setuptools包里带的一个命令,它用来安装egg包。egg包是目前最流行的python应用打包部署方式。如何制作和安装egg包...

pyinstaller深入使用,打包指定模块,打包静态文件

1.标准用法:     pyinstall  **.py  直接打包    pyinstall -F **.py  打包成单文件    pyinstall -W **.py  去掉控制台窗口,黑窗口    pyinstall -i ***.ico **.py  添加图标 *** 2.高级用法:     打包一遍以后,会在py文件目录下生成spec文件,是...

dotnet 获取程序所在路径的方法

在 dotnet 有很多方法可以获取当前程序所在的路径,但是这些方法获取到的路径有一点不相同,特别是在工作路径不是当前的程序所在的路径的时候 通过下面几个方法都可以拿到程序所在的文件夹或程序文件 AppDomain.CurrentDomain.BaseDirectory 当前程序域寻找 dll 的文件夹 Environment.CurrentDirect...

spring boot 访问页面(静态页面及jsp页面)

1.访问静态html 页面 ,使用官网提供的demo和还是一直访问不到html ,后来使用thymeleaf 模板,引入了依赖,发现html也能正常访问了 a) main/resource  文件夹下新建一个templates 文件夹 b) 添加maven 依赖 c) 编写控制方法 启动之后访问 localhost:prot/index 就能访问到页...

解除windows隐藏受保护的操作系统文件

对于文件夹:1。解除对某磁盘某个文件夹的强行隐藏(示例):attrib d:"Program Files" -s -h /s /d2,解除对某磁盘全部文件夹的强行隐藏(示例):attrib d:"*" -s -h /s /d——友情提示:以上示例中,d:为磁盘盘符;引号内为文件夹名称;相关命令参数: +r 设置只读文件属性。 -r...