我知道这看起来像一个愚蠢的问题,当然,通常人们会这样问:
sudo apt-get install eric
因为 Eric 6 在官方 Ubuntu 存储库中,但这返回了错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
eric : Depends: python3-pyqt5.qsci but it is not going to be installed
Depends: python3-pyqt5.qtsql but it is not going to be installed
Depends: python3-pyqt5.qtwebkit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
尝试使用递归机制来解决这个依赖困境,我运行了:
sudo apt-get install eric python3-pyqt5.qsci python3-pyqt5.qtsql python3-pyqt5.qtwebkit python3-pyqt5
但这返回了错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pyqt5 is already the newest version (5.5.1+dfsg-3+16.04+build3).
python3-pyqt5 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
python3-pyqt5.qsci : Depends: libqt5scintilla2-12v5 (>= 2.9) but it is not going to be installed
python3-pyqt5.qtsql : Depends: python3-pyqt5 (= 5.5.1+dfsg-3ubuntu4) but 5.5.1+dfsg-3+16.04+build3 is to be installed
python3-pyqt5.qtwebkit : Depends: python3-pyqt5 (= 5.5.1+dfsg-3ubuntu4) but 5.5.1+dfsg-3+16.04+build3 is to be installed
E: Unable to correct problems, you have held broken packages.