安装损坏,依赖性问题
Broken install, dependency problems
我想将 python 3.5 升级到 python 3.6,因为我很笨,没有 运行 apt-get remove python3
命令,所以我删除了 /usr/bin/python3文件夹,现在我在安装另一个包时遇到了麻烦。
错误的输出是:https://pastebin.com/ytrKUZRc
我尝试了什么:
apt-get install python3
然后当错误显示时:
apt-get install -f
然后
apt-get update
然后
dpkg --configure -a
然后
apt-get clean
但是没用。
我解决问题的方法:
我在 /etc/apt/sources.list
中删除了我的 source.list 并生成了一个新的。
然后我运行 命令apt-get install python3
,
完成 运行 命令后
apt-get -f install
一切都完成后我 运行 命令
dpkg --configure -a
然后仍然损坏的依赖项我使用命令重新安装了它们
apt-get install --reinstall dependency name
我想将 python 3.5 升级到 python 3.6,因为我很笨,没有 运行 apt-get remove python3
命令,所以我删除了 /usr/bin/python3文件夹,现在我在安装另一个包时遇到了麻烦。
错误的输出是:https://pastebin.com/ytrKUZRc
我尝试了什么:
apt-get install python3
然后当错误显示时:
apt-get install -f
然后
apt-get update
然后
dpkg --configure -a
然后
apt-get clean
但是没用。
我解决问题的方法:
我在 /etc/apt/sources.list
中删除了我的 source.list 并生成了一个新的。
然后我运行 命令apt-get install python3
,
完成 运行 命令后
apt-get -f install
一切都完成后我 运行 命令
dpkg --configure -a
然后仍然损坏的依赖项我使用命令重新安装了它们
apt-get install --reinstall dependency name