Closed bellini666 closed 10 years ago
Btw, I'm on stable+staging
xbian-update 101 or 102 (definitely part of last 103) should have fixed this as discussed already here:
https://github.com/xbianonpi/xbian/issues/551#issuecomment-45683728
the relevant file is /etc/apt/apt.conf.d/06xbian-btrfs and change is
findmnt -n | grep -m1 .
changed to
findmnt -n /
also there is important point that only systems with kernels 3.14 and higher are affected where the wrapper workaround is used in order for findmnt to work.
(wrapper is forcing raw output thus "/" is not on top anymore)
@mk01 yes I can confirm that the issue is really resolved!
I'm going to close it for you! :)
Totally fresh install
root@CarMC:/home/xbian# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Do you want to continue? [Y/n]
E: Problem executing scripts DPkg::Pre-Invoke '[ -e /etc/default/xbian-snap ] && . /etc/default/xbian-snap; [ $ENABLEDAPT = yes ] || exit 0; z=$(findmnt -n / | awk '{print $2}'); z=${z#*\[\/}; echo $z | grep -q '\]' && z=${z%%\/*}; which xbian-snapper >/dev/null && xbian-snapper -k $KEEPAPT -l apt-run $z;'
E: Sub-process returned an error code
The full log:
To reproduce this you have to:
1) Upgrade xbian and reboot 2) After that reboot, upgrade it again. The error will happen.
So, it's a problem trying to upgrade the system on the reboot after the previous upgrade boot.
The workaround has been to reboot again in that situation so the error will vanish.