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

Can't use pacman. Tried setupTermuxArch refresh. #119

Closed ghost closed 6 years ago

ghost commented 6 years ago

Begin TermuxArch system information.

dpkg --print-architecture result:

aarch64

getprop results:

uname -a results:

Linux localhost 4.4.111-14023573-QB19093103 #1 SMP PREEMPT Wed Jul 25 16:35:37 KST 2018 aarch64 Android

BASH_VERSINFO[0] = 4 BASH_VERSINFO[1] = 4 BASH_VERSINFO[2] = 23 BASH_VERSINFO[3] = 1 BASH_VERSINFO[4] = release BASH_VERSINFO[5] = aarch64-unknown-linux-android

cat /proc/cpuinfo results:

processor : 0 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 1 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 2 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 3 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 4 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x53 CPU architecture: 8 CPU variant : 0x4 CPU part : 0x001 CPU revision : 0

processor : 5 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x53 CPU architecture: 8 CPU variant : 0x4 CPU part : 0x001 CPU revision : 0

processor : 6 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x53 CPU architecture: 8 CPU variant : 0x4 CPU part : 0x001 CPU revision : 0

processor : 7 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x53 CPU architecture: 8 CPU variant : 0x4 CPU part : 0x001 CPU revision : 0

Download directory information results:

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

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 not readable

Disk report 44648844 on /data Sat Sep 8 20:04:09 EEST 2018

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

Filesystem 1K-blocks Used Available Use% Mounted on /dev/block/dm-1 56601920 11860920 44648840 21% /data

df results:

Filesystem 1K-blocks Used Available Use% Mounted on rootfs 1670688 10480 1660208 1% / tmpfs 1767480 1012 1766468 1% /dev tmpfs 1767480 0 1767480 0% /mnt tmpfs 1767480 0 1767480 0% /mnt/secure /dev/block/dm-0 4305080 4102672 202408 96% /system /dev/block/platform/11120000.ufs/by-name/CACHE 495944 4776 491168 1% /cache /dev/block/platform/11120000.ufs/by-name/EFS 16048 2608 13440 17% /efs /dev/block/platform/11120000.ufs/by-name/CPEFS 1936 556 1380 29% /cpefs /dev/block/platform/11120000.ufs/by-name/OMR 46288 12 46276 1% /omr /dev/block/dm-1 56601920 11860920 44648840 21% /data /data/knox/secure_fs/enc_user 56601920 11860920 44648840 21% /data/enc_user /data/knox/secure_fs/enc_media 56601920 11860920 44648840 21% /data/knox/secure_fs/enc_media /data/knox/data_de/150 56601920 11860920 44648840 21% /data/user_de/150 /data/knox/misc_de/150 56601920 11860920 44648840 21% /data/misc_de/150 /data/knox/data/150 56601920 11860920 44648840 21% /data/user/150 /data/knox/misc_ce/150 56601920 11860920 44648840 21% /data/misc_ce/150 tmpfs 1767480 0 1767480 0% /storage /data/media 56581440 11953080 44628360 22% /storage/emulated /mnt/media_rw/6559-0B0A 61979840 14069696 47910144 23% /storage/6559-0B0A /data/knox/sdcard/150 56601920 11860920 44648840 21% /storage/emulated/150 tmpfs 1767480 0 1767480 0% /storage/self

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

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

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

total 84 drwx------ 19 u0_a219 u0_a219 4096 Sep 8 20:03 . drwx------ 7 u0_a219 u0_a219 4096 Sep 8 20:04 .. lrwxrwxrwx 1 u0_a219 u0_a219 7 Sep 8 19:52 bin -> usr/bin drwxr-xr-x 3 u0_a219 u0_a219 4096 Sep 8 19:59 boot d--------- 2 u0_a219 u0_a219 4096 Sep 8 20:03 data drwxr-xr-x 2 u0_a219 u0_a219 4096 Sep 1 08:03 dev drwxr-xr-x 37 u0_a219 u0_a219 4096 Sep 8 20:00 etc drwxr-xr-x 3 u0_a219 u0_a219 4096 Sep 8 19:52 home lrwxrwxrwx 1 u0_a219 u0_a219 7 Sep 8 19:52 lib -> usr/lib drwxr-xr-x 2 u0_a219 u0_a219 4096 Aug 23 21:03 mnt drwxr-xr-x 2 u0_a219 u0_a219 4096 Aug 23 21:03 opt dr-xr-xr-x 2 u0_a219 u0_a219 4096 Sep 1 08:03 proc drwxr-x--- 4 u0_a219 u0_a219 4096 Sep 8 20:00 root drwxr-xr-x 2 u0_a219 u0_a219 4096 Sep 1 08:03 run lrwxrwxrwx 1 u0_a219 u0_a219 7 Sep 8 19:52 sbin -> usr/bin d--------- 2 u0_a219 u0_a219 4096 Sep 8 20:03 sdcard drwxr-xr-x 4 u0_a219 u0_a219 4096 Sep 8 19:52 srv -rwx------ 1 u0_a219 u0_a219 6255 Sep 8 20:00 startarch d--------- 2 u0_a219 u0_a219 4096 Sep 8 20:03 storage dr-xr-xr-x 2 u0_a219 u0_a219 4096 Sep 1 08:03 sys drwxrwxrwt 4 u0_a219 u0_a219 4096 Sep 8 20:04 tmp drwxr-xr-x 8 u0_a219 u0_a219 4096 Sep 8 19:59 usr drwxr-xr-x 13 u0_a219 u0_a219 4096 Sep 8 19:59 var

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

