SDRausty / termux-archlinux

You can use setupTermuxArch.bash 📲 to install Arch Linux in Termux on Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/termux-archlinux/
https://sdrausty.github.io/termux-archlinux/
Other
756 stars 74 forks source link

Checksum fail #35

Closed happytommyl closed 5 years ago

happytommyl commented 5 years ago

 bash setupTermuxArch.sh

🕛 > 🕛 TermuxArch v1.6.7.id5677 shall attemp t to install Linux in /data/data/com.termux/files/home/a rch. Arch Linux in Termux PRoot shall be available upon successful completion. To run this BASH script again, use !!. Ensure background data is not restricted. Ch eck the wireless connection if you do not see one o'cloc k 🕐 below. Checking prerequisites…

Found download tool curl; Continuing…

Using curl to manage downloads.

🕛 > 🕧 Prerequisites: OK Downloading TermuxArch…

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- - 0 0 0 0 0 0 0 0 --:--:-- - 100 153 100 153 0 0 102 0 0:00:01 100 153 100 153 0 0 102 0 0:00:01 0:00:01 --:--:-- 102 100 35597 100 35597 0 0 51815 0 --:--:-- - -:--:-- --:--:-- 51815

setupTermuxArch.sh: line 58: /data/data/com.termux/files /usr/bin/applets/sha512sum: No such file or directory

🔆 WARNING sha512sum mismatch! Setup initialization mi smatch! Try again, initialization was not successful t his time. Wait a little while. Then run bash setupTer muxArch.sh again…

setupTermuxArch.sh v1.6.7.id5677: DONE 🏁

SDRausty commented 5 years ago

@happytommyl I checked to see if there are any errors: Screenshot_20190726-105805

SDRausty commented 5 years ago

@happytommyl for some reason, you don't have this /data/data/com.termux/files /usr/bin/applets/sha512sum file. You can create it manually by symlinking to /data/data/com.termux/files/usr/bin/busybox. It is installed by default. Any idea why the symlink sha512sum is missing from this system?

jeffrey562 commented 5 years ago

Had to symlink three different things (two more after the one you suggested). Then was met with this message. Any idea what's going on?

mpolidori commented 5 years ago

@jeffrey562 I ran into the same error after the 3 symlinks. Were you able to resolve this?

jeffrey562 commented 5 years ago

@mpolidori unfortunately, I was not. I'm about ready to give up on this, but I guess at the very least I should report this issue as something on its own instead of dragging it on in this closed thread.

SDRausty commented 5 years ago

You can create sha512sum manually by symlinking to $PREFIX/bin/busybox:

cd $PREFIX/bin/applets/
ln -s ../busybox sha512sum

Any idea why the symlink sha512sum is missing?

This symlink comes from busybox. As busybox is a Termux package, busybox issues are at https://github.com/termux/termux-packages/issues this link.

SDRausty commented 5 years ago

@happytommyl @jeffrey562 @mpolidori what is the output of ls $PREFIX/bin/applets/?

mpolidori commented 5 years ago

@SDRausty

ls $PREFIX/bin/applets
crond    hostname  mpstat  runsvdir           tar     which
crontab  inotifyd  mv      sendmail           tcpsvd
diff     iostat    nmeter  sha512sum          uname
ftpd     lsof      rm      start-stop-daemon  uptime
ftpget   lsusb     rmdir   sv                 usleep
ftpput   md5sum    runsv   svlogd             vi

This is after I created the symlinks for sha512sum, tar, uname, and md5sum. Before that those were missing.

jeffrey562 commented 5 years ago

@SDRausty https://i.imgur.com/oOtxGgB.jpg

Also after I manually symlinked three things. I don't remember the other two after sha512sum, but it's probably the same as the ones mpolidori mentioned.

SDRausty commented 5 years ago

Here's the correct output:

