UOS は apt ソースを構成します

1. ローカルソース

1. まず、イメージ ファイルを mnt 一時マウント ディレクトリにマウントします。

[root@Server01 /]# mount /dev/sr0 /mnt/


2.aptファイルを編集する

[root@Server01 /]# nano /etc/apt/sources.list
deb [trusted=yes] file:///mnt fou main


3. ソースを更新する

[root@Server01 /]# apt-get update
[root@Server01 /]# apt-get upgrade


4. テスト

[root@Server01 /]# apt-get install bind9-y
#安装成功就是配置完成

2. ネットワークソース

1. /etc/apt/source.list の内容をバックアップまたはクリアし、Alibaba に置き換えます。

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

おすすめ

転載: blog.csdn.net/LLLLLoodwd/article/details/131325499