TermuxArch keys archlinux-keyring archlinuxarm-keyring gen.v1.6.id253461942179: DONE 🏁

==> Running TermuxArch pci gen.v1.6.id253461942179 …

:: Synchronizing package databases... error: failed retrieving file 'core.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update core (download library error) error: failed retrieving file 'extra.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update extra (download library error) error: failed retrieving file 'community.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update community (download library error) error: failed retrieving file 'alarm.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update alarm (download library error) error: failed retrieving file 'aur.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update aur (download library error) error: failed to synchronize all databases

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 gen.v1.6.id253461942179: DONE 🏁

TermuxArch WARNING: Generated script signal 201 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 (Exit Signal 201) gen.v1.6.id253461942179: DONE �

root20:17arch$ pacman -Syu :: Synchronizing package databases... error: failed retrieving file 'core.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update core (download library error) error: failed retrieving file 'extra.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update extra (download library error) error: failed retrieving file 'community.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update community (download library error) error: failed retrieving file 'alarm.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update alarm (download library error) error: failed retrieving file 'aur.db' from de6.mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds error: failed to update aur (download library error) error: failed to synchronize all databases root20:20arch$

SDRausty commented 6 years ago

@zsxcd Populate /etc/resolv.conf; It is not auto populating from addresolvconf() as it was before, for some unknown reason. I will look into the code shortly; in the meantime simply update the resolv.conf file with these nameservers:

    nameserver 8.8.8.8
    nameserver 8.8.4.4

This should help in resolving the timed out matter.

SDRausty commented 6 years ago

@zsxcd this appears to work as resolve.conf is now a link to /run/systemd/resolve/resolv.conf:

$ startarch
$ mkdir -p /run/systemd/resolve/
$ vi /run/systemd/resolve/resolv.conf # Add the nameservers manually.

Good luck.

pigeon2049 commented 6 years ago

same problem with you

pigeon2049 commented 6 years ago

@sdrausty hello it's really slow to download Arch in mainland China Can you add https://mirrors.tuna.tsinghua.edu.cn/archlinuxarm/ to mirror lists?

SDRausty commented 6 years ago

@zgl018 hi; can you post the output of getprop? This will help in resolving your wish.

@zsxcd thanks for bringing this topic to my attention. This https://github.com/sdrausty/TermuxArch/commit/af1800ad0daf7c4d7a4a8db15a94c59b085d6419 commit resolves this issue.

dmarjanovic commented 6 years ago

@sdrausty https://github.com/sdrausty/TermuxArch/issues/119#issuecomment-419682515 worked perfectly for me. Thanks

SDRausty commented 6 years ago

@dmarjanovic you are welcome; thank you for confirming 🛎️

@zgl018 the getprop information that interests adding local mirror(s) to TermuxArch is important. Edit out any information which might be sensitive. Share language, locale, TZ and similar information to help TermuxArch identify which mirror to choose. Running setupTermuxArch.sh sysinfo should aid in this information request as well. Do you find getprop an interesting command?

pigeon2049 commented 6 years ago

PS C:\platform-tools> .\adb shell getprop

pigeon2049 commented 6 years ago

Begin TermuxArch system information.

dpkg --print-architecture result:

aarch64

getprop results:

[getprop ro.product.model]: [MI PAD 4]

uname -a results:

Linux localhost 4.4.78-perf+ #1 SMP PREEMPT Thu Aug 23 01:04:00 CST 2018 aarch64 Android

