1.apt mise à jour
Pour une nouvelle machine virtuelle, j'ai installé git et j'ai constaté qu'apt ne pouvait pas être utilisé normalement. L'erreur a été signalée comme suit.
Err:1 http://linux.mellanox.com/public/repo/mlnx_ofed/5.1-2.5.8.0/ubuntu18.04/amd64 ./ InRelease
Temporary failure resolving 'linux.mellanox.com'
Err:2 https://mirrors.aliyun.com/ubuntu focal InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:3 https://mirrors.aliyun.com/ubuntu focal-security InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:4 https://mirrors.aliyun.com/ubuntu focal-updates InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:5 https://mirrors.aliyun.com/ubuntu focal-backports InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://mirrors.aliyun.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch https://mirrors.aliyun.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch https://mirrors.aliyun.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch https://mirrors.aliyun.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch http://linux.mellanox.com/public/repo/mlnx_ofed/5.1-2.5.8.0/ubuntu18.04/amd64/./InRelease Temporary failure resolving 'linux.mellanox.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
La première réaction a été qu'il pourrait y avoir un problème avec la configuration des sources d'apt. J'ai utilisé vi /etc/apt/source.list pour ouvrir les sources et j'ai constaté qu'il n'y avait aucun problème. J'ai utilisé ping pour tester le réseau. Lorsque j'ai envoyé un ping Baidu, j'ai signalé une erreur d'hôte inconnu. Lorsque j'ai envoyé une requête ping à 8.8.8.8, cela a fonctionné. Ce devrait être le nom de domaine. Erreur d'analyse, vi /etc/resolv.conf change de serveur de noms, entrez deux 8.8.8.8 et 8.8.4.4, puis la mise à jour appropriée peut réussir.
Le clone 2.git a échoué
git clone https://github.com/NVIDIA/nccl.git
Cloning into 'nccl'...
fatal: unable to access 'https://github.com/NVIDIA/nccl.git/': Failed to connect to github.com port 443: No route to host
Raison : Le serveur ne possède pas d'échelle. Solutions possibles :
Changer le DNS
vi /etc/resolv.conf
#输入以下内容 :wq退出保存
nameserver 114.114.114.114
Utiliser d'autres machines pour télécharger vers les entrepôts nationaux
#在其他机器上下载并上传到国内仓库
git clone https://github.com/NVIDIA/nccl-tests.git
cd nccl-tests
git remote set-url origin https://gitee.com/username/nccl-tests.git
git add .
git commit -m "initial commit"
git push -u origin master