ubuntu安装lnmp,禁止修改镜像源

修改一下lnmp2.2/include/init.sh的代码

 630375d0-a649-44eb-b13b-19895004319c

 

修改为阿里云镜像源

1、备份原镜像源文件

cp /etc/apt/sources.list /etc/apt/sources.list.bak

2、修改镜像源文件内容

deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

3、更新镜像源

apt update

posted @ 2025-11-27 16:39  day959  阅读(1)  评论(0)    收藏  举报