我丢失了我的 Unity 3D,我想重新安装它。但是当我想重新安装它时,它引发了这个错误:
utm@utm:~$ sudo apt-get install unity
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:
unity : Depends: compiz-core-abiversion-20110828
E: Unable to correct problems, you have held broken packages.
有没有什么办法可以解决这个问题?
答案1
用来aptitude
解决问题,那就更好了apt-get
。
sudo apt-get install aptitude
sudo apt-get update && sudo aptitude -f install && sudo aptitude dist-upgrade
sudo aptitude install unity
也运行这个(这将节省您未来的时间)。按住[Alt]
并键入时在光标下ai
插入:-)sudo aptitude install
echo "\"\\ea\\ei\": \"sudo aptitude install \"" >> ~/.inputrc
答案2
对于开发版本来说,这是很正常的。
sudo apt-get update
sudo apt-get dist-upgrade
之后您应该能够安装 Unity。