MasterDevX / Termux-ADB

Install ADB & FastBoot Tools in Termux!
1.68k stars 275 forks source link

Segmentation fault #36

Open edoardoc opened 4 years ago

edoardoc commented 4 years ago

So this is my second attempt, after having uninstalled and reinstalled Termux, I did this:

Welcome to Termux!

Wiki:            https://wiki.termux.com
Community forum: https://termux.com/community
Gitter chat:     https://gitter.im/termux/termux
IRC channel:     #termux on freenode

Working with packages:

 * Search packages:   pkg search <query>
 * Install a package: pkg install <package>
 * Upgrade packages:  pkg upgrade

Subscribing to additional repositories:

 * Root:     pkg install root-repo
 * Unstable: pkg install unstable-repo
 * X11:      pkg install x11-repo

Report issues at https://termux.com/issues

$ adb
No command adb found, did you mean:
 Command ab in package apache2
 Command gdb in package gdb
$ apt update && apt install wget && wget https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh && bash InstallTools.shIgn:2 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:3 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Ign:1 https://dl.bintray.com/termux/termux-packages-24 stable InRelease
Get:5 https://dl.bintray.com/grimler/game-packages-24 games Release [5344 B]
Get:6 https://dl.bintray.com/grimler/science-packages-24 science Release [6191 B]
Get:4 https://dl.bintray.com/termux/termux-packages-24 stable Release [8255 B]
Get:7 https://dl.bintray.com/grimler/game-packages-24 games Release.gpg [475 B]
Get:8 https://dl.bintray.com/grimler/science-packages-24 science Release.gpg [475 B]
Get:9 https://dl.bintray.com/termux/termux-packages-24 stable Release.gpg [821 B]
Get:10 https://dl.bintray.com/grimler/game-packages-24 games/stable aarch64 Packages [3991 B]
Get:11 https://dl.bintray.com/grimler/science-packages-24 science/stable aarch64 Packages [8729 B]
Get:12 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 Packages [118 kB]
Fetched 153 kB in 2s (53.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  libunistring libuuid pcre2
The following NEW packages will be installed:
  libunistring libuuid pcre2 wget
0 upgraded, 4 newly installed, 0 to remove and 10 not upgraded.
Need to get 1557 kB of archives.
After this operation, 7516 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 libunistring aarch64 0.9.10-4 [477 kB]
Get:2 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 libuuid aarch64 1.0.3-4 [6514 B]
Get:3 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 pcre2 aarch64 10.35-1 [813 kB]
Get:4 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 wget aarch64 1.20.3-3 [261 kB]
Fetched 1557 kB in 2s (650 kB/s)
Selecting previously unselected package libunistring.
(Reading database ... 3450 files and directories currently installed.)
Preparing to unpack .../libunistring_0.9.10-4_aarch64.deb ...
Unpacking libunistring (0.9.10-4) ...
Selecting previously unselected package libuuid.
Preparing to unpack .../libuuid_1.0.3-4_aarch64.deb ...
Unpacking libuuid (1.0.3-4) ...
Selecting previously unselected package pcre2.
Preparing to unpack .../pcre2_10.35-1_aarch64.deb ...
Unpacking pcre2 (10.35-1) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.20.3-3_aarch64.deb ...
Unpacking wget (1.20.3-3) ...
Setting up libuuid (1.0.3-4) ...
Setting up libunistring (0.9.10-4) ...
Setting up pcre2 (10.35-1) ...
Setting up wget (1.20.3-3) ...
--2020-08-31 14:49:26--  https://github.com/MasterDevX/Termux-ADB/raw/master/InstallTools.sh
Resolving github.com... 140.82.121.4
Connecting to github.com|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/MasterDevX/Termux-ADB/master/InstallTools.sh [following]
--2020-08-31 14:49:26--  https://raw.githubusercontent.com/MasterDevX/Termux-ADB/master/InstallTools.sh
Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1128 (1.1K) [text/plain]
Saving to: ‘InstallTools.sh’

InstallTool   0%       0  --.-KB/s          InstallTool 100%   1.10K  --.-KB/s    in 0.003s

2020-08-31 14:49:27 (371 KB/s) - ‘InstallTools.sh’ saved [1128/1128]

This script will install ADB & FastBoot Tools in Termux.

[*] Downloading wrapper script...
[*] Downloading binaries...
[*] Copying files to bin...
[*] Setting execution permissions...
[*] Creating workspace directory...
[*] Cleaning up...

Tools were successfully installed!

$ adb
/data/data/com.termux/files/usr/bin/adb: line 7: 21947 Segmentation fault      $dir/adb.bin "$@"

lscpu output:

Architecture:        aarch64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  1
Core(s) per socket:  2
Socket(s):           3
Vendor ID:           ARM
Model:               0
Model name:          Cortex-A55
Stepping:            r1p0
CPU max MHz:         2600.0000
CPU min MHz:         826.0000
BogoMIPS:            3.84
Flags:               fp asimd evtstrm aes pm
                     ull sha1 sha2 crc32 ato
                     mics fphp asimdhp cpuid
                      asimdrdm lrcpc dcpop a
                     simddp

What am I missing?

RuofengX commented 4 years ago

I got the same problem.

fzhwenzhou commented 3 years ago

the same