SDRausty / TermuxArch

You can use setupTermuxArch.bash πŸ“² to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
https://sdrausty.github.io/TermuxArch/
Other
1.41k stars 162 forks source link

Warning setlocal on start #121

Closed gauloics closed 6 years ago

gauloics commented 6 years ago

How resolve it

screenshot_2018-09-14-13-19-43

SDRausty commented 6 years ago

Run setupTermuxArch.sh r for a quick refresh. This should resolve the locale message. If it doesn't, submit setupTermuxArch.sh sysinfo information. Ensure that you are using the latest version of TermuxArch.

gauloics commented 6 years ago

Begin TermuxArch system information.

dpkg --print-architecture result:

i686

getprop results:

uname -a results:

Linux localhost 3.10.20-x86_64_moor-265462-gfd33dd4 #1 SMP PREEMPT Fri Sep 30 15:31:23 CST 2016 x86_64 Android

BASH_VERSINFO[0] = 4 BASH_VERSINFO[1] = 4 BASH_VERSINFO[2] = 23 BASH_VERSINFO[3] = 1 BASH_VERSINFO[4] = release BASH_VERSINFO[5] = i686-pc-linux-android

cat /proc/cpuinfo results:

processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 90 model name : Intel(R) Atom(TM) CPU Z3580 @ 1.33GHz stepping : 0 microcode : 0x34 cpu MHz : 1833.000 cache size : 1024 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms bogomips : 2662.40 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:

processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 90 model name : Intel(R) Atom(TM) CPU Z3580 @ 1.33GHz stepping : 0 microcode : 0x34 cpu MHz : 1833.000 cache size : 1024 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms bogomips : 2662.40 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:

processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 90 model name : Intel(R) Atom(TM) CPU Z3580 @ 1.33GHz stepping : 0 microcode : 0x34 cpu MHz : 666.000 cache size : 1024 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 apicid : 4 initial apicid : 4 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms bogomips : 2662.40 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:

processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 90 model name : Intel(R) Atom(TM) CPU Z3580 @ 1.33GHz stepping : 0 microcode : 0x34 cpu MHz : 666.000 cache size : 1024 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 6 initial apicid : 6 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch ida arat epb dtherm tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms bogomips : 2662.40 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:

Download directory information results:

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

Device information results:

/dev/ashmem exists /dev/ashmem is readable /dev/shm does not exist /dev/shm is not readable /proc/stat exits /proc/stat is readable

Disk report 2.0G on /data Fri Sep 14 14:52:53 WIB 2018

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

Filesystem Size Used Free Blksize /data/data/com.termux/files/home/arch 3.6G 1.5G 2.0G 4096

df results:

Filesystem Size Used Free Blksize /dev 1.9G 68.0K 1.9G 4096 /sys/fs/cgroup 1.9G 0.0K 1.9G 4096 /mnt/media_rw 1.9G 0.0K 1.9G 4096 /mnt/asec 1.9G 4.0K 1.9G 4096 /mnt/asec/com.maleo.bussimulatorid-2 141.5M 114.2M 27.4M 4096 /mnt/asec/com.maleo.teloletmaker-1 67.3M 40.7M 26.6M 4096 /mnt/obb 1.9G 0.0K 1.9G 4096 /system 2.2G 1.8G 350.7M 4096 /cache 248.0M 436.0K 247.5M 4096 /config 59.0M 2.0M 57.0M 4096 /data 25.5G 21.3G 4.2G 4096 /data/sdext2 3.6G 1.5G 2.0G 4096 /data/media/0/Android/data/com.termux 3.6G 1.5G 2.0G 4096 /factory 27.5M 1.8M 25.7M 4096 /ADF 27.5M 44.0K 27.4M 4096 /local_cfg 2.2G 1.8G 350.7M 4096 /storage/emulated 1.9G 0.0K 1.9G 4096 /storage/MicroSD 3.6G 486.5M 3.1G 32768 /storage/emulated/0 25.5G 21.3G 4.2G 4096 /storage/emulated/legacy 25.5G 21.3G 4.2G 4096

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

630.5M /data/data/com.termux/files/home/arch

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

