文章目录

  • ​​问题描述​​
  • ​​解决方法​​

问题描述

官方源安装软件卡到 kb 级,需要换源。

问题随记 —— Ubuntu18 换源_sed

解决方法

① 备份官方源(可有可无)

sudo mv /etc/apt/sources.list /etc/apt/sourses.list.backup

② 打开 源文件

问题随记 —— Ubuntu18 换源_ubuntu_02

③ 把不要的内容注释掉,更换阿里源(比较快),保存退出。

# 阿里源

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

问题随记 —— Ubuntu18 换源_sed_03

④ 更新 源

sudo apt update