termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
774 stars 160 forks source link

broken dpkg in proot , armv7a hardfp #252

Open erfty125 opened 1 year ago

erfty125 commented 1 year ago

root@localhost:~# apt upgrade E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. root@localhost:~# dpkg --configure -a dpkg: error: error creating new backup file '/var/lib/dpkg/status-old': Permission denied root@localhost:~#

erfty125 commented 1 year ago

also i tried sime ways to fix this problem from forums but it doesnt help me

sylirre commented 1 year ago

How are you starting your proot environment? Is --link2symlink option added to proot command line?

erfty125 commented 1 year ago

How are you starting your proot environment? Is --link2symlink option added to proot command line?

i followed this tutorial: https://wiki.termux.com/wiki/Debian

erfty125 commented 1 year ago

also i got theese warning at the end of instalation

W: Failure trying to run: proot -w /home -b /dev -b /proc --link2symlink -0 -r /data/data/com.termux/files/home/debian-stable dpkg --force-overwrite --force-confold --skip-same-version --install /var/cache/apt/archives/dmsetup_2%3a1.02.175-2.1_armhf.deb /var/cache/apt/archives/libapparmor1_2.13.6-10_armhf.deb /var/cache/apt/archives/libargon2-1_0~20171227-0.2_armhf.deb /var/cache/apt/archives/libcap2_1%3a2.44-1_armhf.deb /var/cache/apt/archives/libcryptsetup12_2%3a2.3.7-1+deb11u1_armhf.deb /var/cache/apt/archives/libdevmapper1.02.1_2%3a1.02.175-2.1_armhf.deb /var/cache/apt/archives/libip4tc2_1.8.7-1_armhf.deb /var/cache/apt/archives/libjson-c5_0.15-2_armhf.deb /var/cache/apt/archives/libkmod2_28-1_armhf.deb /var/cache/apt/archives/systemd_247.3-7+deb11u1_armhf.deb
W: See /data/data/com.termux/files/home/debian-stable/debootstrap/debootstrap.log for details (possibly the package systemd is at fault)
erfty125 commented 1 year ago

also i got theese warning at the end of instalation

W: Failure trying to run: proot -w /home -b /dev -b /proc --link2symlink -0 -r /data/data/com.termux/files/home/debian-stable dpkg --force-overwrite --force-confold --skip-same-version --install /var/cache/apt/archives/dmsetup_2%3a1.02.175-2.1_armhf.deb /var/cache/apt/archives/libapparmor1_2.13.6-10_armhf.deb /var/cache/apt/archives/libargon2-1_0~20171227-0.2_armhf.deb /var/cache/apt/archives/libcap2_1%3a2.44-1_armhf.deb /var/cache/apt/archives/libcryptsetup12_2%3a2.3.7-1+deb11u1_armhf.deb /var/cache/apt/archives/libdevmapper1.02.1_2%3a1.02.175-2.1_armhf.deb /var/cache/apt/archives/libip4tc2_1.8.7-1_armhf.deb /var/cache/apt/archives/libjson-c5_0.15-2_armhf.deb /var/cache/apt/archives/libkmod2_28-1_armhf.deb /var/cache/apt/archives/systemd_247.3-7+deb11u1_armhf.deb
W: See /data/data/com.termux/files/home/debian-stable/debootstrap/debootstrap.log for details (possibly the package systemd is at fault)

also when i wrote

proot -w /home -b /dev -b /proc --link2symlink -0 -r /data/data/com.termux/files/home/debian-stable dpkg --force-overwrite --force-confold --skip-same-version --install /var/cache/apt/archives/dmsetup_2%3a1.02.175-2.1_armhf.deb /var/cache/apt/archives/libapparmor1_2.13.6-10_armhf.deb /var/cache/apt/archives/libargon2-1_0~20171227-0.2_armhf.deb /var/cache/apt/archives/libcap2_1%3a2.44-1_armhf.deb /var/cache/apt/archives/libcryptsetup12_2%3a2.3.7-1+deb11u1_armhf.deb /var/cache/apt/archives/libdevmapper1.02.1_2%3a1.02.175-2.1_armhf.deb /var/cache/apt/archives/libip4tc2_1.8.7-1_armhf.deb /var/cache/apt/archives/libjson-c5_0.15-2_armhf.deb /var/cache/apt/archives/libkmod2_28-1_armhf.deb /var/cache/apt/archives/systemd_247.3-7+deb11u1_armhf.deb

i got this

proot error: 'dpkg' not found (root = /data/data/com.termux/files/home/debian-stable, cwd = /home, $PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/home/buildAPKs/bin/:/data/data/com.termux/files/home/debil/root/clang+llvm-11.1.0-armv7a-linux-gnueabihf/bin/)                                         fatal error: see `proot --help`.