Having issues due to Python install

Setting up update-notifier-common (3.192.30.16) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 29, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
dpkg: error processing package update-notifier-common (--configure):
installed update-notifier-common package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-notifier-common (= 3.192.30.16); however:
Package update-notifier-common is not configured yet.

dpkg: error processing package update-notifier (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zorin-os-desktop:
zorin-os-desktop depends on update-notifier; however:
Package update-notifier is not configured yet.

dpkg: error processing package zorin-os-desktop (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
update-notifier-common
update-notifier
zorin-os-desktop

Please run:

sudo apt --fix-missing && sudo dpkg --configure -a

sudo apt install --reinstall zorin-os-desktop

i have done the second one already

I have run the first one but it showing this:
apt 2.0.9 (amd64)
Usage: apt [options] command

apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.

Most used commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
install - install packages
reinstall - reinstall packages
remove - remove packages
autoremove - Remove automatically all unused packages
update - update list of available packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
satisfy - satisfy dependency strings

See apt(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
This APT has Super Cow Powers.

Please Copy this

sudo apt --fix-missing

And paste it into terminal to run it; then relay results.

dpkg: error processing package zorin-os-desktop (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
update-notifier-common
update-notifier
zorin-os-desktop

I basicaly can't open my software updater

Had you previously tried installing anything? Like Python?

yes, i did! I install python and then I ran autoremove.

The vast majority of the time, it is totally safe to install and remove packages.

But there are some packages that are very sensitive. Python is one of them. Many critical files depend on it and even small changes to it can cause failures in all the dependent packages.

Try:

sudo apt install python-is-python3

not working ! same result

plz find a way to fix this!

What is the exact output of:

sudo dpkg --configure -a

Setting up update-notifier-common (3.192.30.16) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 29, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
dpkg: error processing package update-notifier-common (--configure):
installed update-notifier-common package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-notifier-common (= 3.192.30.16); however:
Package update-notifier-common is not configured yet.

dpkg: error processing package update-notifier (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zorin-os-desktop:
zorin-os-desktop depends on update-notifier; however:
Package update-notifier is not configured yet.

dpkg: error processing package zorin-os-desktop (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
update-notifier-common
update-notifier
zorin-os-desktop

It appears to have become a catch-22. You need Python proper in order to configure - but need it configured in order to properly install python.
@337harvey has some experience in this. Perhaps he can help.

can i reconfigure python?

Since you removed and did an autoremove, I believe we need to reinstall it.

how should I do that!

Sorry to butt in here but I ran your command and found this .... should I go ahead and install it ..... or will I open a new can of worms .....

You do not need pip unless you are performing python installs. PIP stands for "Pip Installs Python" - a case where the acronym as a name contains the name creating the acronym in the first place. Like WINE.
If you do not have PIP, that is normal.

1 Like