Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to unpack: value too great for base #115

Closed
darkgeek opened this issue Aug 26, 2018 · 9 comments
Closed

Failed to unpack: value too great for base #115

darkgeek opened this issue Aug 26, 2018 · 9 comments
Labels
A26+ Android 8 SDK 26+ enhancement

Comments

@darkgeek
Copy link

Hi, all:

I tried to install TermuxArch on my OnePlus One but it failed with the following errors:

While waiting, you can use df, du -hs, htop, ps, top and watch in a new Termux session to watch the unpacking while the session completes.  Use info query and man query to learn more about your Linux system in the palm of your hand.  See The Linux Documentation Project http://tldp.org to learn more about Linux and CLI commands.  Unpacking ArchLinuxARM-armv7-latest.tar.gz will take a long time; Be patient…

necessaryfunctions.sh: line 346: [[: 377940K: value too great for base (error token is "377940K")


Download Exception!  Execute bash setupTermuxArch.sh again…
 ✓ Unpacking: DONE

I searched that line 346, and guessed that the culprit is the output format of du:

u0_a91@localhost:~$  du "./arch"/*z | awk {'print $1'}
377940k

And the sysinfo is as follows:

Updatable packages:
golang/stable 2:1.11 arm [upgradable from: 2:1.10.3]
libnghttp2/stable 1.32.1 arm [upgradable from: 1.32.0]
openssh/stable 7.8p1 arm [upgradable from: 7.7p1-4]
System information:
Linux localhost 3.4.113-lineageos-g0b80a39 #1 SMP PREEMPT Mon Aug 20 08:20:32 UTC 2018 armv7l Android
Termux-packages arch:
arm
Android version:
8.1.0
Device manufacturer:
OnePlus
Device model:
A0001

Don't hesitate to tell me if you need more information. Thanks.

@SDRausty
Copy link
Owner

@darkgeek the spinner was dropped with this a61011f#diff-414dd6cd129c3db9ee6d4065df813d0d commit. Can you check whether this resolves the error encountered?

@SDRausty
Copy link
Owner

@darkgeek can you also post complete output from setupTermuxArch.sh sysinfo?

@darkgeek
Copy link
Author

@SDRausty Hi, the complete sysinfo is as follows:

u0_a91@localhost.pts/1 ~/TermuxArch % bash ./setupTermuxArch.sh sysinfo

Setting mode to sysinfo.

 🕛 > 🕛 setupTermuxArch v1.6 id8241 will create a system information file.  Ensure background data is not restricted.  Run bash setupTermuxArch.sh help for additional information.  Check the wireless connection if you do not see one o'clock 🕐 below.  Checking prerequisites…

Using wget to manage downloads.

 🕛 > 🕧 Prerequisites: OK  Downloading TermuxArch…


Generating TermuxArch system information; Please wait…

 ✓ Generating: DONE                              

Begin TermuxArch system information.

`termux-info` results:

Updatable packages:
All packages up to date
System information:
Linux localhost 3.4.113-lineageos-g0b80a39 #1 SMP PREEMPT Mon Aug 20 08:20:32 UTC 2018 armv7l Android
Termux-packages arch:
arm
Android version:
8.1.0
Device manufacturer:
OnePlus
Device model:
A0001

Disk report 21054544 on /data Sun Aug 26 22:26:56 CST 2018

BASH_VERSINFO[0] = 4
BASH_VERSINFO[1] = 4
BASH_VERSINFO[2] = 23
BASH_VERSINFO[3] = 1
BASH_VERSINFO[4] = release
BASH_VERSINFO[5] = arm-unknown-linux-androideabi

cat /proc/cpuinfo results:

Processor	: ARMv7 Processor rev 1 (v7l)
processor	: 0
BogoMIPS	: 38.00

processor	: 1
BogoMIPS	: 38.00

processor	: 2
BogoMIPS	: 38.00

processor	: 3
BogoMIPS	: 38.00

Features	: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 
CPU implementer	: 0x51
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0x06f
CPU revision	: 1

Hardware	: Qualcomm MSM8974PRO-AC
Revision	: 0000
Serial		: 0000000000000000

dpkg --print-architecture result:

arm

getprop ro.product.cpu.abi result:

armeabi-v7a

getprop ro.product.device result:

A0001

Download directory information results.

/sdcard/Download exists
/storage/emulated/0/Download exists
~/downloads not found
/data/data/com.termux/files/home/storage/downloads exists

df /data/data/com.termux/files/home/arch results:

Filesystem                                      1K-blocks     Used Available Use% Mounted on
/dev/block/platform/msm_sdcc.1/by-name/userdata  57591248 36536716  21054532  64% /data

df results:

Filesystem                                      1K-blocks     Used Available Use% Mounted on
tmpfs                                             1459660      684   1458976   1% /dev
/dev/block/platform/msm_sdcc.1/by-name/system     1334432   901332    433100  68% /system
tmpfs                                             1459660        0   1459660   0% /mnt
/dev/block/platform/msm_sdcc.1/by-name/userdata  57591248 36536716  21054532  64% /data
/dev/block/platform/msm_sdcc.1/by-name/cache       516040     8612    507428   2% /cache
/dev/block/platform/msm_sdcc.1/by-name/modem        65488    57424      8064  88% /firmware
/data/media                                      57591248 36536716  21054532  64% /storage/emulated

du -hs /data/data/com.termux/files/home/arch results:

12K	/data/data/com.termux/files/home/arch

ls -al /data/data/com.termux/files/home/arch results:

total 12K
drwxr-xr-x  3 u0_a91 u0_a91 4096 Aug 26 22:26 .
drwx------ 15 u0_a91 u0_a91 4096 Aug 26 22:26 ..
drwxrwxrwt  3 u0_a91 u0_a91 4096 Aug 26 22:26 tmp

uname -a results:

Linux localhost 3.4.113-lineageos-g0b80a39 #1 SMP PREEMPT Mon Aug 20 08:20:32 UTC 2018 armv7l Android

End `setupTermuxArchSysInfo1116.log` system information.

Share this information along with your issue at https://github.com/sdrausty/TermuxArch/issues; include input and output.  This file is found in `/data/data/com.termux/files/home/TermuxArch/setupTermuxArchSysInfo1116.log`.  If you think screenshots will help in a quicker resolution, include them in your post as well.  

Submit this information if you plan to open up an issue at https://github.com/sdrausty/TermuxArch/issues to improve `setupTermuxArch.sh` along with a screenshot of the topic.  Include information about input and output.  


setupTermuxArch.sh sysinfo v1.6 id8241: DONE 🏁 

@SDRausty SDRausty added the A26+ Android 8 SDK 26+ label Aug 26, 2018
@darkgeek
Copy link
Author

@SDRausty I updated and retried the setupTermuxArch.sh script, but it failed as before with same error.

@SDRausty
Copy link
Owner

Hi @darkgeek! Thanks for posting your initial analysis and this update. The last time we looked at this exception was #46 (comment) here. Since the spinner was readded yesterday (in appears that this spinner has problems of its' own (a race condition)), this is why it was dropped immediately. Do you still have the same error?

necessaryfunctions.sh: line 346: [[: 377940K: value too great for base (error token is "377940K")

@darkgeek
Copy link
Author

@SDRausty Yes, I still have this error.

@SDRausty
Copy link
Owner

@darkgeek this fbfa849#diff-414dd6cd129c3db9ee6d4065df813d0d commit drops the exception from preproot() which is triggering this error.

@darkgeek
Copy link
Author

@SDRausty Thanks! It works after updating to the latest install script.

@SDRausty
Copy link
Owner

@darkgeek You are welcome! The exception in preproot() is much gentler now:
if [[ "$(ls -al "$installdir"/*z | awk '{ print $5 }')" -gt 557799 ]] ; then
Should it misbehave on your device, simply holler here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A26+ Android 8 SDK 26+ enhancement
Projects
None yet
Development

No branches or pull requests

2 participants