在我的Ubuntu18中,我错误地从/usr/lib中删除了python文件夹?如果我运行命令“sudoaptget安装重新安装python”,则不会工作

2024-04-26 03:45:14 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我在sudo apt安装之后得到的——重新安装python

$ sudo apt-get install --reinstall python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
          Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
          Depends: libpython-stdlib (= 2.7.15~rc1-1) but it is not going to be installed
 python3-gi-cairo : Depends: python3-gi (= 3.26.1-2ubuntu1) but 3.26.1-2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Tags: installinstalledtoisrc1sudonotapt