-
Notifications
You must be signed in to change notification settings - Fork 163
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
proot's -L
argument doesn't work correctly
#281
Comments
ARM64 ubuntu 14.04 and other linux distros would also prevent packages from being updated as I was trying to run this on proot (i know it's eol'ed but it should help with this proot's case) I've used this commands to setup ubuntu 14.04 and update packages mkdir trusty
curl --output trusty.tar.gz https://cdimage.ubuntu.com/ubuntu-base/releases/14.04/release/ubuntu-base-14.04-core-arm64.tar.gz
proot --link2symlink tar -xvf trusty.tar.gz -C trusty
# for su to work correctly
curl -L --output trusty/libdisableselinux.so https://github.com/CypherpunkArmory/UserLAnd-Assets-Debian/raw/master/assets/arm64/libdisableselinux.so
echo /libdisableselinux.so >> trusty/etc/ld.so.preload
chmod 755 trusty/libdisableselinux.so
echo nameserver 1.1.1.1 > trusty/etc/resolv.conf
env -u LD_PRELOAD proot -L -l -0 -b /dev -b /proc -b /sys -w / -r trusty /usr/bin/env -i TERM=$TERM su -l
# In Ubuntu
apt update && apt upgrade -y Would also show symlink size errors but termination instead of warning. Only in arm64 though. |
On devices I've tested described problem didn't occur (might be device-specific or something is missing from repro) When following instruction from first reply, only failure I've got:
Which can be bypassed through rm /var/lib/dpkg/info/makedev.postinst
rm /var/lib/dpkg/info/udev.postinst
dpkg --configure -a |
Weird. Here is the logs file just in case (generated with |
Problem description
I'm upgrading my debian installation from
bookworm
tosid
andapt
spams a lot of symlink size warning, however proot-distro have-L
argument passed toproot
but still doesn't suppress the messageScreenshot of htop showing the process of proot with
-L
flag passedUbuntu 14.04 arm64 would fail to upgrade packages as error
Steps to reproduce
Install a distribution that is behind updates that could trigger symlink size warning or error in
dpkg
Installing debian with
proot-distro install debian
(bookworm), change sources.list from bookworm to sid, and doapt full-upgrade
to witness itHowever reproducing this on ARM32 device or termux installation which has 32-bit proot, the
-L
argument works correctly as is, doesn't yield symlink size warnings.Expected behavior
proot's
-L
argument should be able to suppress it based on how-L
argument should doAdditional information
The text was updated successfully, but these errors were encountered: