E:错误,pkgProblemResolver :: Resolve生成的中断,这可能是由保留的软件包引起的


13

我一直在尝试安装CoreBird Twitter应用程序,但运气不好让我无法编译它,然后我遇到了deb(从此处开始)并尝试以这种方式进行安装。

但是,我得到了这个错误:

 corebird depends on libglib2.0-0 (>= 2.41.1); however:
  Package libglib2.0-0:amd64 is not configured yet.
 corebird depends on libgtk-3-0 (>= 3.13.7); however:
  Version of libgtk-3-0:amd64 on system is 3.10.8-0ubuntu1.4.

因此,我尝试变得聪明,手动跟踪并安装这些库。我找到了正确的deb文件,但是当我跑dpkg -ilibglibDEB,我得到这个:

pkg: error processing package libglib2.0-0:amd64 (--install):
 package libglib2.0-0:amd64 2.42.0-2 cannot be configured because libglib2.0-0:i386 is at a different version (2.40.2-0ubuntu1)

以及其他一些无法配置的信息,因为libglib2.0-0:amd64是错误的版本。

这是我做错的地方。我不假思索地跑了sudo apt-get remove libglib2.0-0:amd64

因此,很明显,它造成了大量的依赖问题,并告诉我运行sudo apt-get -f install。我做到了,现在我得到了:

sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 corebird : Depends: libgtk-3-0 (>= 3.13.7) but 3.10.8-0ubuntu1.4 is installed
 libglib2.0-0 : Breaks: libglib2.0-0:i386 (!= 2.42.0-2) but 2.40.2-0ubuntu1 is installed
 libglib2.0-0:i386 : Breaks: libglib2.0-0 (!= 2.40.2-0ubuntu1) but 2.42.0-2 is installed
 libglib2.0-bin : Depends: libglib2.0-0 (= 2.40.2-0ubuntu1) but 2.42.0-2 is installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.40.2-0ubuntu1) but 2.42.0-2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

显然,glib我删除了先前安装的2.40.2之后安装的2.42.0-2软件包,现在引起了各种各样的问题。显然,这是一个问题。

有人知道如何解决此问题吗?

我的/var/log/dist-upgrade/apt.log文件为空:

cat /var/log/dist-upgrade/apt.log
cat: /var/log/dist-upgrade/apt.log: No such file or directory

该命令不dpkg --get-selections | grep hold返回任何内容:

$ dpkg --get-selections | grep hold
$

编辑

这个问题不是重复的。aptitude即使我想要也无法安装(相同错误。)

Answers:


1

我会尝试这样做:

sudo apt-get remove corebird
sudo apt-get -f install

然后,确保一切恢复正常。

之后,将repos更改/etc/apt/sources.listvivid并通过apt-get获得所需的库。

corebird使用dpkg 安装。

/etc/apt/sources.listtrusty


1

我知道您正在寻找一个一般性问题,但我偶然发现了corebird应用程序的问题。现在,在16.04+上,您可以使用一个更简单的选项来使用corebird:

sudo snap install corebird

0

在终端上玩耍,我随机提出了​​一个解决方案,如下所示:

安装Synaptic软件包管理器

sudo apt-get install synaptic

现在,通过开始或sudo synaptic在终端上键入来转到Synaptic软件包管理器

接下来,搜索具有未满足的依赖关系的软件包。

将包装标记为 complete removal

点击Apply顶部

Synaptic将首先解决未满足的依赖关系,然后将其完全删除,您可以稍后再安装。

尝试一下,就我所知它应该可以工作。就我而言,它确实有效。


0

我尝试了您的corebird索引

praz@Lenovo-E10-30:~/Downloads$ sudo gdebi corebird_1.0-1_amd64.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Modern, easy and fun Twitter client
 Twitter client, built using GTK+.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package corebird.
(Reading database ... 273217 files and directories currently installed.)
Preparing to unpack corebird_1.0-1_amd64.deb ...
Unpacking corebird (1.0-1) ...
Setting up corebird (1.0-1) ...
Processing triggers for menu (2.1.47ubuntu1.17.10.1) ...
Processing triggers for bamfdaemon (0.5.3+17.10.20170810-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.17.10.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for libglib2.0-0:i386 (2.54.1-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.54.1-1ubuntu1) ...
Processing triggers for man-db (2.7.6.1-2) ...

安装后我可以打开它

我的corebird已经打开

我认为尝试使用gdebi,希望对您有所帮助。


0

我使用与/ubuntu//a/634356/26246此处相同的解决方案删除corebird,并libglib2.0-0针对两种架构amd64&反向使用相同的版本i386。检查使用apt-cache可用版本。

似乎corebird软件包是为特定的Ubuntu版本(较旧的版本)准备的,为了更好地进行全新安装,最好与snap,flatpak(官方)或chroot解决方案一起使用。也可以重建Debian软件包,因为问题中提到的存储库中提供了源软件包。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.