total 76 drwx------ 16 u0_a187 u0_a187 4096 Sep 14 14:52 . drwxrwx--- 11 u0_a187 sdcard_r 4096 Sep 14 14:52 .. -rw-r--r-- 1 u0_a187 u0_a187 1276 Mar 2 2017 README lrwxrwxrwx 1 u0_a187 u0_a187 7 Dec 6 2016 bin -> usr/bin drwxr-xr-x 2 u0_a187 u0_a187 4096 Dec 6 2016 boot drwxr-xr-x 2 u0_a187 u0_a187 4096 Mar 2 2017 dev drwxr-xr-x 27 u0_a187 u0_a187 4096 Sep 14 14:50 etc drwxr-xr-x 2 u0_a187 u0_a187 4096 Sep 14 14:08 home lrwxrwxrwx 1 u0_a187 u0_a187 7 Dec 6 2016 lib -> usr/lib drwxr-xr-x 2 u0_a187 u0_a187 4096 Dec 6 2016 mnt drwxr-xr-x 2 u0_a187 u0_a187 4096 Dec 6 2016 opt dr-xr-xr-x 2 u0_a187 u0_a187 4096 Mar 2 2017 proc drwxr-x--- 4 u0_a187 u0_a187 4096 Sep 14 12:59 root drwxr-xr-x 3 u0_a187 u0_a187 4096 Mar 2 2017 run lrwxrwxrwx 1 u0_a187 u0_a187 7 Dec 6 2016 sbin -> usr/bin drwxr-xr-x 4 u0_a187 u0_a187 4096 Dec 6 2016 srv -rwx------ 1 u0_a187 u0_a187 6135 Sep 14 14:50 startarch dr-xr-xr-x 2 u0_a187 u0_a187 4096 Mar 2 2017 sys drwxrwxrwt 3 u0_a187 u0_a187 4096 Sep 14 14:52 tmp drwxr-xr-x 8 u0_a187 u0_a187 4096 Sep 14 11:38 usr drwxr-xr-x 13 u0_a187 u0_a187 4096 Sep 14 11:38 var

End setupTermuxArchSysInfo7e0b.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/setupTermuxArchSysInfo7e0b.log. If you think screenshots will help in a quicker resolution, include them in the post as well.

SDRausty commented 6 years ago

@gauloics it appears that you are using an old version of setupTermuxArch.sh; This entire section is missing:

getprop results:

[getprop gsm.sim.operator.iso-country]: [us]
[getprop net.bt.name]: [Android]
[getprop persist.sys.locale]: [en-US]
[getprop ro.build.target_country]: []
[getprop ro.build.version.release]: [7.1.1]
[getprop ro.build.version.preview_sdk]: [0]
[getprop ro.build.version.sdk]: [25]
[getprop ro.com.google.clientidbase]: [android-zte]
[getprop ro.com.google.clientidbase.am]: [android-metropcs-us]
[getprop ro.com.google.clientidbase.ms]: [android-metropcs-us]
[getprop ro.product.device]: [crocus]
[getprop ro.product.cpu.abi]: [arm64-v8a]
[getprop ro.product.first_api_level]: [24]
[getprop ro.product.locale]: [en-US]

The current version is v1.6.id7271: Update to the newest version for full locale functionality.

gauloics commented 6 years ago

i have try update, but still have an error, any way to reinstall archlinux?

screenshot_2018-09-14-18-46-05

SDRausty commented 6 years ago

@gauloics try running keys again. If it does not complete successfully, rerun keys.

Then run pci; Use cat $(which pci) to see.

SDRausty commented 6 years ago

Is the setlocale warning gone? If it is not, can you post the output of getprop?

SDRausty commented 6 years ago

@gauloics if you can open an issue at https://github.com/termux/proot/issues regarding the proot error, this might help numerous Termux i686 users out in the future. A good title could be, "PRoot asked me to report this error, "proot error: trying to remove a directory outside of '/data/data/com.termux/files/usr/tmp', please report this error."" Good luckπŸ„πŸ’¦

gauloics commented 6 years ago

sorry, this proot is already install by termux, or must to install manual?

SDRausty commented 6 years ago

TermuxArch installs the proot package as Arch Linux needs it to run in Termux. If you want to install Termux packages manually, you can use apt and pkg.

gauloics commented 6 years ago

just info, my device has been rooted, and I use App2sd to link termux to the second partition, I'm not sure if it affects this error

gauloics commented 6 years ago

I tried installing the proot manually Check https://github.com/termux/proot/issues/19 install the required pakage pkg install libtalloc-dev pkg install clang clone& install proot git clone https://github.com/termux/proot.git cd proot/src && make && make install then refresh setupTermuxArch.sh $ bash TermuxArch/setupTermuxArch.sh r

Result: proot error gone, but setlocale still have error..

screenshot_2018-09-15-19-31-22

screenshot_2018-09-15-19-31-31

SDRausty commented 6 years ago

@gauloics please post output from getprop and cat /root/.bash_profile.

gauloics commented 6 years ago

which part do you want? the results of getprop are too long. cat: can't open '/root/.bash_profile': Permission denied

