Ubuntuのダウンロード速度が遅すぎて解決できない

現在、Ubuntu を使用して Roberta ファイルをローカルにダウンロードしていますが、速度が非常に遅いです。Ubuntu システムに付属しているソース ファイルはすべて外国のソース URL です。中国でアップグレード ソースや依存関係をダウンロードしてインストールする場合、比較的遅いです。国内送信元アドレスを置き換えるのは簡単なので、この問題を修正してください。

目次

1. 元のソースファイルをバックアップします。

2. 新しいsources.listファイルを作成します。

3. apt ソフトウェアソースを更新する

4. 依存パッケージの最適化

5.アップデート


1. 元のソースファイルをバックアップします。

sudo mv /etc/apt/sources.list sources.list_backup

2. 新しいsources.listファイルを作成します。

sudo vim /etc/apt/sources.list

次の内容を入力し、保存して終了します

deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse

3. apt ソフトウェアソースを更新する

sudo apt-get update

4. 依存パッケージの最適化

破損した依存パッケージを変更し、間違ったパッケージをアンインストールし、新しい正しいバージョンを再ダウンロードします。

sudo apt-get -f install

5.アップデート

sudo apt-get upgrade

問題を解く:

 


 

おすすめ

転載: blog.csdn.net/weixin_43734080/article/details/131296825