Portage: blocking
This is a wiki page. Be bold and improve it!
If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.
User information
Sometimes, during emerge, there are some packages blocking other packages.
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packag...
For example:
[blocks B ] kde-apps/kdepimlibs:4 ("kde-apps/kdepimlibs:4" is blocking kde-apps/akonadi-mime-17.04.3, kde-apps/kmailtransport-17.04.3)
[blocks B ] kde-apps/akonadi:4 ("kde-apps/akonadi:4" is blocking kde-apps/akonadi-17.04.3-r1)
[blocks B ] kde-apps/kdepimlibs ("kde-apps/kdepimlibs" is blocking kde-apps/akonadi-17.04.3-r1)
Fuller output:
These are the packages that would be merged, in reverse order:
Calculating dependencies ... . .... done!
[nomerge ] kde-apps/kuser-16.04.3
[ebuild UD ] kde-apps/kdepimlibs-4.14.10_p20160611 [4.14.11_pre20160611]
...
[nomerge ] kde-apps/kontact-17.04.3 [4.14.11_pre20160611] USE="handbook -debug"
[blocks b ] kde-apps/kontact:4 ("kde-apps/kontact:4" is blocking kde-apps/kontact-17.04.3)
[uninstall ] kde-apps/kontact-4.14.11_pre20160611
[nomerge ] kde-apps/kmail-17.04.3 [4.14.11_pre20160611-r1] USE="handbook -debug {-test}"
[nomerge ] kde-apps/kidentitymanagement-17.04.3 USE="-debug {-test}"
[blocks b ] kde-apps/kde-l10n ("kde-apps/kde-l10n" is blocking kde-apps/kpimtextedit-17.04.3, kde-apps/baloo-widgets-17.04.3, kde-apps/eventviews-17.04.3, kde-apps/kmail-17.04.3, kde-apps/pimcommon-17.04.3-r1, kde-apps/libkexiv2-17.04.3, kde-apps/kmbox-17.04.3, kde-apps/libkomparediff2-17.04.3, kde-apps/libktnef-17.04.3, kde-apps/calendarsupport-17.04.3, kde-apps/libksieve-17.04.3, kde-apps/kmix-17.04.3, kde-apps/konqueror-17.04.3, kde-apps/kpat-17.04.3, kde-apps/akonadi-contacts-17.04.3, kde-apps/kdenlive-17.04.3, kde-apps/kdav-17.04.3, kde-apps/kdepim-apps-libs-17.04.3, kde-apps/kio-extras-17.04.3, kde-apps/khelpcenter-17.04.3, kde-apps/kimap-17.04.3, kde-apps/mailcommon-17.04.3, kde-apps/kdegraphics-mobipocket-17.04.3, kde-apps/k3b-17.04.3-r1, kde-apps/kompare-17.04.3, kde-apps/libkleo-17.04.3, kde-apps/marble-17.04.3, kde-apps/libgravatar-17.04.3, kde-apps/libkdepim-17.04.3, kde-apps/kcalutils-17.04.3, kde-apps/incidenceeditor-17.04.3, kde-apps/kate-17.04.3, kde-apps/akonadi-17.04.3-r1, kde-apps/kwalletmanager-17.04.3, kde-apps/akonadi-search-17.04.3, kde-apps/kmailtransport-17.04.3, kde-apps/messagelib-17.04.3, kde-apps/ark-17.04.3, kde-apps/kontact-17.04.3, kde-apps/kholidays-17.04.3, kde-apps/kalarmcal-17.04.3, kde-apps/mailimporter-17.04.3, kde-apps/konsole-17.04.3, kde-apps/grantleetheme-17.04.3, kde-apps/akonadi-calendar-17.04.3, kde-apps/okular-17.04.3, kde-apps/gwenview-17.04.3, kde-apps/libkdegames-17.04.3, kde-apps/kldap-17.04.3, kde-apps/libkcddb-17.04.3, kde-apps/kontactinterface-17.04.3, kde-apps/kcontacts-17.04.3, kde-apps/kmime-17.04.3, kde-apps/kidentitymanagement-17.04.3, kde-apps/akonadi-notes-17.04.3, kde-apps/kdepim-runtime-17.04.3, kde-apps/spectacle-17.04.3, kde-apps/kcalcore-17.04.3, kde-apps/akonadi-mime-17.04.3, kde-apps/kcalc-17.04.3, kde-apps/kcolorchooser-17.04.3, kde-apps/dolphin-plugins-17.04.3, kde-apps/dolphin-17.04.3, kde-apps/libkipi-17.04.3, kde-apps/kfind-17.04.3)
[uninstall ] kde-apps/kde-l10n-16.12.3
[ebuild NS ] kde-apps/kontact-17.04.3 [4.14.11_pre20160611] USE="handbook -debug"
[nomerge ] kde-apps/kmail-17.04.3 [4.14.11_pre20160611-r1] USE="handbook -debug {-test}"
[blocks b ] kde-apps/kmail:4 ("kde-apps/kmail:4" is blocking kde-apps/kmail-17.04.3)
[uninstall ] kde-apps/kmail-4.14.11_pre20160611-r1
[blocks b ] kde-apps/kdepim-common-libs:4 ("kde-apps/kdepim-common-libs:4" is blocking kde-apps/messagelib-17.04.3, kde-apps/kmail-17.04.3, kde-apps/incidenceeditor-17.04.3, kde-apps/libkdepim-17.04.3, kde-apps/pimcommon-17.04.3-r1)
[uninstall ] kde-apps/kdepim-common-libs-4.14.11_pre20160611-r1
...
[nomerge ] kde-apps/kmail-17.04.3 [4.14.11_pre20160611-r1] USE="handbook -debug {-test}"
[nomerge ] kde-apps/kdepim-runtime-17.04.3 [4.14.11_pre20160211-r1] USE="handbook -debug -google {-test}"
[blocks b ] kde-apps/kdepim-runtime:4 ("kde-apps/kdepim-runtime:4" is blocking kde-apps/kdepim-runtime-17.04.3)
[uninstall ] kde-apps/kdepim-runtime-4.14.11_pre20160211-r1
[ebuild NS ] kde-apps/kdepim-runtime-17.04.3 [4.14.11_pre20160211-r1] USE="handbook -debug -google {-test}"
[nomerge ] kde-apps/k3b-17.04.3-r1 [2.0.3-r5] USE="dvd encode ffmpeg flac handbook mad mp3 taglib vorbis -debug -emovix -libav -musepack -sndfile -sox {-test} -vcd -webkit"
[blocks b ] kde-apps/k3b:4 ("kde-apps/k3b:4" is blocking kde-apps/k3b-17.04.3-r1)
[uninstall ] kde-apps/k3b-2.0.3-r5
...
[blocks B ] kde-apps/kdepimlibs:4 ("kde-apps/kdepimlibs:4" is blocking kde-apps/akonadi-mime-17.04.3, kde-apps/kmailtransport-17.04.3)
[blocks B ] kde-apps/akonadi:4 ("kde-apps/akonadi:4" is blocking kde-apps/akonadi-17.04.3-r1)
[blocks B ] kde-apps/kdepimlibs ("kde-apps/kdepimlibs" is blocking kde-apps/akonadi-17.04.3-r1)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(kde-apps/akonadi-mime-17.04.3:5/5::gentoo, ebuild scheduled for merge) pulled in by
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/mailcommon-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/akonadi-calendar-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/akonadi-contacts-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/incidenceeditor-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/akonadi-search-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/messagelib-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/mailimporter-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/calendarsupport-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/kmail-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/kdepim-runtime-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-mime-17.04.3:5 required by (kde-apps/kmailtransport-17.04.3:5/5::gentoo, ebuild scheduled for merge)
(kde-apps/kmailtransport-17.04.3:5/5::gentoo, ebuild scheduled for merge) pulled in by
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/kmail-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/kdepim-runtime-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/mailcommon-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/akonadi-calendar-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/libksieve-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/incidenceeditor-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/kmailtransport-17.04.3:5 required by (kde-apps/messagelib-17.04.3:5/5::gentoo, ebuild scheduled for merge)
(kde-apps/akonadi-17.04.3-r1:5/5::gentoo, ebuild scheduled for merge) pulled in by
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/kdepim-apps-libs-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/kmail-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/mailimporter-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/calendarsupport-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/eventviews-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/kalarmcal-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/kdepim-runtime-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/mailcommon-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/akonadi-calendar-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/akonadi-contacts-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/pimcommon-17.04.3-r1:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/incidenceeditor-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/akonadi-notes-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/akonadi-search-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/kontact-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/messagelib-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/libkdepim-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/akonadi-mime-17.04.3:5/5::gentoo, ebuild scheduled for merge)
>=kde-apps/akonadi-17.04.3:5 required by (kde-apps/kmailtransport-17.04.3:5/5::gentoo, ebuild scheduled for merge)
(kde-apps/kdepimlibs-4.14.10_p20160611:4/4.14::gentoo, ebuild scheduled for merge) pulled in by
>=kde-apps/kdepimlibs-4.14.3:4[-aqua] required by (kde-apps/kuser-16.04.3:4/16.04::gentoo, installed)
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packag...
In particular, the error:
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
indicates that you ought to have a look in your world file (
/var/lib/portage/world
) and remove the incompatible packages.
Developer information
The user information above should provide the necessary pointers for users to get over the problem.
The information below is to help understand why and how such blocks occur...
In the example above, the line:
[blocks B ] kde-apps/kdepimlibs:4 ("kde-apps/kdepimlibs:4" is blocking kde-apps/akonadi-mime-17.04.3, kde-apps/kmailtransport-17.04.3)
indicates that the
package kde-apps/kmailtransport
is actively blocking kde-apps/kdepimlibs:4
in its ebuild.Indeed, in
kmailtransport-17.03.4.ebuild
, we have:RDEPEND="${COMMON_DEPEND}
!kde-apps/kdepim-l10n
!kde-apps/kdepimlibs:4
"
The next question is why ebuild writers would specify blocks. What prevents different versions of the same libraries from being installed at the same time?