Open wiwwo opened 2 years ago
Same issue on Amazon Fire HD 8 2018 (Karnak), with LineageOS 16, Android 9
$ termux-info
Application version:
0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.org/apt/termux-main/ stable main
Updatable packages:
All packages up to date
Android version:
9
Kernel build information:
Linux localhost 3.18.20-lineageos-g239986d4d55f #0 SMP PREEMPT Sat May 2 17:36:14 PDT 2020 armv8l Android
Device manufacturer:
amzn
Device model:
Fire
Unable to truncate to 9232379236109516800
All you need is 8200petabytes of disk storage, is that so much to ask?
The error seems to be from
https://github.com/Debian/apt/blob/2d87af57ea52cb37c60103abb6468e0ad44864ff/methods/http.cc#L1017
https://github.com/Debian/apt/blob/2d87af57ea52cb37c60103abb6468e0ad44864ff/methods/basehttp.cc#L474
https://github.com/Debian/apt/blob/2d87af57ea52cb37c60103abb6468e0ad44864ff/methods/basehttp.cc#L296
There is likely some issue while calculating/getting TotalFileSize
from request or downloading file. Passing debug options to apt
should reveal more details, like running apt update -o Debug::Acquire::https=true
.
Do all mirrors have same issue, after changing them with termux-change-repo
(@renjieliu has different repo in sources.list
)? You both have amazon fire device, so likely some device issue.
https://manpages.debian.org/unstable/apt/apt.conf.5.en.html#DEBUG_OPTIONS
I am just a newbie and I also have an Amazon Fire HD 8 2018 (Karnak), with LineageOS 16, Android 9. Please try the old version of termux from the Google play store, I have no idea why, but it works. Type in termux-change-repo and select both the Game repository and Science repository. For the mirror, please select A1batross. You should be able to get 50 packages that's upgradable. RUN apt upgrade, make sure you keep the default during the upgrade. Make sure you do not run termux-change-repo the second time. I would very much appreciate if the developer can fix the issue for the latest version of termux. I also want to try out the Aidlux project which is based on Termux and unfortunately it doesn't work on my Fire 8. Thanks.
Well, that did the trick!!! Thanks Androidtamer, you tamed it! :-D
Problem description
In a fresh new installation on LineageOs 17, getting errors in
pkg upgrade
Steps to reproduce the behavior.
What is the expected behavior?
No response
System information