I am new to Ubuntu/Linux and I installed python on it. There I had 4 interpretrs (1 3.12 i installed and 3 3.11) on vscode I saw for python, confused.
Ubuntu 23.10 just upgrded
Then I tried a pip command, tried making environment and they didnt work. So I went to uninstall 3.11's all versions and made apt corrupt.
Help me please! I uninstalled every python version and have none yet, now cannot install anything with apt + terminal not launching bruh (ok, i saw ctrl+alt+f3 works and vscode also)
ashish@ashish-ubuntu:~/Git/PyGPT/freegpt$ sudo apt updateHit:1 http://mirrors.iitd.ac.in/ubuntu mantic InReleaseHit:2 http://mirrors.iitd.ac.in/ubuntu mantic-updates InReleaseHit:3 http://mirrors.iitd.ac.in/ubuntu mantic-backports InReleaseHit:4 http://mirrors.iitd.ac.in/ubuntu mantic-security InReleaseHit:5 https://dl.google.com/linux/chrome/deb stable InReleaseReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneAll packages are up to date.ashish@ashish-ubuntu:~/Git/PyGPT/freegpt$ sudo apt install python3Reading package lists... DoneBuilding dependency tree... DoneReading state information... Donepython3 is already the newest version (3.11.4-5).0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.9 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue? [Y/n] ySetting up python3-apt (2.6.0ubuntu1) .../var/lib/dpkg/info/python3-apt.postinst: 6: py3compile: not founddpkg: error processing package python3-apt (--configure): installed python3-apt package post-installation script subprocess returned error exit status 127dpkg: dependency problems prevent configuration of python3-aptdaemon: python3-aptdaemon depends on python3-apt (>= 0.8.5~ubuntu1); however: Package python3-apt is not configured yet.dpkg: error processing package python3-aptdaemon (--configure): dependency problems - leaving unconfiguredSetting up python3-launchpadlib (1.11.0-1) .../var/lib/dpkg/info/python3-launchpadlib.postinst: 6: py3compile: not founddpkg: error processing package python3-launchpadlib (--configure): installed python3-launchpadlib package post-installation script subprocess returned error exit status 127Setting up python3-pip (23.2+dfsg-1ubuntu0.1) .../var/lib/dpkg/info/python3-pip.postinst: 6: py3compile: not founddpkg: error processing package python3-pip (--configure): installed python3-pip package post-installation script subprocess returned error exit status 127dpkg: dependency problems prevent configuration of language-selector-common: language-selector-common depends on python3-apt; however: Package python3-apt is not configured yet.dpkg: error processing package language-selector-common (--configure): dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of python3-aptdaemon.gtk3widgets: python3-aptdaemon.gtk3widgets depends on python3-aptdaemon (= 1.1.1+bzr982-0ubuntu44); however: Package python3-aptdaemon is not configured yet.dpkg: error processing package python3-aptdaemon.gtk3widgets (--configure): dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of language-selector-gnome: language-selector-gnome depends on language-selector-common (= 0.224); however: Package language-selector-common is not configured yet. language-selector-gnome depends on python3-apt; however: Package python3-apt is not configured yet. language-selector-gnome depends on python3-aptdaemon.gtk3widgets; however: Package python3-aptdaemon.gtk3widgets is not configured yet.dpkg: error processing package language-selector-gnome (--configure): dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of gnome-control-center: gnome-control-center depends on language-selector-gnome (>= 0.179~); however: Package language-selector-gnome is not configured yet.dpkg: error processing package gnome-control-center (--configure): dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of aptdaemon: aptdaemon depends on python3-aptdaemon (= 1.1.1+bzr982-0ubuntu44); however: Package python3-aptdaemon is not configured yet.dpkg: error processing package aptdaemon (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: python3-apt python3-aptdaemon python3-launchpadlib python3-pip language-selector-common python3-aptdaemon.gtk3widgets language-selector-gnome gnome-control-center aptdaemonE: Sub-process /usr/bin/dpkg returned an error code (1)ashish@ashish-ubuntu:~/Git/PyGPT/freegpt$
Tried to use pip and make venv , also tried later to uninstall python 3.11 and keep 3.12 only, then cuz of bugs I even removed python3.12 and apt broke