Ubuntu server和桌面版配置静态IP,安装源切换


方案:手动修改sources.list文件

安装源错误导致nginx无法安装,切换安装源后成功

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo nano /etc/apt/sources.list

将文件中所有的 mirrors.tuna.tsinghua.edu.cn 替换为:

  • 阿里云:mirrors.aliyun.com
  • 腾讯云:mirrors.cloud.tencent.com
  • 华为云:repo.huaweicloud.com
  • 官方源:archive.ubuntu.com

然后执行:

sudo apt update
sudo apt install nginx

Ubuntu server和桌面版配置静态IP 配置固定IP

教程网站:

https://www.sysgeek.cn/set-static-ip-ubuntu


发表评论