apt-get remove --purge libdps1 Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: libdps1 0 upgraded, 0 newly installed, 1 to remove and 16 not upgraded. 1 not fully installed or removed. Need to get 0B of archives. After unpacking 651kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 32919 files and directories currently installed.) Removing libdps1 ... dpkg (subprocess): unable to execute post-removal script: Exec format error dpkg: error processing libdps1 (--remove): subprocess post-removal script returned error exit status 2 Errors were encountered while processing: libdps1 E: Sub-process /usr/bin/dpkg returned an error code (1)