没有仔细考虑我在做什么,我删除了bin / python3文件夹。
现在我和所有的人都有问题。
我不能安装任何东西。我尝试了太多不同的东西,试图找到一个解决办法,但什么也没有。
例如,当我尝试做sudo apt安装软件-properties-公共时,我得到:
....
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从bin中移除之外,我还触摸了.bashrc fil。
我的终端和桌面工作
...
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)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发布于 2021-12-31 11:01:43
从评论和其他答复来看,
第一个OP通过使用.bashrc恢复了它们的这个问题文件。
首先备份旧文件: cp ~/ ..bashrc ~/.bashrc.bak复制文件cp /etc/skel/..bashrc~/加载新文件的主干版本: source ~/..bashrc
在那次行动之后:
mkdir xyz && sudo mv /var/lib/dpkg/info/python3* ~/xyz
sudo mv /var/lib/dpkg/info/unattended-upgrades* ~/xyz && sudo mv /var/lib/dpkg/info/software-properties-common* ~/xyz 然后他们跑了:
sudo cp -r /var/lib/dpkg/status $HOME
echo > /var/lib/dpkg/status最后,他们跑了:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -fhttps://askubuntu.com/questions/1384559
复制相似问题