BASH_VERSINFO[0] = 4 BASH_VERSINFO[1] = 4 BASH_VERSINFO[2] = 23 BASH_VERSINFO[3] = 1 BASH_VERSINFO[4] = release BASH_VERSINFO[5] = aarch64-unknown-linux-android

cat /proc/cpuinfo results:

Processor : AArch64 Processor rev 4 (aarch64) processor : 0 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x801 CPU revision : 4

processor : 1 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x801 CPU revision : 4

processor : 2 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x801 CPU revision : 4

processor : 3 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x801 CPU revision : 4

processor : 4 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x800 CPU revision : 2

processor : 5 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x800 CPU revision : 2

processor : 6 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x800 CPU revision : 2

processor : 7 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0xa CPU part : 0x800 CPU revision : 2

Hardware : Qualcomm Technologies, Inc SDA660

Download directory information results:

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

Device information results:

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

Disk report 41924912 on /data Fri Sep 14 09:12:30 CST 2018

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

Filesystem 1K-blocks Used Available Use% Mounted on /dev/block/dm-2 52076440 10004076 41924908 20% /data

df results:

Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 1897620 736 1896884 1% /dev none 1897620 0 1897620 0% /sys/fs/cgroup /dev/block/dm-0 2982364 1898708 1036308 65% /system overlay 1999196 604916 1357256 31% /vendor tmpfs 1897620 0 1897620 0% /mnt /dev/block/bootdevice/by-name/modem 112592 112368 224 100% /firmware /dev/block/bootdevice/by-name/bluetooth 65488 512 64976 1% /bt_firmware /dev/block/bootdevice/by-name/dsp 12016 8756 2936 75% /dsp /dev/block/bootdevice/by-name/cache 237536 688 228988 1% /cache /dev/block/bootdevice/by-name/cust 822168 59928 737340 8% /cust /dev/block/dm-2 52076440 10004076 41924908 20% /data /data/media 52076440 10004076 41924908 20% /storage/emulated

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

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

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

total 84 drwx------ 19 u0_a120 u0_a120 4096 Sep 14 08:51 . drwx------ 4 u0_a120 u0_a120 4096 Sep 14 09:12 .. lrwxrwxrwx 1 u0_a120 u0_a120 7 Sep 14 08:30 bin -> usr/bin drwxr-xr-x 3 u0_a120 u0_a120 4096 Sep 14 08:47 boot d--------- 2 u0_a120 u0_a120 4096 Sep 14 08:51 data drwxr-xr-x 2 u0_a120 u0_a120 4096 Sep 1 13:03 dev drwxr-xr-x 37 u0_a120 u0_a120 4096 Sep 14 08:51 etc drwxr-xr-x 3 u0_a120 u0_a120 4096 Sep 14 08:30 home lrwxrwxrwx 1 u0_a120 u0_a120 7 Sep 14 08:30 lib -> usr/lib drwxr-xr-x 2 u0_a120 u0_a120 4096 Aug 24 02:03 mnt drwxr-xr-x 2 u0_a120 u0_a120 4096 Aug 24 02:03 opt dr-xr-xr-x 2 u0_a120 u0_a120 4096 Sep 1 13:03 proc drwxr-x--- 4 u0_a120 u0_a120 4096 Sep 14 08:30 root drwxr-xr-x 9 u0_a120 u0_a120 4096 Sep 14 08:51 run lrwxrwxrwx 1 u0_a120 u0_a120 7 Sep 14 08:30 sbin -> usr/bin d--------- 2 u0_a120 u0_a120 4096 Sep 14 08:51 sdcard drwxr-xr-x 4 u0_a120 u0_a120 4096 Sep 14 08:30 srv -rwx------ 1 u0_a120 u0_a120 6515 Sep 14 08:27 startarch d--------- 2 u0_a120 u0_a120 4096 Sep 14 08:51 storage dr-xr-xr-x 2 u0_a120 u0_a120 4096 Sep 1 13:03 sys drwxrwxrwt 4 u0_a120 u0_a120 4096 Sep 14 09:12 tmp drwxr-xr-x 8 u0_a120 u0_a120 4096 Sep 14 08:51 usr drwxr-xr-x 13 u0_a120 u0_a120 4096 Sep 14 08:43 var

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

SDRausty commented 6 years ago

@zgl018 thank you for posting output💨 I will be looking into it in more detail, and hopefully there will be simple resolution forthcoming 💎