ServerUbuntuUbuntu 换国内源最简方式nodaoli2024-01-312024-01-31安装完系统,执行这4句话就行,前提是你自己没有乱改过 12345sudo cp /etc/apt/sources.list /etc/apt/source.list-originsudo sed -i 's/cn.archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.listsudo sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.listsudo apt-get update 不区分ubuntu版本,原理显而易见的简单,可以避免因为换错源导致apt整体混乱