解决APT安装源报错的问题
Tofloor
poster avatar
seasky
deepin
2020-04-18 05:47
Author
本帖最后由 gaohj 于 2020-4-18 23:05 编辑

使用apt来update的时候,报错:
E: 无法下载 https://cdn-package-store6.deepin.com/appstore/dists/eagle/appstore/binary-amd64/Packages.gz  文件尺寸不符(344275 != 344776)。您使用的镜像正在同步中?

切换成华为镜像,似乎可以解决报错,大家可以试试看。修改/etc/apt/sources.list,注释默认源,添加华为源:
## Huawei Mirrors
deb [trusted=yes] https://mirrors.huaweicloud.com/deepin stable main contrib non-free
#deb-src deb https://mirrors.huaweicloud.com/deepin stable main

单独切换或增加华为源还不行,参照下面jingle给的链接,把/etc/apt/sources.list.d/appstore.list这个源删除,才能真正解决问题。
Reply Favorite View the author
All Replies
avatar
ShineWay
deepin
2020-04-18 07:58
#1
改hosts文件试试
Reply View the author
avatar
seasky
deepin
2020-04-18 14:40
#2

改hosts文件?是要改什么?
Reply View the author
avatar
jingle
deepin
2020-04-18 18:36
#3
Reply View the author
avatar
jingle
deepin
2020-04-18 18:36
#4
Reply View the author
avatar
ShineWay
deepin
2020-04-18 22:38
#5
https://bbs.deepin.org/post/192020
改hosts文件?是要改什么?



@测试_jingle 北方地区的用户,在更新源时,community-packages.deepin.com这个地址会解析为:中国 河南 洛阳 联通61.54.25.18
这个地址下的服务器,没法链接,修改下hosts,然后就可以了。如下:
换个源服务器就好了,步骤如下:
sudo deepin-editor /etc/hosts

然后添加:
58.51.151.5 community-packages.deepin.com

在更新就好了。这个问题主要是dns解析出来的ip所对应的服务器有问题导致的。


实际上你把源里的 [by-hash=force] 删除就可以升级了
Reply View the author
avatar
wnmer
deepin
2020-04-19 00:11
#6
南方省份,用208.67.220.220表示没遇到这个问题
Reply View the author
avatar
seasky
deepin
2020-04-19 07:06
#7
https://bbs.deepin.org/post/192020
@测试_jingle 北方地区的用户,在更新源时,community-packages.deepin.com这个地址会解析为:中国 河 ...

请教一下,by-hash=force这个参数是什么意思?
Reply View the author
avatar
SamLukeYes
deepin
2020-04-19 07:20
#8
gaohj 发表于 2020-4-18 23:06
请教一下,by-hash=force这个参数是什么意思?

强制验证软件包的哈希值
Reply View the author
avatar
seasky
deepin
2020-04-19 17:16
#9
https://bbs.deepin.org/post/192020
强制验证软件包的哈希值

学习了,多谢
Reply View the author