$ ls $PREFIX/bin/applets/
ar                 fuser              pipe_progress      sv
arp                getopt             pkill              svlogd
awk                grep               pmap               sync
base64             gunzip             popmaildir         sysctl
basename           gzip               printenv           tac
bbconfig           hd                 printf             tail
bunzip2            head               ps                 tar
bzip2              hexdump            pscan              tcpsvd
cal                hostname           pstree             tee
cat                httpd              pwd                telnet
chattr             id                 pwdx               telnetd
chgrp              ifconfig           readlink           test
chmod              inotifyd           realpath           tftp
chown              install            reformime          tftpd
chpst              iostat             renice             time
chrt               ipcalc             reset              timeout
cksum              kill               resize             touch
clear              killall            rev                tr
cmp                less               rm                 true
comm               linux32            rmdir              tty
cp                 linux64            route              ttysize
cpio               ln                 run-parts          udpsvd
crond              ls                 runsv              uname
crontab            lsattr             runsvdir           uncompress
cut                lsof               rx                 unexpand
date               lsusb              script             uniq
dc                 lzma               scriptreplay       unix2dos
dd                 makemime           sed                unlink
diff               md5sum             sendmail           unlzma
dirname            mkdir              seq                unxz
dos2unix           mkfifo             setsid             unzip
du                 mknod              setuidgid          uptime
echo               mktemp             sha1sum            usleep
egrep              more               sha256sum          uudecode
env                mpstat             sha3sum            uuencode
envdir             mv                 sha512sum          vi
expand             nc                 shuf               watch
expr               netstat            sleep              wc
false              nice               smemcap            wget
find               nmeter             softlimit          which
fold               nohup              sort               whoami
free               nproc              split              whois
fsync              od                 start-stop-daemon  xargs
ftpd               patch              strings            xz
ftpget             pgrep              stty               yes
ftpput             pidof              sum
$ $PREFIX/bin/busybox --install
busybox: /bin/ar: No such file or directory
busybox: /sbin/arp: Permission denied
busybox: /bin/awk: No such file or directory
busybox: /bin/base64: No such file or directory
busybox: /bin/basename: No such file or directory
busybox: /bin/bbconfig: No such file or directory
busybox: /bin/bunzip2: No such file or directory
busybox: /bin/bzip2: No such file or directory
busybox: /bin/cal: No such file or directory
busybox: /bin/cat: No such file or directory
busybox: /bin/chattr: No such file or directory
.
.
.

The busybox --install feature appears to be broken. Please let https://github.com/termux/termux-packages/issues know about these errors. It also appears that linked libraries in Termux are broken at present too.

SDRausty commented 5 years ago

Evidently backward compatibility is being broken in Termux:

  1. https://github.com/termux/termux-packages/issues/4123
  2. https://github.com/termux/termux-packages/issues/4128

Breaking backward compatibility is something good programmers must avoid, especially when distributing a stable release. Please inform https://github.com/termux/termux-packages/issues/ that breaking backward compatibility is something good programmers must avoid, especially when distributing a stable release.

As:

$ echo $PATH
/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets

bin takes presidence over bin/applets, there is NO VALID REASON to break backward compatibility in Termux.

Reference https://duckduckgo.com/?q="programming"+"maintaining"+"compatibility"

SDRausty commented 5 years ago

You can create the symbolic links manually by symlinking to $PREFIX/bin/busybox:

cd $PREFIX/bin/applets/
ln -s ../busybox awk
ln -s ../busybox sha512sum
ln -s ../busybox rev
ln -s ../busybox tar
ln -s ../busybox uname

Run setupTermuxArch.sh again.

cd
bash setupTermuxArch.sh h # for more information
victoryang00 commented 5 years ago

no solutions

ogahozy commented 5 years ago

No success after many attempt: 🔆 WARNING: Maximum amount of attempts exceeded! Run bash setupTermuxArch.sh again. See bash setupTermuxArch.sh help to resolve download errors. If this keeps repeating, copy knownconfigurations.sh to setupTermuxArchConfigs.sh with preferred mirror. After editing setupTermuxArchConfigs.sh, run bash setupTermuxArch.sh and setupTermuxArchConfigs.sh loads automaticaly from the same directory. Change mirror to desired geographic location to resolve md5sum errors.

User configurable variables are in setupTermuxArchConfigs.sh. Create this file from kownconfigurations.sh in the working directory. Use bash setupTermuxArch.sh manual to create and edit setupTermuxArchConfigs.sh.

    Run `bash setupTermuxArch.sh` again…
SDRausty commented 5 years ago

Version 0.74 (74) from https://f-droid.org/en/packages/com.termux/

All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package proot TermuxArch WARNING: Generated script signal 100 near or at line number 600 by trap! setupTermuxArch.sh v1.6.7.id5677: [Exit Signal 201] DONE 🏁

