$ sudo apt-get remove libcaca0 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libcaca0 Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: libcaca0 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 9 not fully installed or removed. Need to get 0B of archives. After unpacking 242kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 303127 files and directories currently installed.) Removing libcaca0 ... dpkg (subprocess): unable to execute post-removal script: Exec format error dpkg: error processing libcaca0 (--remove): subprocess post-removal script returned error exit status 2 Errors were encountered while processing: libcaca0 E: Sub-process /usr/bin/dpkg returned an error code (1)