歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Gentoo安裝KDE4後問題的解決

Gentoo安裝KDE4後問題的解決

日期:2017/2/28 14:42:52   编辑:Linux教程

解決安裝KDE4後,安裝libreoffice-bin出現的boost,poppler軟件包沖突。

Gentoo上,桌面是kdebase-meta-4.10.5:4,想要安裝libreoffice-bin的時候,提示軟件包沖突:

sudo emerge libreoffice-bin
Calculating dependencies... done!

<此處省略一大片字符>

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/boost:0

(dev-libs/boost-1.49.0-r2::gentoo, ebuild scheduled for merge) pulled in by
=dev-libs/boost-1.49* required by (app-office/libreoffice-bin-4.0.4.2::gentoo, ebuild scheduled for merge)

(dev-libs/boost-1.52.0-r6::gentoo, installed) pulled in by
dev-libs/boost:0/1.52= required by (app-office/akonadi-server-1.9.2::gentoo, installed)
>=dev-libs/boost-1.35.0-r5:0/1.52= required by (kde-base/kdepimlibs-4.10.5::gentoo, installed)

app-text/poppler:0

(app-text/poppler-0.22.2-r2::gentoo, ebuild scheduled for merge) pulled in by
app-text/poppler:0/35 required by (app-office/libreoffice-bin-4.0.4.2::gentoo, ebuild scheduled for merge)

(app-text/poppler-0.22.5::gentoo, installed) pulled in by
<app-text/poppler-0.24:0/37=[cxx,jpeg,lcms,tiff,xpdf-headers(+)] required by (net-print/cups-filters-1.0.34-r1::gentoo, installed)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.

郁悶,以為libreoffice-bin只能支持gnome桌面,不能支持KDE。難道需要我完全編譯libreoffice?!!

<此處省略若干糾結>

最終修改了package.mask

sudo vim /etc/portage/package.mask

# for libreoffice-bin
=dev-libs/boost-1.52.0-r6:0/1.52
=app-text/poppler-0.22.5:0/37

然後:

sudo emerge -1a =dev-libs/boost-1.49.0-r2 poppler

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild UD ] dev-util/boost-build-1.49.0 [1.52.0-r1]
[ebuild r UD ] dev-libs/boost-1.49.0-r2 [1.52.0-r6]
[ebuild r UD ] app-text/poppler-0.22.2-r2 [0.22.5]
[ebuild rR ] net-print/cups-filters-1.0.34-r1
[ebuild rR ] app-office/akonadi-server-1.9.2
[ebuild rR ] kde-base/kdepimlibs-4.10.5

Would you like to merge these packages? [Yes/No] y

漫長時間的等待,機箱風扇狂響……

解決!

剩下就是emerge libreoffice-bin了

Copyright © Linux教程網 All Rights Reserved