购物网站网页设计模板,网站规划开发前景,53货源网,做外贸有哪些平台ubuntu必备操作
1 更换apt镜像源
备份镜像
cp /etc/apt/sources.list /etc/apt/sources.list.bak查看自己ubuntu版本
# 查看自己的codename
#查看自己的ubuntu版本[注意关注#xff1a;DISTRIB_CODENAME#xff0c;发行代号]
cat /etc/*release# DISTRIB_CODENAMEcosmic
…ubuntu必备操作
1 更换apt镜像源
备份镜像
cp /etc/apt/sources.list /etc/apt/sources.list.bak查看自己ubuntu版本
# 查看自己的codename
#查看自己的ubuntu版本[注意关注DISTRIB_CODENAME发行代号]
cat /etc/*release# DISTRIB_CODENAMEcosmic
# 例如(下面是ubuntu的LTS长期支持版)
# Ubuntu20.04focal
# Ubuntu19.10eoan
# Ubuntu19.04disco
# Ubuntu18.04bionic
# Ubuntu16.04xenial设置国内镜像源 我ubuntu的版本是18.10国内上没有维护对应的镜像但是大版本一致即可所以我采用了bionic vim /etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse更新软件列表完成换源
apt update修复损坏的软件包
apt-get install -f更新软件
apt-get upgrade2 其他命令
①防火墙相关
# 查看防火墙状态
sudo ufw status
# 开启/关闭防火墙
sudo ufw enable/disable