Jose M. Calhariz: Crossgrading a complex Desktop and Debian Developer machine running Debian 9, for real.
After sometime without looking into this problem, I decided to do another
try. I do not found a way to do a complex crossgrade of my desktop without
massively removing packages. And there are bug and bug that require to edit the config scripts of the packages.
So here is my another try to do a crossgrade of my desktop, this time for
real.
apt-get update apt-get upgrade apt-get autoremove apt-get clean dpkg --list > original.dpkg apt-get --download-only install dpkg:amd64 tar:amd64 apt:amd64 bash:amd64 dash:amd64 init:amd64 mawk:amd64 for pack32 in $(grep i386 original.dpkg egrep "^ii " awk ' print $2 ' ) ; do echo $pack32 ; apt-get --download-only install -y --allow-remove-essential $ pack32%:i386 :amd64 ; done cd /var/cache/apt/archives/ dpkg --install libacl1_*amd64.deb libattr1_*_amd64.deb libapt-pkg5.0_*amd64.deb libbz2-1.0_*amd64.deb dpkg_*amd64.deb tar_*amd64.deb apt_*amd64.deb bash_*amd64.deb dash_*amd64.deb dpkg --install --skip-same-version *.deb dpkg --configure --pending dpkg --install --skip-same-version *.deb dpkg --remove libcurl4-openssl-dev:i386 dpkg --configure --pending dpkg --remove libkdesu5 kde-runtime apt-get --fix-broken install apt-get install $(egrep "^ii" ~/original.dpkg grep -v ":i386" grep -v "all" grep -v "aiccu" grep -v "acroread" grep -v "flashplayer-mozilla" grep -v "flash-player-properties" awk ' print $2 ')Reboot. Then the system failed to boot, missing lvm2 package. Boot with a live CD.
sudo -i mount /dev/sdc2 /mnt mount /dev/vg100/usr /mnt/usr mount /dev/vg100/var /mnt/var mount -o bind /proc /mnt/proc mount -o bind /sys /mnt/sys mount -o bind /dev/ /mnt/dev mount -o bind /dev/pts /mnt/dev/pts chroot /mnt /bin/su - apt-get install lvm2 exit rebootStill somethings do not work, like command fakeroot.
for pack32 in $(grep i386 original.dpkg egrep "^ii " awk ' print $2 ' ) ; do echo $pack32 ; if dpkg --status $pack32 grep -q "Multi-Arch: same" ; then apt-get -y install $ pack32%:i386 :amd64 ; fi ; done for pack32 in $(grep i386 original.dpkg egrep "^ii " awk ' print $2 ' ) ; do echo $pack32 ; apt-get -y install $ pack32%:i386 :amd64 ; doneNow is time to find what still does not work and how to solve it.