第一步:先备份下原始源:

sudo cp /etc/apt/source.list /etc/apt/source.list.backup

第二步:修改文件   

sudo vim  /etc/apt/source.list

清除原有的,替换以下源

ubuntu 20.04 LTS 更换阿里云源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal universe
deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-security universe
deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse
ubuntu 20.04 LTS 更换阿里云源

 保存下,即可执行更新

sudo  apt update
sudo  apt upgrade

 

相关文章:

  • 2022-03-10
  • 2021-05-16
  • 2021-08-24
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案