安装软件的时候因为编辑过源影响的,影响依赖会报错如下:
$ sudo apt-get install libgtk2-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgtk2-perl : Depends: libcairo-perl but it is not going to be installed
Depends: libglib-perl (>= 3:1.280) but it is not going to be installed
Depends: libpango-perl but it is not going to be installed
phoneflashtool : Depends: fping but it is not going to be installed
Depends: gdebi but it is not going to be installed
Depends: p7zip-full but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
处理方法:
sudo apt-get install --fix-broken && sudo apt-get autoremove && sudo apt-get update