本文介绍: 本文为 Ubuntu 22.04 的阿里镜像列表。若为其他版本,将所有jammy改为其他版本代号即可。加上(一定是加上哈)

 设置国内
 
 vim /etc/apt/sources.list

deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
 
deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
 
deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
 
# deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src 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-backports main restricted universe multiverse

 

本文为 Ubuntu 22.04 的阿里镜像列表。若为其他版本,将所有jammy改为其他版本代号即可
常用的Ubuntu版本代号如下
Ubuntu 22.04:jammy
Ubuntu 20.04:focal
Ubuntu 18.04:bionic
Ubuntu 16.04:xenia
 

sudo vi /etc/resolv.conf

加上(一定是加上哈)
nameserver 8.8.8.8
nameserver 114.114.114.114

apt update && sudo apt fullupgrade && apt autoremove

 ####设置国内

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注