Sudo apt-get install (update, upgrade etc) have all stopped working on my system. I followed come advice threads online, and seem to have made things worse!
Currently,
sudo apt-get upgrade
returns the message:
dpkg: error processing package software-properties-common (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
software-properties-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
While
sudo apt-get install --reinstall software-properties-common
returns the message:
/var/lib/dpkg/info/software-properties-common.prerm: 6: /var/lib/dpkg/info/software-properties-common.prerm: py3clean: not found
dpkg: warning: old software-properties-common package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/software-properties-common_0.97.11_all.deb (--unpack):
new software-properties-common package pre-removal script subprocess returned error exit status 127
Any ideas?
@Raffa:
sudo apt-get install --reinstall pythin3-minimal
returns the following error:
dpkg: error processing package python3 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of software-properties-common:
software-properties-common depends on python3:any; however:
Package python3 is not configured yet.
software-properties-common depends on python3; however:
Package python3 is not configured yet.
dpkg: error processing package software-properties-common (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) ...
dpkg: dependency problems prevent processing triggers for gnome-menus:
gnome-menus depends on python3:any; however:
Package python3 is not configured yet.
dpkg: error processing package gnome-menus (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
python3
software-properties-common
gnome-menus
E: Sub-process /usr/bin/dpkg returned an error code (1)
Something new:
sudo dpkg --configure -a && sudo apt update --fix-missing && sudo apt install -f && sudo apt full-upgrade
tells me:
Package python3 is not configured yet.
python3
is not in good shape. Reinstall itsudo apt-get install --reinstall python3-minimal
then runsudo apt-get install --fix-broken
. – Raffa Oct 26 '19 at 21:34sudo dpkg --remove --force-remove-reinstreq python
, this also fails. Trying option 2 now. EDIT: option 2 also fails. – bryncoles Oct 26 '19 at 21:51python3
which is extremely essential for system operations. Your only option is to boot from a live USB then bind your system directories to the live system and try reinstallingpython3
from there. – Raffa Oct 26 '19 at 22:24