1. 程式人生 > >錯誤:libatk1.0-0 : Depends: libatk1.0-data (>= 2.30.0-1) but 2.28.1-1 is to be installed

錯誤:libatk1.0-0 : Depends: libatk1.0-data (>= 2.30.0-1) but 2.28.1-1 is to be installed

在Ubuntu下安裝檔案時遇到以下錯誤:

The following packages have unmet dependencies:
 libatk1.0-0 : Depends: libatk1.0-data (>= 2.30.0-1) but 2.28.1-1 is to be installed
 libatk1.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.55.2) but it is not going to be installed
                    Depends: libatk1.0-data:i386 (
>= 2.30.0-1) E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

安裝錯誤提示安裝了需要的依賴包之後還是會出現各種依賴問題,於是使用如下方法完美解決。
解決方法:

sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade