Open zavocc opened 1 year ago
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:
Errors were encountered while processing:
makedev
mountall
plymouth
upstart
udev
ubuntu-minimal
initramfs-tools
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 env -u LD_PRELOAD PROOT_VERBOSE=9 proot -L -l -0 -b /dev -b /proc -b /sys -w / -r trusty /usr/bin/env -i TERM=$TERM PATH=/usr/bin:/usr/sbin:/sbin:/bin dpkg -i /var/cache/apt/archives/base-files_7.2ubuntu5.6_arm64.deb > log.txt 2>&1
)
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