gauloics commented 6 years ago

oh sorry when run on Arch

[root20:37home]$cat /root/.bash_profile if [ ! -e "$HOME"/.hushlogin ] && [ ! -e "$HOME"/.chushlogin ] ; then . /etc/motd fi if [ -e "$HOME"/.chushlogin ] ; then rm "$HOME"/.chushlogin fi PATH="$HOME/bin:$PATH" . "$HOME"/.bashrc PS1="[\e[38;5;148m]\u[\e[1;0m]\A[\e[1;38;5;112m]\W[\e[0m]]\$"

PS1="[\A[\033[0;32m] \W [\033[0m]]\$ "

export TZ="Asia/Jakarta" export LANG="en_US.UTF-8" export LANGUAGE="en_US.UTF-8" export LC_ADDRESS="en_US.UTF-8" export LC_COLLATE="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" export LC_IDENTIFICATION="en_US.UTF-8" export LC_MEASUREMENT="en_US.UTF-8" export LC_MESSAGES="en_US.UTF-8" export LC_MONETARY="en_US.UTF-8" export LC_NAME="en_US.UTF-8" export LC_NUMERIC="en_US.UTF-8" export LC_PAPER="en_US.UTF-8" export LC_TELEPHONE="en_US.UTF-8" export LC_TIME="en_US.UTF-8"

SDRausty commented 6 years ago

which part do you want? the results of getprop are too long.

I'm actually interested in the entire output from getprop since there are many variations among devices. If there is sensitive information, edit the output. The parts with country, language and locales are most interesting for our issue. Is the output from startarch c locale-gen similar?

$ startarch c locale-gen
Generating locales...
  en_US.UTF-8... done
Generation complete.
SDRausty commented 6 years ago

@gauloics this feature was thoroughly tested on a number of devices and sets up the languag correctly. I still cannot understand the origin of the error you are receiving. Can you set the device to your native language? Not just the keyboard, but the entire device and run setupTermuxArch.sh r again?

To generate locales in a preferred language use Settings > Language & Keyboard > Language in Android; Then run setupTermuxArch.sh r for a quick system refresh;

gauloics commented 6 years ago

im give up πŸ™‡ last i tried rm -rf arch then setupTermuxArch again then now i got /root/bin/finishsetup.sh: line 53: ./root/bin/keys: No such file or directory

when refresh setup, got $ bash TermuxArch/setupTermuxArch.sh r Setting mode: minimal refresh; Use setupTermuxArch.sh re[fresh] for full refresh.
The root directory structure is incorrect; Cannot continue setupTermuxArch.sh refresh. setupTermuxArch.sh r v1.6.id7709: DONE 🏁

gauloics commented 6 years ago

sys.valhooks.version: 005E.002E: 0: 0: false: 1: false: 1: 1: submix: auto: wlan0: 6.37.32.RC23.34.22: [ok] $ getprop

[gsm.version.ril-impl]: [Intrinsyc Rapid-RIL M6.59 for Android 4.2 (Build September 17/2013)]

[offload.mixer.mute.ctl.name]: [media0_in volume 0 mute] [offload.mixer.rp.ctl.name]: [media0_in volume 0 rampduration] [offload.mixer.volume.ctl.name]: [media0_in volume 0 volume]

[ro.build.date]: [δΊ” 9月 30 15:00:38 CST 2016] [ro.build.description]: [asusmofd_fhd-user 5.0 LRX21V 2.20.40.198_20160930_8756_user release-keys]

gauloics commented 6 years ago

that is getprop, may there duplicate line cause manual copy from terminal

dlintw commented 6 years ago

I met the same issue on my armv7 CPU android, the LANG was set by setupTermuxArch.sh with wrong zh_hant_TW.UTF-8. My workaround is edit the /root/.bash_profile.sh, /etc/locale.gen and /etc/locale.conf and rerun locale-gen. Just set the LANG=zh_TW.UTF-8 in my case.

SDRausty commented 6 years ago

@dlintw function _SETLANGUAGE_ seems to be having difficulty configuring locales on your device too. Can you please post the output of getprop?

SDRausty commented 6 years ago

@gauloics thank you for posting output. I will be looking into it in more detail shortly. In the meantime you can help out by seeing which, if any, getprop results can be matched in function _SETLANGUAGE_. We have:


LANGIN[0]="$(getprop user.language)"
LANGIN[1]="$(getprop user.region)"
LANGIN[2]="$(getprop persist.sys.country)"
LANGIN[3]="$(getprop persist.sys.language)"
LANGIN[4]="$(getprop persist.sys.locale)"
LANGIN[5]="$(getprop ro.product.locale)"
LANGIN[6]="$(getprop ro.product.locale.language)"
LANGIN[7]="$(getprop ro.product.locale.region)"

