当前位置:首页 > Linux > 正文内容

安装Ubuntu 20.4后的一些设置

sa2022-03-20Linux

网络配置为netplan方式,配置文件:00-installer-config.yaml ,文件路径:/etc/netplan/,官方链接:https://netplan.io/examples/ ,

image.png


启用/禁用网卡:

ip link set eth0 up

ip link set eth0 down


配置路由:

ip route add default via 192.168.50.1


更换源,路径: /etc/apt/sources.list 

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.163.com/ubuntu focal main restricted
# deb-src http://mirrors.163.com/ubuntu focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.163.com/ubuntu focal-updates main restricted
# deb-src http://mirrors.163.com/ubuntu focal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.163.com/ubuntu focal universe
# deb-src http://mirrors.163.com/ubuntu focal universe
deb http://mirrors.163.com/ubuntu focal-updates universe
# deb-src http://mirrors.163.com/ubuntu focal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.163.com/ubuntu focal multiverse
# deb-src http://mirrors.163.com/ubuntu focal multiverse
deb http://mirrors.163.com/ubuntu focal-updates multiverse
# deb-src http://mirrors.163.com/ubuntu focal-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.163.com/ubuntu focal-backports main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu focal-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://mirrors.163.com/ubuntu focal-security main restricted
# deb-src http://mirrors.163.com/ubuntu focal-security main restricted
deb http://mirrors.163.com/ubuntu focal-security universe
# deb-src http://mirrors.163.com/ubuntu focal-security universe
deb http://mirrors.163.com/ubuntu focal-security multiverse
# deb-src http://mirrors.163.com/ubuntu focal-security multiverse


deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal main universe restricted multiverse



版权声明:本文由老瓦罐儿煨汤发布,如需转载请注明出处。

本文链接:https://www.zhangchen.cc/?id=26

评论列表

高分游戏攻略
2024-07-22

识别码:katibs48015VN-文章写的真不错https://www.gaofeick.com/

游戏攻略网
2024-07-27

识别码:lwzotu73804GK-文章写的真不错https://www.ldyyouxi.com/

11111
2024-08-07

识别码:hfjdrv87650RA-这游戏真不错!http://www.a5km.com/yxgl/jdqs/29282.html

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。