这是我尝试卸载 GIMP 时得到的结果:
yoyo@yoyo-Inspiron-3521:~$ sudo apt-get remove gimp
[sudo] password for yoyo:
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: libc6 : Breaks: locales (< 2.19) libc6:i386 :
Recommends: libc6-i686:i386
Breaks: locales (< 2.19)
E: Unmet dependencies.
Try 'apt-get -f install' with no packages (or specify a solution).
> yoyo@yoyo-Inspiron-3521:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
> gcc-4.8-base:i386 libtiff-tools Use 'apt-get autoremove' to remove
> them. The following extra packages will be installed:
locales
The following packages will be upgraded:
locales
1 upgraded, 0 newly installed, 0 to remove and 1680 not upgraded.
Need to get 0 B/3 924 kB of archives.
After this operation, 6 904 kB of additional disk space
> will be used. Do you want to continue? [Y/n]
答案1
我以前遇到过类似的问题并发现 aptitude 可以解决问题:
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude upgrade
Aptitude 会为您提供一个选项列表以供选择以修复您的系统。