Hello Sir/Madam , I have encountered a bug while installing distros no matter which distro which server it always gave this bug
Are you using tmoe?
Yes
Are you rooted?
No
Desktop environment
🌿 mate
Describe the bug
The Bug I Always encounter is
cp: target '/data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64/root' is not a directory
bash: line 1001: cd: /data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64/root: No such file or directory proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64, cwd = /root, $PATH=(null))
fatal error: see `proot --help`. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64, cwd = /root, $PATH=(null)) fatal error: see `proot --help`. Press enter to return.
If There is any way to fix this please let me know
How to reproduce
No response
Expected behavior
it used to work fine before but from few days it has stopped working anymore
Screenshots
No response
Error Logs
failed to change mode of '/data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64/root' from 4426 (r-S-w-rw-) to 0002 (-------w-)
cp: target '/data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64/root' is not a directory
bash: line 1001: cd: /data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64/root: No such file or directory proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64, cwd = /root, $PATH=(null))
fatal error: see proot --help. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.local/share/tmoe-linux/containers/proot/ubuntu-focal_arm64, cwd = /root, $PATH=(null)) fatal error: see proot --help. Press enter to return.
Container type
No response
Configuration
| container | value |
|---|---|
| os | ubuntu focal 20.04 |
| arch | arm64 |
| host | value |
|---|---|
| os | android 12 |
| arch | arm64 |
| terminal | termux v0.118.0 |
| tmoe | v1.4988.3 |
Additional context
No response
Sorry for the late reply. related issue: https://github.com/2moe/tmoe-linux/issues/105
This may be a permission problem. If you have root privileges, then it is easy to fix. Otherwise, it is necessary to use other methods.
method 1: Remove proot dir : ~/.local/share/tmoe-linux/containers/proot
method 2: Reset termux data. This is a bad idea. It will clear all data from your termux app.
method 3:
Modify the container directory. Make the container install to the specified directory instead of the default directory. ps: This feature may be added to edition 2022.
method 4: Determine the problem step by step and fix it.
Check the file & dir size and permissions:
cd ~/.local/share/tmoe-linux/containers/
ls -lah proot proot/ubuntu-focal_arm64 proot/ubuntu-focal_arm64/root
du -sh proot/ubuntu-focal_arm64
Do some tests:
mkdir -pv proot/ubuntu-focal_arm64/root/tmp
...