现在我已经将我的Ubuntu升级到17.04,软件包系统坏了。当我执行任何APT命令时,我会得到一些错误。
sudo apt --fix-broken install返回

dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg trying script from the new package instead...
dpkg: error processing archive /var/cache/archives/... (--unpack): there is no script in the new version of the package - giving up发布于 2017-04-19 15:51:59
问题在于单击包。您很可能通过python3安装了pip3版本的click。您刚刚升级到17.04,并在pip或pip3存储库下安装了带有版本号的单击包。Pip包不是由apt管理的,它们在调用Python的import关键字时具有优先权。因此,您需要卸载单击包,然后重新安装它。
再次安装单击安装依赖项。
sudo apt-get install --reinstall click然后使用以下命令删除它。
sudo apt-get autoremove -f click如果不起作用,你可以努力尝试,
sudo rm /usr/bin/click
sudo apt-get autoremove -f click来源:
https://askubuntu.com/questions/906657
复制相似问题