Timeline for How to fix broken apt-get in Ubuntu?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 4, 2022 at 13:14 | comment | added | user3614014 | Interesting; Thank you it looks like /usr/lib/python3/dist-package directory is missing the apt_pkg module so that might confirm a broken python3 - trying to fix that now, presumably one of the python3 versions would be the correct one. | |
| Apr 1, 2022 at 16:17 | comment | added | Stephen Kitt | It could also be that python3-apt is broken, but that would be a little more surprising. | |
| Apr 1, 2022 at 16:17 | comment | added | Stephen Kitt | I mean the version provided by the Ubuntu packages; it’s just a hunch, but the “ModuleNotFoundError: No module named 'apt_pkg'” error means that whatever /usr/bin/python3 is, it can’t find the appropriate apt_pkg module, and that’s version-dependent — e.g. on my system with python3.9, it’s /usr/lib/python3/dist-packages/apt_pkg.cpython-39-x86_64-linux-gnu.so. If python3 points to another version of Python, there won’t be a corresponding apt_pkg module. | |
| Apr 1, 2022 at 15:54 | comment | added | user3614014 | This seems more in line with what my problem might be; thank you for answering. What is "Ubuntu's version of python 3?" It points to an installed version presently which is probably not what I want? | |
| Apr 1, 2022 at 15:41 | history | answered | Stephen Kitt | CC BY-SA 4.0 |