After several weeks when the linuxlogo package gave error on upgrading, I tried first to reinstall it (apt reinstall), then to remove it (apt remove; apt install) and finally I succeded by first purging then installing (apt purge; apt install). Here is a log of what I did: # apt reinstall linuxlogo Summary: Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 28 1 not fully installed or removed. Space needed: 0 B / 92.6 GB available Error: Internal Error, No file name for linuxlogo:amd64 # apt remove linuxlogo REMOVING: linuxlogo Summary: Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 28 1 not fully installed or removed. Freed space: 282 kB Continue? [Y/n] y (Reading database ... 1052360 files and directories currently installed.) Removing linuxlogo (6.01-0.2) ... Processing triggers for menu (2.1.51) ... Processing triggers for man-db (2.13.1-1) ... # apt install linuxlogo Installing: linuxlogo Summary: Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 28 Download size: 0 B / 76.9 kB Space needed: 282 kB / 92.6 GB available debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Selecting previously unselected package linuxlogo. (Reading database ... 1052321 files and directories currently installed.) Preparing to unpack .../linuxlogo_6.01-0.2_amd64.deb ... Unpacking linuxlogo (6.01-0.2) ... Setting up linuxlogo (6.01-0.2) ... Failed to restart linuxlogo.service: Unit linuxlogo.service not found. invoke-rc.d: initscript linuxlogo, action "restart" failed. Unit linuxlogo.service could not be found. dpkg: error processing package linuxlogo (--configure): old linuxlogo package postinst maintainer script subprocess failed with exit status 5 Processing triggers for man-db (2.13.1-1) ... Processing triggers for menu (2.1.51) ... Errors were encountered while processing: linuxlogo localepurge: Disk space freed: 52 KiB in /usr/share/locale localepurge: Disk space freed: 0 KiB in /usr/share/man localepurge: Disk space freed: 0 KiB in /usr/share/gnome/help localepurge: Disk space freed: 0 KiB in /usr/share/omf localepurge: Disk space freed: 0 KiB in /usr/share/tcltk localepurge: Disk space freed: 0 KiB in /usr/share/cups/templates localepurge: Disk space freed: 0 KiB in /usr/share/cups/locale localepurge: Disk space freed: 0 KiB in /usr/share/cups/doc-root localepurge: Disk space freed: 0 KiB in /usr/share/calendar localepurge: Disk space freed: 0 KiB in /usr/share/aptitude localepurge: Disk space freed: 0 KiB in /usr/share/cups/templates localepurge: Disk space freed: 0 KiB in /usr/share/cups/locale localepurge: Disk space freed: 0 KiB in /usr/share/cups/doc-root localepurge: Disk space freed: 0 KiB in /usr/share/help localepurge: Disk space freed: 0 KiB in /usr/share/vim/vim92/lang Total disk space freed by localepurge: 52 KiB Error: Sub-process /usr/bin/dpkg returned an error code (1) # apt purge linuxlogo REMOVING: linuxlogo* Summary: Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 28 1 not fully installed or removed. Freed space: 282 kB Continue? [Y/n] y (Reading database ... 1052360 files and directories currently installed.) Removing linuxlogo (6.01-0.2) ... Processing triggers for menu (2.1.51) ... Processing triggers for man-db (2.13.1-1) ... (Reading database ... 1052320 files and directories currently installed.) Purging configuration files for linuxlogo (6.01-0.2) ... Processing triggers for menu (2.1.51) ... # apt install linuxlogo Installing: linuxlogo Summary: Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 28 Download size: 0 B / 76.9 kB Space needed: 282 kB / 92.6 GB available debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Selecting previously unselected package linuxlogo. (Reading database ... 1052319 files and directories currently installed.) Preparing to unpack .../linuxlogo_6.01-0.2_amd64.deb ... Unpacking linuxlogo (6.01-0.2) ... Setting up linuxlogo (6.01-0.2) ... Processing triggers for man-db (2.13.1-1) ... Processing triggers for menu (2.1.51) ... localepurge: Disk space freed: 52 KiB in /usr/share/locale localepurge: Disk space freed: 0 KiB in /usr/share/man localepurge: Disk space freed: 0 KiB in /usr/share/gnome/help localepurge: Disk space freed: 0 KiB in /usr/share/omf localepurge: Disk space freed: 0 KiB in /usr/share/tcltk localepurge: Disk space freed: 0 KiB in /usr/share/cups/templates localepurge: Disk space freed: 0 KiB in /usr/share/cups/locale localepurge: Disk space freed: 0 KiB in /usr/share/cups/doc-root localepurge: Disk space freed: 0 KiB in /usr/share/calendar localepurge: Disk space freed: 0 KiB in /usr/share/aptitude localepurge: Disk space freed: 0 KiB in /usr/share/cups/templates localepurge: Disk space freed: 0 KiB in /usr/share/cups/locale localepurge: Disk space freed: 0 KiB in /usr/share/cups/doc-root localepurge: Disk space freed: 0 KiB in /usr/share/help localepurge: Disk space freed: 0 KiB in /usr/share/vim/vim92/lang Total disk space freed by localepurge: 52 KiB