Page 1 of 1

Upgrading an old Jessie to Stretch [Solved]

Posted: 2021-11-25 13:14
by glennt
I am upgrading a Debian box that hasn't been updated for a long time. Started as Squeeze. I had no problems until I am trying to move from Jessie to Stretch and I am having issues with glibc /libc-bin
Fortunately this is a VM so I have lots of snapshots and can revert easily.

All is good with Jessie

Code: Select all

uname -a:
Linux debbox 3.16.0-6-686-pae #1 SMP Debian 3.16.56-1+deb8u1 (2018-05-08) i686 GNU/Linux
I update sources to:

Code: Select all

deb http://deb.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
apt-get update

apt-cache policy libc-bin

Code: Select all

libc-bin:
  Installed: 2.19-18+deb8u10
  Candidate: 2.24-11+deb9u4
  Version table:
     2.24-11+deb9u4 0
        500 http://deb.debian.org/debian/ stretch/main i386 Packages
     2.24-11+deb9u1 0
        500 http://security.debian.org/ stretch/updates/main i386 Packages
 *** 2.19-18+deb8u10 0
        100 /var/lib/dpkg/status

apt-get upgrade goes a long way then as soon as:

Code: Select all

Unpacking zenmap (7.40-1) over (6.47-3+deb8u2) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b2) ...
dpkg: error processing package install-info (--unpack):
 subprocess installed post-installation script was killed by signal (Segmentation fault)
Processing triggers for menu (2.1.47) ...
dpkg: error processing package menu (--unpack):
 subprocess installed post-installation script was killed by signal (Segmentation fault)
Processing triggers for systemd (215-17+deb8u7) ...
dpkg: error processing package systemd (--unpack):
 subprocess installed post-installation script was killed by signal (Segmentation fault)
Processing triggers for python-support (1.0.15) ...
dpkg: error processing package python-support (--unpack):
 subprocess installed post-installation script was killed by signal (Segmentation fault)
Processing triggers for udev (215-17+deb8u7) ...
dpkg: error processing package udev (--unpack):
 subprocess installed post-installation script was killed by signal (Segmentation fault)
Errors were encountered while processing:
 install-info
 menu
 systemd
 python-support
 udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
E: Sub-process returned an error code
After this every command produces a Segmentation fault

What am I missing? Any suggestions?

TIA
Glenn

Re: Upgrading an old Jessie to Stretch

Posted: 2021-12-03 18:47
by glennt
Solved with a bit of brute force
before upgrading

Code: Select all

rm /etc/ld.so.conf.d/fakeroot-i386-linux-gnu.conf
rm /etc/ld.so.conf.d/i386-linux-gnu.conf
mv /lib/i686 /home/glenn


Now ldconfig does not trash the system