ogahozy commented 5 years ago

how do i get it up and runing. how can install it manually. 🕛 > 🕞 Contacting worldwide mirror https://os.archlinuxarm.org: DONE

. If contact with the local mirror is not successful, run bash setupTermuxArch.sh again. Should the worldwide mirror not provide another geographically nearby server after a couple of attempts, use bash setupTermuxArch.sh manual after locating a local mirror from the Internet; See bash setupTermuxArch.sh help for additional options. Download of ArchLinuxARM-aarch64-latest.tar.gz pending Internet connection:

ogahozy commented 5 years ago

i have this when i run the system info; $ bash setupTermuxArch.sh sysinfo

Setting mode to sysinfo.

🕛 > 🕛 TermuxArch v1.6.7.id5677 shall 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…

Found download tool curl; Continuing…

Using curl to manage downloads.

🕛 > 🕧 Prerequisites: OK Downloading TermuxArch…

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com curl: (6) Could not resolve host: raw.githubusercontent.com

TermuxArch WARNING: Generated script signal 6 near or at line number 600 by trap!

SDRausty commented 5 years ago

how can install it manually.

bash ~/setupTermuxArch.sh manual

Output:

$ bash ~/setupTermuxArch.sh manual

Setting mode to manual.

 🕛 > 🕛 TermuxArch v1.6.7.id5677 shall attempt to install Linux in /data/data/com.termux/files/home/arch.  Arch Linux in Termux PRoot shall be available upon successful completion.  To run this BASH script again, use `!!`.  Ensure background data is not restricted.  Check the wireless connection if you do not see one o'clock 🕐 below.  Checking prerequisites…

Found download tool `curl`; Continuing…

Using curl to manage downloads.

 🕛 > 🕧 Prerequisites: OK  Downloading TermuxArch…

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   153  100   153    0     0     58      0  0:00:02  0:00:02 --:--:--    58
100 35597  100 35597    0     0  14588      0  0:00:02  0:00:02 --:--:-- 24851

 🕛 > 🕐 TermuxArch download: OK

CANNOT LINK EXECUTABLE "proot": library "libtalloc.so.2" not found

 TermuxArch WARNING:  Generated script signal 1 near or at line number 600 by `trap`!

setupTermuxArch.sh manual v1.6.7.id5677: [Exit Signal 201] DONE 🏁

Reference https://github.com/termux/proot/issues?q=is%3Aissue+libtalloc

SDRausty commented 5 years ago

@ogahozy try bash ~/setupTermuxArch.sh bloom, study the scripts and follow the steps. See whether using:

$ ls /system/bin/chroot
/system/bin/chroot

Resolves the proot error.

SDRausty commented 5 years ago

Steps to reproduce CANNOT LINK EXECUTABLE "proot": library "libtalloc.so.2" not found and E: Unable to locate package proot are to fresh install https://f-droid.org/repo/com.termux_74.apk on a fresh device, and to run https://raw.githubusercontent.com/TermuxArch/TermuxArch/master/setupTermuxArch.sh Issues can be raised at the following:

SDRausty commented 5 years ago

E: Unable to locate package proot TermuxArch WARNING: Generated script signal 100 near or at line number 600 by trap! setupTermuxArch.sh v1.6.7.id5677: [Exit Signal 201] DONE checkered_flag

Screenshot_20190903-221031

SDRausty commented 5 years ago

This commit https://github.com/TermuxArch/TermuxArch/commit/4406e856ce30af50d25ccb7f4c9a480a4c1293bf removes hardcoded paths.

-rwxrwx--- setupTermuxArch.bash
-r--r--r-- setupTermuxArch.bash

If you get errors with tar, use bsdtar

imShara commented 5 years ago

@SDRausty and now

🕛 > 🕜 TermuxArch v2.0.id0403 integrity: OK necessaryfunctions.bash: line 106: /data/data/com.termux/files/usr/bin/applets/uname: No such file or directory

SDRausty commented 5 years ago

@imShara thank you for bringing this to my attention!

imShara commented 5 years ago

Actually there was more errors while installation. I will write how I solve it if updated version still not final

SDRausty commented 5 years ago

https://github.com/SDRausty/TermuxArch/releases/tag/v2.0.id0406