Не особо задумываясь о том, что я делаю, я удалил папку bin/python3.
Теперь у меня проблемы со всеми.
Я не могу ничего установить. Я пробовал здесь слишком много разных вещей, пытаясь найти решение, но ничего.
Например, когда я пытаюсь выполнить sudo apt install software-свойства-common, я получаю:
....
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-dbus (--configure):
installed python3-dbus package post-installation script subprocess returned error exit sta
tus 3
Setting up python3-apt (2.0.0ubuntu0.20.04.6)...
E: py3compile:243: Requested versions are not installed
....
dpkg: error processing package python3-distro-info (--configure):
installed python3-distro-info package post-installation script subprocess returned error e
xit status 3
dpkg: dependency problems prevent configuration of python3-requests-unixsocket:
python3-requests-unixsocket depends on python3-requests; however:
Package python3-requests is not configured yet.
python3-requests-unixsocket depends on python3-urllib3; however:
Package python3-urllib3 is not configured yet.
dpkg: error processing package python3-requests-unixsocket (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-dbus
python3-apt
software-properties-common
python3-six
unattended-upgrades
python3-chardet
python3-software-properties
python3-certifi
python3-gi
python3-requests
python3-idna
python-setuptools
python3-pip
python3-urllib3
python3-minimal
python-dnspython
python3-distro-info
python3-requests-unixsocket
Когда я пытаюсь выполнить
sudo apt download python3* unattended-upgrades && sudo dpkg -i --force-all./*.deb
я получаю единственный вывод:
E: Unable to locate package python3-minimal_3.8.2-0ubuntu2_amd64.deb
У меня Ubuntu 20.04
Помимо удаления python из корзины, я также коснулся файла.bashrc.
Мой терминал и рабочий стол работают
sudo apt -f install
...
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-dbus (--configure):
installed python3-dbus package post-installation script subprocess returned err
or exit status 3
Setting up python3-apt (2.0.0ubuntu0.20.04.6)...
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-apt (--configure):
installed python3-apt package post-installation script subprocess returned erro
r exit status 3
dpkg: dependency problems prevent configuration of software-properties-common:
software-properties-common depends on python3-dbus; however:
Package python3-dbus is not configured yet.
dpkg: error processing package software-properties-common (--configure):
dependency problems - leaving unconfigured
Setting up python3-six (1.14.0-2)...
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-six (--configure):
installed python3-six package post-installation script subprocess returned erro
r exit status 3
dpkg: dependency problems prevent configuration of unattended-upgrades:
unattended-upgrades depends on python3-apt (>= 1.9.6~); however:
Package python3-apt is not configured yet.
unattended-upgrades depends on python3-dbus; however:
Package python3-dbus is not configured yet.
...
dpkg: error processing package python3-requests-unixsocket (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-dbus
python3-apt
software-properties-common
python3-six
unattended-upgrades
python3-chardet
python3-software-properties
python3-certifi
python3-gi
python3-requests
python3-idna
python-setuptools
python3-pip
python3-urllib3
python3-minimal
python-dnspython
python3-distro-info
python3-requests-unixsocket
E: Sub-process /usr/bin/dpkg returned an error code (1)
Если я пытаюсь установить python, я получаю:
Setting up python3-minimal (3.8.2-0ubuntu2)...
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-minimal (--configure):
installed python3-minimal package post-installation script subprocess returned error exit status 3
Errors were encountered while processing:
python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sudo apt update
Hit:1 http://es.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://es.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://es.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://ppa.launchpad.net/blaze/rtbth-dkms/ubuntu focal InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
В начале сеанса я получаю:
bash: pyenv: command not found