I currently receive an "File has unexpected size. Mirror sync in progress? […] Unable to fetch some archives" error whenever I try to upgrade the code-server package from this repository. It appears similar to the error from #65, which seems to have been fixed by bumping the relevant package's revision number. (I was able to get everything else upgraded by temporarily marking code-server as hold.)
Both the installed version and the one it's trying to upgrade to display as 4.12.0-1. The SHA-256 hash of the locally installed one seems to be:
Based on that file's modification date, I think it's the version that was current as of 4/21/2023. I can upload the actual file if needed.
Full error transcript
```console
$ pkg up
Checking availability of current mirror:
[*] https://mirrors.bfsu.edu.cn/termux/apt/termux-main: ok
Hit:1 https://turdl.kcubeterm.com tur-packages InRelease
Hit:2 https://mirrors.bfsu.edu.cn/termux/apt/termux-main stable InRelease
Hit:3 https://mirrors.bfsu.edu.cn/termux/apt/termux-x11 x11 InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
code-server
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.9 MB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://tur.kcubeterm.com tur-packages/tur aarch64 code-server aarch64 4.12.0-1 [37.9 MB]
Err:1 https://tur.kcubeterm.com tur-packages/tur aarch64 code-server aarch64 4.12.0-1
File has unexpected size (39022012 != 37850472). Mirror sync in progress? [IP: 185.199.108.133 443]
Hashes of expected file:
- SHA256:233dc52d194ca965910cac44ae2baaaf95732d01410d4b61121ac4bac951f57c
- SHA1:03336106984fdbe1f6179285df69a4dc11f15e71 [weak]
- MD5Sum:4a8931ec5b7af8157b283899a0d40186 [weak]
- Filesize:37850472 [weak]
E: Failed to fetch https://objects.githubusercontent.com/github-production-release-asset-2e65be/509717777/7e5287bf-5dd9-4f8e-9a07-436f9595c5d2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230519%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230519T161201Z&X-Amz-Expires=300&X-Amz-Signature=1c4a0ddfdcbff5f6160055a1756b49aaa699f2e26b00b37545d7c20162ef64fc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=509717777&response-content-disposition=attachment%3B%20filename%3Dcode-server_4.12.0-1_aarch64.deb&response-content-type=application%2Foctet-stream File has unexpected size (39022012 != 37850472). Mirror sync in progress? [IP: 185.199.108.133 443]
Hashes of expected file:
- SHA256:233dc52d194ca965910cac44ae2baaaf95732d01410d4b61121ac4bac951f57c
- SHA1:03336106984fdbe1f6179285df69a4dc11f15e71 [weak]
- MD5Sum:4a8931ec5b7af8157b283899a0d40186 [weak]
- Filesize:37850472 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
```
What steps will reproduce the bug?
Have code-server installed from TUR, version 4.12.0-1, SHA-256 e94c5aee8fa76dd90813f9d92bb9581591540697936996018f6973786e15ed24
Run pkg upgrade
What is the expected behavior?
Package should upgrade successfully.
System information
termux-info:
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=30398
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirrors.bfsu.edu.cn/termux/apt/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://mirrors.bfsu.edu.cn/termux/apt/termux-x11 x11 main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
Updatable packages:
code-server/tur-packages 4.12.0-1 aarch64 [upgradable from: 4.12.0-1]
termux-tools version:
1.38.1
Android version:
13
Kernel build information:
Linux localhost 4.19.113-26430179 #1 SMP PREEMPT Wed Apr 19 14:15:37 +07 2023 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-T970
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Problem description
I currently receive an "File has unexpected size. Mirror sync in progress? […] Unable to fetch some archives" error whenever I try to upgrade the
code-server
package from this repository. It appears similar to the error from #65, which seems to have been fixed by bumping the relevant package's revision number. (I was able to get everything else upgraded by temporarily markingcode-server
ashold
.)Both the installed version and the one it's trying to upgrade to display as
4.12.0-1
. The SHA-256 hash of the locally installed one seems to be:Based on that file's modification date, I think it's the version that was current as of 4/21/2023. I can upload the actual file if needed.
Full error transcript
```console $ pkg up Checking availability of current mirror: [*] https://mirrors.bfsu.edu.cn/termux/apt/termux-main: ok Hit:1 https://turdl.kcubeterm.com tur-packages InRelease Hit:2 https://mirrors.bfsu.edu.cn/termux/apt/termux-main stable InRelease Hit:3 https://mirrors.bfsu.edu.cn/termux/apt/termux-x11 x11 InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 1 package can be upgraded. Run 'apt list --upgradable' to see it. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: code-server 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 37.9 MB of archives. After this operation, 65.5 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://tur.kcubeterm.com tur-packages/tur aarch64 code-server aarch64 4.12.0-1 [37.9 MB] Err:1 https://tur.kcubeterm.com tur-packages/tur aarch64 code-server aarch64 4.12.0-1 File has unexpected size (39022012 != 37850472). Mirror sync in progress? [IP: 185.199.108.133 443] Hashes of expected file: - SHA256:233dc52d194ca965910cac44ae2baaaf95732d01410d4b61121ac4bac951f57c - SHA1:03336106984fdbe1f6179285df69a4dc11f15e71 [weak] - MD5Sum:4a8931ec5b7af8157b283899a0d40186 [weak] - Filesize:37850472 [weak] E: Failed to fetch https://objects.githubusercontent.com/github-production-release-asset-2e65be/509717777/7e5287bf-5dd9-4f8e-9a07-436f9595c5d2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230519%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230519T161201Z&X-Amz-Expires=300&X-Amz-Signature=1c4a0ddfdcbff5f6160055a1756b49aaa699f2e26b00b37545d7c20162ef64fc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=509717777&response-content-disposition=attachment%3B%20filename%3Dcode-server_4.12.0-1_aarch64.deb&response-content-type=application%2Foctet-stream File has unexpected size (39022012 != 37850472). Mirror sync in progress? [IP: 185.199.108.133 443] Hashes of expected file: - SHA256:233dc52d194ca965910cac44ae2baaaf95732d01410d4b61121ac4bac951f57c - SHA1:03336106984fdbe1f6179285df69a4dc11f15e71 [weak] - MD5Sum:4a8931ec5b7af8157b283899a0d40186 [weak] - Filesize:37850472 [weak] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ```What steps will reproduce the bug?
code-server
installed from TUR, version4.12.0-1
, SHA-256e94c5aee8fa76dd90813f9d92bb9581591540697936996018f6973786e15ed24
pkg upgrade
What is the expected behavior?
Package should upgrade successfully.
System information
termux-info: