tenach@Ginger:~$ sudo apt-get purge Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: xchat-common Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up xchat-common (2.8.6-2.1ubuntu4) ... dpkg (subprocess): unable to execute post-installation script: Exec format error dpkg: error processing xchat-common (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: xchat-common E: Sub-process /usr/bin/dpkg returned an error code (1) --- tenach@Ginger:~$ sudo apt-get -f remove [sudo] password for tenach: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: xchat-common Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up xchat-common (2.8.6-2.1ubuntu4) ... dpkg (subprocess): unable to execute post-installation script: Exec format error dpkg: error processing xchat-common (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: xchat-common E: Sub-process /usr/bin/dpkg returned an error code (1)