Package: libopenmpi3 Version: 3.1.3-7 Severity: serious Dear maintainer,
You missed a space in the script, which resulted in The following packages will be upgraded: libopenmpi3 openmpi-common 2 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 210 not fully installed or removed. Need to get 0 B/2338 kB of archives. After this operation, 16.4 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 168982 files and directories currently installed.) Preparing to unpack .../libopenmpi3_3.1.3-7_amd64.deb ... Unpacking libopenmpi3:amd64 (3.1.3-7) over (3.1.3-5) ... rm: cannot remove '/usr/lib/x86_64-linux-gnu/fortran/gfortran-8#': No such file or directory rm: cannot remove 'End': No such file or directory rm: cannot remove 'automatically': No such file or directory rm: cannot remove 'added': No such file or directory rm: cannot remove 'section': No such file or directory dpkg: warning: old libopenmpi3:amd64 package post-removal script subprocess returned error exit status 1 dpkg: trying script from the new package instead ... dpkg: error processing archive /var/cache/apt/archives/libopenmpi3_3.1.3-7_amd64.deb (--unpack): there is no script in the new version of the package - giving up Preparing to unpack .../openmpi-common_3.1.3-7_all.deb ... Unpacking openmpi-common (3.1.3-7) over (3.1.3-5) ... rm: cannot remove '/usr/lib/x86_64-linux-gnu/fortran/gfortran-8#': No such file or directory rm: cannot remove 'End': No such file or directory rm: cannot remove 'automatically': No such file or directory rm: cannot remove 'added': No such file or directory rm: cannot remove 'section': No such file or directory dpkg: warning: old openmpi-common package post-removal script subprocess returned error exit status 1 dpkg: trying script from the new package instead ... dpkg: error processing archive /var/cache/apt/archives/openmpi-common_3.1.3-7_all.deb (--unpack): ❯❯❯❯ cat /var/lib/dpkg/info/libopenmpi3:amd64.postrm | tail -n1 [ -d /usr/lib/$multiarch/fortran/$base ] && rm /usr/lib/$multiarch/fortran/$cmplr# End automatically added section ^missing space here