当我想在软件中心或使用 apt-get 安装任何东西时,Pidgin 未满足依赖关系

当我想在软件中心或使用 apt-get 安装任何东西时,Pidgin 未满足依赖关系

我的问题和Ubuntu 软件中心无法正常工作;提示软件包目录需要修复

我尝试了以下解决方案:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove -force --force-remove-reinstreq pidgin

但在执行最后一个命令时我得到了这个响应:

dpkg: error: conflicting actions -f (--field) and -r (--remove)

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

供参考:按照上述过程后,无论我尝试安装什么,我都会得到以下输出:

$ sudo apt-get install python

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 pidgin : Depends: pidgin-data (< 1:2.7.11-z) but 1:2.10.3-0ubuntu1.5 is to be installed
      Depends: perlapi-5.10.1 but it is not installable
 pidgin-libnotify : Depends: libindicate-gtk2 (>= 0.2.2) but it is not installable
                Depends: libnotify1 (>= 0.5.0) but it is not installable
                Depends: libnotify1-gtk2.10 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

按照建议我尝试

$ sudo dpkg --remove --force-remove-reinstreq pidgin
dpkg: warning: ignoring request to remove pidgin, only the config files of which are on the system. Use --purge to remove them too.

然后我也尝试过-

sudo dpkg --purge --force-remove-reinstreq pidgin

我也尝试过:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  pidgin pidgin-libnotify
Suggested packages:
  gnome-panel kdebase-workspace-bin docker
The following NEW packages will be installed:
  pidgin
The following packages will be upgraded:
  pidgin-libnotify
1 upgraded, 1 newly installed, 0 to remove and 78 not upgraded.
1 not fully installed or removed.
Need to get 0 B/710 kB of archives.
After this operation, 2,205 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Selecting previously unselected package pidgin.
(Reading database ... 359576 files and directories currently installed.)
Unpacking pidgin (from .../pidgin_1%3a2.10.3-0ubuntu1.5_i386.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for gconf2 ...
Processing triggers for man-db ...
Setting up pidgin (1:2.10.3-0ubuntu1.5) ...
dpkg: dependency problems prevent configuration of pidgin-libnotify:
 pidgin-libnotify depends on libindicate-gtk2 (>= 0.2.2); however:
Package libindicate-gtk2 is not installed.
 pidgin-libnotify depends on libnotify1 (>= 0.5.0); however:
  Package libnotify1 is not installed.
 pidgin-libnotify depends on libnotify1-gtk2.10; however:
  Package libnotify1-gtk2.10 is not installed.
dpkg: error processing pidgin-libnotify (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                      Errors were encountered while processing:
 pidgin-libnotify
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

CAB 的以下评论对我有用:

@Kapil 这看起来与另一篇关于 pidgin 的帖子类似。试试这个答案;askubuntu.com/a/162256/54510.-f install将尝试安装无论缺少什么/88。 -f install python将尝试安装缺少什么 + python.--fix-missing应该修复或忽略缺失的依赖项。

多谢

相关内容