Deepin 20beta 使用sudo apt update命令提示 “文件尺寸不符”
Tofloor
poster avatar
hlfl
deepin
2020-04-18 09:19
Author
具体的如下图,第一张是错误信息,第二张是sources.list,这个是系统默认的
Reply Favorite View the author
All Replies
avatar
zsxwz
deepin
2020-04-18 14:03
#1
应该是应用商店源的问题,可以先备份一下/etc/apt/sources.list.d/appstore.list,然后再删掉,就可以更新了.
Reply View the author
avatar
seasky
deepin
2020-04-18 14:33
#2
命中:2 https://community-packages.deepin.com/deepin apricot InRelease               
获取:3 https://cdn-package-store6.deepin.com/appstore eagle InRelease [5,277 B]      
命中:1 http://uos.deepin.cn/printer eagle InRelease            
获取:4 https://cdn-package-store6.deepin.com/appstore eagle/appstore amd64 Packages [345 kB]
错误:4 https://cdn-package-store6.deepin.com/appstore eagle/appstore amd64 Packages
  文件尺寸不符(344275 != 344776)。您使用的镜像正在同步中? [IP: 120.192.92.219 443]
  Hashes of expected file:
   - Filesize:344776 [weak]
   - SHA256:541913cf5863896a77764e3017d78c202fd4cc576057d643e725b71e1b0ffa79
   - SHA1:5bdc097447f2845479be66825cfad5260b0942b9 [weak]
   - MD5Sum:b1d5f417e147232c4f0fcefcb5da35e6 [weak]
  Release file created at: Thu, 16 Apr 2020 17:36:21 +0000
获取:5 https://cdn-package-store6.deepin.com/appstore eagle/appstore i386 Packages [66.1 kB]
已下载 71.4 kB,耗时 1秒 (140 kB/s)                              
正在读取软件包列表... 完成
E: 无法下载 https://cdn-package-store6.deepin.com/appstore/dists/eagle/appstore/binary-amd64/Packages.gz  文件尺寸不符(344275 != 344776)。您使用的镜像正在同步中? [IP: 120.192.92.219 443]
   Hashes of expected file:
    - Filesize:344776 [weak]
    - SHA256:541913cf5863896a77764e3017d78c202fd4cc576057d643e725b71e1b0ffa79
    - SHA1:5bdc097447f2845479be66825cfad5260b0942b9 [weak]
    - MD5Sum:b1d5f417e147232c4f0fcefcb5da35e6 [weak]
   Release file created at: Thu, 16 Apr 2020 17:36:21 +0000
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
Reply View the author
avatar
seasky
deepin
2020-04-18 14:34
#3
https://bbs.deepin.org/post/192031
应该是应用商店源的问题,可以先备份一下/etc/apt/sources.list.d/appstore.list,然后再删掉,就可以更新了.
...

测试了一下,删除appstore确实可以了,但是这样一些更新是不是也就获取不到了?这个问题希望开发能先解决掉啊
Reply View the author
avatar
jingle
deepin
2020-04-18 18:35
#4
https://bbs.deepin.org/post/192031
测试了一下,删除appstore确实可以了,但是这样一些更新是不是也就获取不到了?这个问题希望开发能先解决 ...

谢谢反馈已经记录了
Reply View the author
avatar
seasky
deepin
2020-04-18 20:11
#5
https://bbs.deepin.org/post/192031
谢谢反馈已经记录了

好哒
Reply View the author
avatar
hlfl
deepin
2020-04-19 07:38
#6
zsxwz 发表于 2020-4-18 06:03
应该是应用商店源的问题,可以先备份一下/etc/apt/sources.list.d/appstore.list,然后再删掉,就可以更新了.
...

把这个文件删除后,确实没有报错了,但是应该会影响以后的更新吧
Reply View the author
avatar
lucksail
deepin
2020-04-19 16:14
#7
我在sorface pro3上安装后,也出现这个问题,换源也解决不了。删掉Appsotre.list后,商店也无法使用。急等 解决 。
Reply View the author
avatar
lucksail
deepin
2020-04-19 16:15
#8
surface直接安装V20版本,到62%处会安装出错,无法安装下去。调整BIOS等都没有用。
Reply View the author
avatar
山西姚一
deepin
2020-04-19 16:33
#9
+1         
Reply View the author
avatar
耐思
deepin
2020-04-19 19:45
#10
解决了吗
我的也是这个状况
Reply View the author
avatar
hlfl
deepin
2020-04-20 02:36
#11
现在问题已经解决了,把appstore.list删掉的方式不太可靠,我是通过修改hosts文件,这样系统才能继续使用update和upgrade,应用商店也能使用了。
具体做法:打开/etc/hosts文件,添加下图的内容,update和upgrade就可以正常使用了。
Reply View the author
avatar
hlfl
deepin
2020-04-20 02:43
#12
https://bbs.deepin.org/post/192031
现在问题已经解决了,把appstore.list删掉的方式不太可靠,我是通过修改hosts文件,这样系统才能继续使用up ...

再补充一下
hosts里的那个地址(cdn-package-store6.deepin.com)就是我的update报错的地址。前面的IP是对应这个域名的,需要通过域名解析来确定具体的IP。
做法:搜索 域名解析 ,粘贴自己的报错域名,找到下面的可用IP地址,再终端中先ping一下,看下自己的电脑是不是能用,可以的话,再添加到hosts文件里。
Reply View the author
avatar
hlfl
deepin
2020-04-20 03:04
#13
https://bbs.deepin.org/post/192031
解决了吗
我的也是这个状况

已经解决了,在12,13楼可以看到方法
Reply View the author
avatar
耐思
deepin
2020-04-20 23:52
#14
https://bbs.deepin.org/post/192031
已经解决了,在12,13楼可以看到方法

感谢按照上面的操作问题已解决
Reply View the author
avatar
heaven2020
deepin
2020-04-23 05:45
#15
https://bbs.deepin.org/post/192031
测试了一下,删除appstore确实可以了,但是这样一些更新是不是也就获取不到了?这个问题希望开发能先解决 ...

删除appstore确实可以了,那我删掉了怎么恢复呢,急求。现在商店不能用了。哭哭
Reply View the author
avatar
seasky
deepin
2020-04-23 07:06
#16
https://bbs.deepin.org/post/192031
删除appstore确实可以了,那我删掉了怎么恢复呢,急求。现在商店不能用了。哭哭 ...

重新创建文件就是了。文件内容就一句:
deb https://cdn-package-store6.deepin.com/appstore eagle appstore
Reply View the author
avatar
pollora1979
deepin
2020-04-23 15:48
#17
很奇葩,我居然是把移动的网络切换到电信网络,就没有这个问题了,所以这个官方看看到底是怎么回事,不用删除APPSTORE
Reply View the author
avatar
heaven2020
deepin
2020-04-24 07:11
#18
gaohj 发表于 2020-4-22 23:06
重新创建文件就是了。文件内容就一句:
deb https://cdn-package-store6.deepin.com/appstore eagle apps ...

恢复了这个文件appstore,商店可以用了,谢谢啦,以后不能随便删文件了
Reply View the author
avatar
dellman
deepin
2020-04-24 07:25
#19
同18楼,换个网络就可以了。我原来用的移动宽带,有这个问题,于是我换手机的热点(电信网络),就没这问题了。一切回移动宽带,更新的话就会有这个报错。
Reply View the author