Which other getprop options do we want in order to streamline locale configuration using array LANGIN?

gauloics commented 6 years ago

SETLOCALE() { # This function uses device system settings to set locale. To generate locales in a preferred language, you can use "Settings > Language & Keyboard > Language" in Android; Then run `setupTermuxArch.sh r for a quick system refresh. FTIME="$(date +%F%H%M%S)" echo "## File locale.conf generated by setupTermuxArch.sh at" ${FTIME//-}. > etc/locale.conf for i in "${!LC_TYPE[@]}"; do echo "${LC_TYPE[i]}"="$ULANGUAGE".UTF-8 >> etc/locale.conf done sed -i "/\#$ULANGUAGE.UTF-8 UTF-8/{s/#//g;s/@/-at-/g;}" etc/locale.gen }

What if there is a device not using UTF, but ISO. Because yesterday I saw my device using "id_ID.ISOxxx" instead of "id_ID.UTF-8". But today I was looking for where I found the file and didn't get it.

SDRausty commented 6 years ago

What if there is a device not using UTF

This is not possible since the UTF format is internal to Arch Linux, not the device.
[gsm.operator.iso-country]: [id] could be used by _SETLANGUAGE_ in LANGIN, and from what I see, both [ro.product.locale.language]: [en] and [ro.product.locale.region]: [US] were probably used, but locales did not set up correctly for some reason. Can you please output cat /etc/locale.conf?

More information on locales https://wiki.archlinux.org/index.php/Locale here. @gauloics you should be able to finish the locales configuration manually. Follow instructions at the link provided.

gauloics commented 6 years ago

wait ... I uninstalled TermuxArch before, tried to reinstall but failed and my problem was posted on another issue. I will try again now, and see what problems arise.

SDRausty commented 6 years ago

You should not be having any problems. If you are installing from the git repository use git pull first to get the current version. If you are installing from TermuxArchBloom, refresh this directory first by running setupTermuxArch.sh bloom again. If you are installing by simply running setupTermuxArch.sh, no worries, setupTermuxArch.sh automatically updates itself.

gauloics commented 6 years ago

just now iam use pkg install wget wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh bash setupTermuxArch.sh

then i got ":: Removing redundant packages for Termux PRoot installation… /root/bin/finishsetup.sh: line 53: ./root/bin/keys: No such file or directory
TermuxArch WARNING: Generated script signal 127 near or at line number 45 by trap -- 'TRPET' EXIT trap -- 'TRPSIG' SIGHUP trap -- 'TRPSIG' SIGINT trap -- 'TRPQ' SIGQUIT trap -- 'TRPSIG' SIGTERM trap -- 'TRPERR 45 trap "TRPERR $LINENO $BASH_COMMAND $?" ERR 0' ERR! finishsetup.sh v1.6.id3729 [Exit Signal 201]: DONE 🏁"6

but iam already can run

[root@localhost arch]# cat /etc/locale.conf ## File locale.conf generated by setupTermuxArch.sh at 20180917193732. LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_TIME=en_US.UTF-8

gauloics commented 6 years ago

[root@localhost arch]# cat /etc/locale.conf ## File locale.conf generated by setupTermuxArch.sh at 20180917193732. LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_TIME=en_US.UTF-8

on my phone setting language(not just keyboard) is id_ID

SDRausty commented 6 years ago

@gauloics when you run:

[root10:24arch]$ locale-gen
Generating locales...
  en_US.UTF-8... done
Generation complete.
[root10:27arch]$

Is the output similar?

SDRausty commented 6 years ago

@gauloics also run keys, followed by pci. I cannot reproduce the errors, and I am taking a closer look at your topics trying to reproduce the problems that you have encountered. Your output is very helpful; Thanks.

gauloics commented 6 years ago

sorry can't run bash like keys pci and also local-gen for now because installation corrupt

SDRausty commented 6 years ago

pkg install wget wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh bash setupTermuxArch.sh

@gauloics this is a perfectly good method for first install. To run the most recent version of setupTermuxArch.sh again, ./setupTermuxArch.sh [options] is completely sufficient to install again. This is because setupTermuxArch.sh is selfupdating. It will update itself to the most recent version which should have the best features, minimal required user intervention, one tap install and configure.

Use ./setupTermuxArch.sh r for a quick system refresh, ./setupTermuxArch.sh re[fresh] for a full system refresh. A full system refresh should run keys and pci sed zip automatically on i686 for you.

SDRausty commented 6 years ago

@gauloics did you encounter this install hang, when installing?

πŸ•› > πŸ•ž Downloading checksum from http://CMIRROR.rackspace.com…

SDRausty commented 6 years ago

@gauloics this https://github.com/sdrausty/TermuxArch/commit/eba2097d7c7a405652af580166043c113cdf566e commit along with a couple of previous ones are steps towards resolving these issues on i686. Hopefully, I will figure out why TermuxArch is not creating files exactly like does on arm architectures shortly.

SDRausty commented 6 years ago

@gauloics this https://github.com/sdrausty/TermuxArch/commit/8cff900d521ce08f1b0182f138555a3a3912af79 commit resolves this issue. The error has been found and corrected. Thank you for your help, time and patience with this issue.

gauloics commented 6 years ago

how about my architecture if run uname -a

Linux localhost 3.10.20-x86_64_moor-265462-gfd33dd4 #1 SMP PREEMPT Fri Sep 30 15:31:23 CST 2016 x86_64 Android

but on termux use i686 package Are i686 and x86_64 different architecture, aren't?

SDRausty commented 6 years ago

It's the same architecture.

gauloics commented 6 years ago

how to reinstall proot whitout full refresh? i always stuck at proot error: '/data/sdext2/data/com.termux/files/home/arch/usr/bin/basename' is a 64-bit program whereas this version of proot handles 32-bit programs only proot info: Get a 64-bit version that supports 32-bit binaries here: http://static.proot.me/proot-x86_64

SDRausty commented 6 years ago

@gauloics dpkg --purge package then pkg install package.

gauloics commented 6 years ago

downloading required keys... error: key "EEEEE2EEEE2EEEEE" could not be looked up remotely error: key "4A1AFC345EBE18F8" could not be looked up remotely error: required key missing from keyring error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded. TermuxArch WARNING: Generated script signal 1 near or at line number 46 by trap -- 'TRPET' EXIT trap -- 'TRPSIG' SIGHUP trap -- 'TRPSIG' SIGINT trap -- 'TRPQ' SIGQUIT trap -- 'TRPSIG' SIGTERM trap -- 'TRPERR 46 trap "TRPERR $LINENO $BASH_COMMAND $?" ERR 0' ERR! TermuxArch pci v1.6.id0224: DONE 🏁

when i follow https://wiki.archlinux.org/index.php/Pacman#Signaturefrom.22User_.3Cemail.40example.org.3E.22_is_unknown_trust.2C_installation_failed then after run pci i got error like my comment before

proot error: '/data/sdext2/data/com.termux/files/home/arch/usr/bin/basename' is a 64-bit program whereas this version of proot handles 32-bit programs only proot info: Get a 64-bit version that supports 32-bit binaries here: http://static.proot.me/proot-x86_64

gauloics commented 6 years ago

@gauloics dpkg --purge package then pkg install package.

i mean proot installation on TermuxArchLinux, not on Termux 😭😭😭

SDRausty commented 6 years ago

@gauloics from your description this sounds like a https://github.com/termux/termux-packages/issues?q=is%3Aissue+32bit+64bit issue. This https://github.com/termux/proot/issues link might also be able to help with the 32/64 bit issue too. Good luck at these two sites.

SDRausty commented 6 years ago

@gauloics is this device running 32 or 64 bit architecture?

gauloics commented 6 years ago

this my info

run on Termux

$ uname -a Linux localhost 3.10.20-x86_64_moor-265462-gfd33dd4 #1 SMP PREEMPT Fri Sep 30 15:31:23 CST 2016 x86_64 Android

run on TermuxArch

$ uname -a Linux localhost 3.10.20-x86_64_moor-265462-gfd33dd4 #1 SMP PREEMPT Fri Sep 30 15:31:23 CST 2016 x86_64 GNU/Linux

also getprop

$ getprop ro.product.cpu.abi
x86 $ getprop ro.product.cpu.abilist32 x86,armeabi-v7a,armeabi $ getprop ro.product.cpu.abilist64 [] $ getprop ro.product.cpu.abilist x86,armeabi-v7a,armeabi $ getprop ro.config.hwrlib T9_x86 $ getprop sys.kernel.version 3.10.20-x86_64_moor-265462-gfd33dd4

gauloics commented 6 years ago

I decided to use i686 because it followed the package installed by Termux itself

T4P4N commented 5 years ago

Remove locale warning manually:

nano /etc/locale.gen and uncomment line which is relevant to your native language and save it. Then run locale-gen and that's it thanks @sdrausty for archwiki link!

T4P4N commented 5 years ago

screenshot_2019-01-10-21-43-38-990_com termux