Hey I am still pretty green to using linux so I went with pop OS. For some reason though my package manager is not allowing me to update any more I suspect something went wrong with Python 3.8 but I am not sure. when I run an apt-get upgrade python throws errors and prevents me from continuing futher. Ive tried googling the issue to no avail, I suspect I am googling the wrong thing. Ive included the output below. Thanks for your help.
Setting up python3 (3.8.6-0ubuntu1) …
running python rtupdate hooks for python3.8…
dpkg-query: package ‘apt-xapian-index’ is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
Traceback (most recent call last):
File “/usr/bin/py3clean”, line 210, in
main()
File “/usr/bin/py3clean”, line 196, in main
pfiles = set(dpf.from_package(options.package))
File “/usr/share/python3/debpython/files.py”, line 53, in from_package
raise Exception(“cannot get content of %s” % package_name)
Exception: cannot get content of apt-xapian-index
error running python rtupdate hook apt-xapian-index
dpkg-query: package ‘ibus-hangul’ is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
Traceback (most recent call last):
File “/usr/bin/py3clean”, line 210, in
main()
File “/usr/bin/py3clean”, line 196, in main
pfiles = set(dpf.from_package(options.package))
File “/usr/share/python3/debpython/files.py”, line 53, in from_package
raise Exception(“cannot get content of %s” % package_name)
Exception: cannot get content of ibus-hangul
error running python rtupdate hook ibus-hangul
dpkg: error processing package python3 (–configure):
installed python3 package post-installation script subprocess returned error exit status 4
Errors were encountered while processing:
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
Do the following, one line at a time, in a terminal: sudo apt-get purge python3.8 sudo apt-get update sudo dpkg-reconfigure -a sudo apt-get install python3.7
You may not need to perform the last line if apt auto-installs python3.7 to resolve conflicts or if it’s already on your system.
Don’t worry about it too much, it’s easy to install again later. sudo apt-get install gnome
In fact, it might be a good idea to purge Gnome from your system (which means it’ll remove all config files as well as dependencies) and start afresh.
Now, apt is a bit spartan visually, so install aptitude as a package browser: sudo apt-get install aptitude
Invoke aptitude with: sudo aptitude
Use Ctrl+t for the menu, navigate with the arrow keys, short-cut keys are indicated in the various menus including a search function, so you should be able to find your way.
Well the down side more so of removing gnome is that pop os has a lot of pre configured gnome themes and stuff but ill try it ive got everything backed up with timeshift so worst case senerio I can revert
It also looks like when i removed python 3.8 it also got rid of many things for other applicaitons, like my nvidia drivers,printers, and a bunch of other libraries. as well as timeshift (the backup utility i was using) so im making a live usb to restore now
Yea I figured the easiest course of action would be to restore, but that just puts me back to square one, where I cant really upgrade any of my packages. I tried “apt-get -f install” but I get that same error from python
I’m fairly certain there is some dependency hell going on here. Python3 is probably requiring apt-xapian-index but apt-xapian-index also requires Python3 so it’s a chicken and egg situation you’re stuck in since one is installed but not the other I think. Only way out of it is to dpkg install --force the required packages but that has a chance of further breakage if versions aren’t right.
You were right it was some sort of dependancy hell situation, the way that i resovled it was to revert to a backup where my package manager wasnt broken. Then to install those packages before updating. I wonder though if there would be a way to resolve this without reverting a backup?