问题
最开始是在系统设置的更新页面发现更新失败,所以尝试在终端使用命令行执行
sudo apt-get update
报错如下:
命中:2 https://community-packages.deepin.com/deepin apricot InRelease
命中:3 https://cdn-package-store6.deepin.com/appstore eagle InRelease
命中:4 http://linux.teamviewer.com/deb stable InRelease
命中:1 https://uos.deepin.cn/printer eagle InRelease
获取:5 http://packages.microsoft.com/repos/vscode stable InRelease [3,959 B]
获取:6 http://10.2.217.13/packages.microsoft.com/repos/vscode stable/main amd64 Packages [189 kB]
错误:6 http://10.2.217.13/packages.microsoft.com/repos/vscode stable/main amd64 Packages
文件尺寸不符(187868 != 188529)。您使用的镜像正在同步中? [IP: 10.2.217.13 80]
Hashes of expected file:
- Filesize:188529 [weak]
- SHA512:f28a13c8337dc41550af0e57122e18e8919cf86fd39cd0640d284077a886b49eade03d11d0f422d1e4760100365447120d0bbfc215c77c84fa50b9ad18313847
- SHA256:2b02c437959b981e0ada628da45d8009b2cad49a68c68eda6c4135a30ea849c9
- SHA1:17f51dc146fcbf7daf5a784b6994747da75e5151 [weak]
- MD5Sum:04058c19fed045e88c58e18f59ac5266 [weak]
Release file created at: Sat, 11 Jul 2020 07:14:15 +0000
错误:7 https://desktop-download.mendeley.com/download/apt stable InRelease
无法连接上 desktop-download.mendeley.com:443 (2606:4700:7::a29f:8256)。 - connect (113: 没有到主机的路由) 无法连接上 desktop-download.mendeley.com:443 (2606:4700:7::a29f:8556)。 - connect (113: 没有到主机的路由) 无法连接上 desktop-download.mendeley.com:443 (162.159.133.86),连接超时 无法连接上 desktop-download.mendeley.com:443 (162.159.130.86),连接超时
已下载 3,959 B,耗时 33秒 (121 B/s)
正在读取软件包列表... 完成
W: 无法下载 https://desktop-download.mendeley.com/download/apt/dists/stable/InRelease 无法连接上 desktop-download.mendeley.com:443 (2606:4700:7::a29f:8256)。 - connect (113: 没有到主机的路由) 无法连接上 desktop-download.mendeley.com:443 (2606:4700:7::a29f:8556)。 - connect (113: 没有到主机的路由) 无法连接上 desktop-download.mendeley.com:443 (162.159.133.86),连接超时 无法连接上 desktop-download.mendeley.com:443 (162.159.130.86),连接超时
E: 无法下载 http://10.2.217.13/packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 文件尺寸不符(187868 != 188529)。您使用的镜像正在同步中? [IP: 10.2.217.13 80]
Hashes of expected file:
- Filesize:188529 [weak]
- SHA512:f28a13c8337dc41550af0e57122e18e8919cf86fd39cd0640d284077a886b49eade03d11d0f422d1e4760100365447120d0bbfc215c77c84fa50b9ad18313847
- SHA256:2b02c437959b981e0ada628da45d8009b2cad49a68c68eda6c4135a30ea849c9
- SHA1:17f51dc146fcbf7daf5a784b6994747da75e5151 [weak]
- MD5Sum:04058c19fed045e88c58e18f59ac5266 [weak]
Release file created at: Sat, 11 Jul 2020 07:14:15 +0000
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
仔细看错误条目发现并不是系统源的问题,而是出自vscode 解决方法进入/etc/apt/source.list.d/目录 找到文件vscode.list 直接删除或者将文件中的有效行注释掉就可以了