💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
1. 备份原来的源: ``` sudo cp /etc/apt/sources.list /etc/apt/sources_init.list ``` **将以前的源备份一下,以防以后可以用的。** 2. 更换源 ``` sudo gedit /etc/apt/sources.list ``` **阿里源 (Ubuntu 18.04)** ``` deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src 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-backports main restricted universe multiverse ``` 3. 更新 **更新源** ``` sudo apt-get update ``` **复损坏的软件包,尝试卸载出错的包,重新安装正确版本的。** ``` sudo apt-get -f install ``` **更新软件** ``` sudo apt-get upgrade ```