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