更换镜像源下载包的时候一样的报错
-
fjy01@laiangbrain:~$ sudo sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
fjy01@laiangbrain:~$ sudo sed -i 's/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
fjy01@laiangbrain:~$ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui
gitk gitweb git-cvs git-mediawiki git-svn
The following packages will be upgraded:
git
1 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.
Need to get 3166 kB of archives.
After this operation, 0 B of additional disk space will be used.
Ign:1 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 git amd64 1:2.34.1-1ubuntu1.15
Ign:1 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 git amd64 1:2.34.1-1ubuntu1.15
Ign:1 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 git amd64 1:2.34.1-1ubuntu1.15
Ign:1 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 git amd64 1:2.34.1-1ubuntu1.15
Err:1 http://mirrors.ustc.edu.cn/ubuntu jammy-updates/main amd64 git amd64 1:2.34.1-1ubuntu1.15
Temporary failure resolving 'mirrors.ustc.edu.cn'
E: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu/pool/main/g/git/git_2.34.1-1ubuntu1.15_amd64.deb Temporary failure resolving 'mirrors.ustc.edu.cn'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?