sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libpython-all-dev libpython-dev libpython2.7-dev Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: python python2.7 Suggested packages: python-doc python-tk python2.7-doc The following NEW packages will be installed: python python2.7 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. 3 not fully installed or removed. Need to get 0 B/529 kB of archives. After this operation, 1,019 kB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package python2.7. (Reading database ... 295845 files and directories currently installed.) Preparing to unpack .../python2.7_2.7.15~rc1-1_amd64.deb ... Unpacking python2.7 (2.7.15~rc1-1) ... Setting up python-minimal (2.7.15~rc1-1) ... dpkg: error processing package python-minimal (--configure): installed python-minimal package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: python-minimal E: Sub-process /usr/bin/dpkg returned an error code (1)