T
Termux•4mo ago
Bonjour

How can I fix this?

Hiiiii! A week ago, I switched from play's termux to the one from f-droid. I used the following commands in backup and restoring: Backup
tar -zcf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files ./home ./usr
tar -zcf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files ./home ./usr
Restoring
tar -zxf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files --recursive-unlink --preserve-permissions
tar -zxf /sdcard/termux-backup.tar.gz -C /data/data/com.termux/files --recursive-unlink --preserve-permissions
But now I get a problem with proot-distro. While backing up, I got a few warnings about socket files related to proot-distro's ubuntu. Now, I am unable to login to it, remove it, or uninstall/install it. I also tried
pkg uninstall proot-distro;pkg clean; pkg install proot-distro; proot-distro install ubuntu
pkg uninstall proot-distro;pkg clean; pkg install proot-distro; proot-distro install ubuntu
but it didn't work at all. Can somebody help me?
No description
Solution:
I will clear termux's data
Jump to solution
9 Replies
Bonjour
BonjourOP•4mo ago
"Error: the rootfs of distribution 'ubuntu' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct."
Biswa96
Biswa96•4mo ago
The error comes from this line https://github.com/termux/proot-distro/blob/8ebee022a96da441218ab49eeebba45112a6b340/proot-distro.sh#L720 The path is mentioned in the if condition.
Bonjour
BonjourOP•4mo ago
No description
Bonjour
BonjourOP•4mo ago
Can't find the directory to add the etc folder Should I make one? like make the ubuntu folder then add /etc
Biswa96
Biswa96•4mo ago
Sadly, I am not familiar with proot and have not tried it yet (lack of interest and old hardware). 😔
Bonjour
BonjourOP•4mo ago
Oh alr then but thx for the link I might try a few things to see if I can fix this
Biswa96
Biswa96•4mo ago
The etc directory should be in
'/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc'
'/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc'
Bonjour
BonjourOP•4mo ago
yeah actually I think I figured out the reason this error is happening "/data/data/com.termux/files/usr/bin/tar doesn't exist" which is weird given that it actually does exist using ls ofc
Solution
Bonjour
Bonjour•4mo ago
I will clear termux's data
Want results from more Discord servers?
Add your server