-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
No such or file directory when setting Arch Linux up in Termux PRoot #37
Comments
Your Arch Linux should be installed even though the configuration part failed for some reason. Use |
$ ~/arch/startarch |
|
|
setupTermuxArch.sh --purge Run purge to uninstall Arch Linux? [y|n] y Uninstalling Arch Linux... Thank you for using setupTermuxArch.sh < 🕛 Your Arch Linux in Termux is installed! Please answer the following questions to complete the Arch Linux configuration. archsystemconfigs.sh: line 136: etc/motd: No such file or directory Do you want to use Would you like to run 🕥 < 🕛 Use ./arch/startarch from your $HOME directory to launch Arch Linux in Termux for future sessions. Alternatively copy startarch to your $PATH which is, "/data/data/com.termux/files/home/.autojump/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/data/data/com.termux/files/usr/bin/user/:/data/data/com.termux/files/usr/bin/user/system/". 🕚 < 🕛 Copy 🕦 < 🕛 Copied startarch to /data/data/com.termux/files/usr/bin. 🕛 = 🕛 Termux-wake-lock released. Your Arch Linux in Termux is installed and updated. Use proot error: '/bin/env' not found (root = /data/data/com.termux/files/home/arch, cwd = /data/data/com.termux/files/home, $PATH=(null)) Thank you for using |
@Ublimjo Sorry to hear you are still having trouble. Two questions:
Post output from
My data allotment has been consumed by this project and TermuxPovray this month. So checking the image you are using archlinux-bootstrap-2017.03.01-i686.tar.gz is going to take a little while since my data connection speed is very slow at the moment. The i686 image was working fine before. Do you have any idea why the system image might not be unpacking completely on your device? Are you sure that you have enough free space on device? |
@Ublimjo you want free space on device to be able to run programs and create. Without free space there is not much you can do. TermuxArch wants as much space as possible since it is a full blown Linux. See results for similarity when space is null: 🕥 < 🕛 Use ./arch/startarch from your $HOME directory to launch Arch Linux in Termux for future sessions. Alternatively copy startarch to your $PATH which is, "/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets". 🕚 < 🕛 Copy 🕦 < 🕛 Copied startarch to /data/data/com.termux/files/usr/bin. 🕛 = 🕛 Termux-wake-lock released. Your Arch Linux in Termux is installed and updated. Use proot error: '/bin/env' not found (root = /data/data/com.termux/files/home/arch, cwd = /data/data/com.termux/files/home, $PATH=(null)) Thank you for using |
a42d362 created dfa |
https://sdrausty.github.io/dfa/ created regarding disk space on device. This is now a submodule https://github.com/sdrausty/TermuxArch/tree/master/scripts/frags in TermuxArch. |
|
I'm getting the "/bin/env" issue too. The phone (FP2 running LineageOS) has 24G space free but setupTermuxArch doesn't seem to realize this:
Note: "The user space on this device is just 23415376." Output of "df -H":
Note "24G". |
The problem is with the silly |
@PluMGMK What is the output of @tomty89 Without |
|
@SDRausty there shouldn't be any output from You may also consider redirect to a file instead of |
There should be an entire OS with 100s of megabytes of data here.
|
Thank you for your reply.
|
@SDRausty Yup, and don't forget the x86 line. |
@SDRausty btw I think you simply have forgotten Also I am not sure if it matters for any modern Android build but the right way is probably to run
|
@tomty89 I am grateful for your diagnostics in this issue. Thank you. Something like
I see references to x86 in the man page. How should x86 be used? |
Sorry I don't follow what you mentioned. What I meant was |
@tomty89 How do you get the -h and -H options to work?
|
Well Termux uses the system
|
Thanks for your insight.
Evidently our |
My device is a Fairphone 2. As I say, I'm running LineageOS (version 14.1 to be precise). As such, my
And
I'll try the |
Now it's just crashing with 404 errors when trying to download the OS image…
|
@PluMGMK Thanks for posting you output. Run the script again if it gets a 404. I have gotten a couple of 404s too. Rerunning If the 404 doesn't go away for some reason by itself like it should, edit |
@SDRausty btw you may want to do a |
|
Okay, I've forced it to use de4.mirror.archlinuxarm.org (as opposed to nl.mirror.archlinuxarm.org which is missing the /os subdir for some reason). But now I'm getting: |
Seriously, just download it with chrome or whatsoever and run:
and see what exactly went wrong, because @SDRausty still haven't remove |
Okay, I got rid of the 2>/dev/null myself, and it told me bsdtar was being killed with signal 9. When I tried running bsdtar outside of a proot, it wasn't able to get the right permissions, but then when I ran setupTermuxArch.sh again it was happy because all the files were there anyway. Seems to work at last! |
@PluMGMK you''ll probably get into trouble at some point with the installation if it wasn't extracted with |
Nah, it starts fine. Seems bsdtar was the problem, not proot itself. |
@PluMGMK still you'll catch problems with it because of the missing links. You may want to try GNU tar instead. |
Actually busybox tar might even work better coz it doesn't spit tons of header keyword ignored message like GNU tar does |
https://github.com/sdrausty/TermuxArch/releases/tag/0.6
TermuxArch v0.6 Thanks for the heads up, assistance in diagnostics and suggestions. |
|
@PluMGMK
Thanks for the suggestion. Arm architectures now use the busybox version of |
🕧 < 🕛 Termux package requirements for Arch Linux: OK
setupTermuxArch.tar.g 100%[======================>] 6.87K --.-KB/s in 0.001s
setupTermuxArch.md5 100%[======================>] 77 --.-KB/s in 0s
setupTermuxArch.tar.gz: OK
🕐 < 🕛 Installation script download: OK
archsystemconfigs.sh: OK
knownconfigurations.sh: OK
necessaryfunctions.sh: OK
printoutstatements.sh: OK
setupTermuxArch.sh: OK
🕜 < 🕛 Installation script integrity: OK
🕑 < 🕛 Detected i686 Android Operating System.
🕝 < 🕛 Activating termux-wake-lock. Now downloading archlinux-bootstrap-2017.03.01-i686.tar.gz and the corresponding checksum. This may take a long time depending on your Internet connection.
archlinux-bootstrap-2 100%[======================>] 126.70M 849KB/s in 2m 46s
md5sums.txt 100%[======================>] 220 --.-KB/s in 0s
🕠 < 🕛 Checking download integrity with md5sum. This may take a little while.
archlinux-bootstrap-2017.03.01-i686.tar.gz: OK
🕕 < 🕛 Downloaded files integrity: OK
🕡 < 🕛 Now uncompressing archlinux-bootstrap-2017.03.01-i686.tar.gz. This will take much longer! Be patient.
🕙 < 🕛 Your Arch Linux in Termux is installed! Please answer the following questions to complete the Arch Linux configuration.
archsystemconfigs.sh: line 136: etc/motd: No such file or directory
The text was updated successfully, but these errors were encountered: