sys-apps/sysvinit („sys-apps/sysvinit“ is blocking sys-apps/systemd-236-r5)

sys-apps/sysvinit („sys-apps/sysvinit“ is blocking sys-apps/systemd-236-r5)

 

localhost /home/fridolin # emerge -avuND world

* IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.

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

Calculating dependencies... done!
[ebuild U ] net-dns/libidn-1.33-r2::gentoo [1.33-r1::gentoo] USE="nls -doc -emacs -java -mono -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] dev-python/lxml-3.8.0::gentoo USE="threads -doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" 3.707 KiB
[ebuild N ] dev-libs/libgamin-0.1.10-r5::gentoo USE="-debug -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 463 KiB
[ebuild N ] app-admin/gamin-0.1.10-r1::gentoo ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] app-admin/gam-server-0.1.10-r2::gentoo USE="-debug" 388 KiB
[ebuild N ] virtual/fam-0-r1::gentoo ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N #] net-fs/samba-4.5.15::gentoo USE="acl client cups fam ldap pam system-mitkrb5 systemd -addc -addns -ads -cluster -dmapi -gnutls -gpg -iprint -quota (-selinux) -syslog (-system-heimdal) {-test} -winbind -zeroconf" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 20.534 KiB
[ebuild U ] sys-apps/systemd-236-r5:0/2::gentoo [233-r6:0/2::gentoo] USE="acl gcrypt kmod lz4 pam policykit seccomp ssl sysv-utils* (-apparmor) -audit -build -cryptsetup -curl -elfutils -gnuefi -http -idn -importd -libidn2% -lzma -nat -qrcode (-selinux) {-test} -usrmerge% -vanilla -xkb (-doc%)" ABI_X86="(64) -32 (-x32)" 6.655 KiB
[blocks B ] sys-apps/sysvinit ("sys-apps/sysvinit" is blocking sys-apps/systemd-236-r5)

Total: 8 packages (2 upgrades, 6 new), Size of downloads: 31.744 KiB
Conflict: 1 block (1 unsatisfied)

* Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

(sys-apps/systemd-236-r5:0/2::gentoo, ebuild scheduled for merge) pulled in by
>=sys-apps/systemd-206:0= required by (gnome-base/gvfs-1.32.1-r1:0/0::gentoo, installed)
>=sys-apps/systemd-217:0 required by (virtual/udev-217:0/0::gentoo, installed)
sys-apps/systemd:0/2= required by (sys-apps/dbus-1.10.18:0/0::gentoo, installed)
>=sys-apps/systemd-206:0/2= required by (gnome-base/gvfs-1.32.1-r1:0/0::gentoo, installed)
>=sys-apps/systemd-44:0= required by (gnome-extra/gnome-system-monitor-3.24.0:0/0::gentoo, installed)
>=sys-apps/systemd-209:0/2= required by (sys-apps/gnome-disk-utility-3.24.1:0/0::gentoo, installed)
>=sys-apps/systemd-209:0= required by (sys-apps/gnome-disk-utility-3.24.1:0/0::gentoo, installed)
>=sys-apps/systemd-44:0/2= required by (x11-misc/colord-1.3.4:0/2::gentoo, installed)
sys-apps/systemd required by (gnome-base/gnome-settings-daemon-3.24.3:0/0::gentoo, installed)
>=sys-apps/systemd-212-r5:0/2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=sys-apps/systemd-212-r5:0/2[abi_x86_64(-)]) required by (virtual/libudev-232:0/1::gentoo, installed)
>=sys-apps/systemd-183 required by (net-misc/modemmanager-1.6.4:0/1::gentoo, installed)
sys-apps/systemd required by (net-vpn/openvpn-2.4.4:0/0::gentoo, installed)
sys-apps/systemd:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (sys-apps/systemd:0=[abi_x86_64(-)]) required by (media-sound/pulseaudio-11.1:0/0::gentoo, installed)
>=sys-apps/systemd-186:0=[pam] required by (gnome-base/gdm-3.24.3:0/0::gentoo, installed)
>=sys-apps/systemd-186:0= required by (sys-apps/accountsservice-0.6.45:0/0::gentoo, installed)
>=sys-apps/systemd-209:0= required by (net-misc/networkmanager-1.8.4:0/0::gentoo, installed)
sys-apps/systemd required by (net-print/cups-2.1.4:0/0::gentoo, installed)
>=sys-apps/systemd-44:0/2= required by (gnome-extra/gnome-system-monitor-3.24.0:0/0::gentoo, installed)
sys-apps/systemd:0= required by (sys-auth/polkit-0.113-r4:0/0::gentoo, installed)
sys-apps/systemd[pam] required by (sys-auth/pambase-20150213-r1:0/0::gentoo, installed)
>=sys-apps/systemd-31 required by (gnome-base/gnome-shell-3.24.3:0/0::gentoo, installed)
>=sys-apps/systemd-183:0/2= required by (gnome-base/gnome-session-3.24.2:0/0::gentoo, installed)
>=sys-apps/systemd-205:0= required by (sys-fs/lvm2-2.02.145-r2:0/0::gentoo, installed)
>=sys-apps/systemd-209:0/2= required by (net-misc/networkmanager-1.8.4:0/0::gentoo, installed)
>=sys-apps/systemd-44:0= required by (x11-misc/colord-1.3.4:0/2::gentoo, installed)
sys-apps/systemd:0/2=[abi_x86_64(-)] required by (media-sound/pulseaudio-11.1:0/0::gentoo, installed)
>=sys-apps/systemd-31 required by (gnome-base/gnome-control-center-3.24.3:2/2::gentoo, installed)
>=sys-apps/systemd-209 required by (sys-fs/udisks-2.7.4-r1:2/2::gentoo, installed)
sys-apps/systemd required by (x11-base/xorg-server-1.19.5:0/1.19.5::gentoo, installed)
sys-apps/systemd:0/2= required by (sys-auth/polkit-0.113-r4:0/0::gentoo, installed)
sys-apps/systemd required by (sys-apps/util-linux-2.30.2:0/0::gentoo, installed)
>=sys-apps/systemd-205:0/2= required by (sys-fs/lvm2-2.02.145-r2:0/0::gentoo, installed)
>=sys-apps/systemd-183:0= required by (gnome-base/gnome-session-3.24.2:0/0::gentoo, installed)
sys-apps/systemd:0/2= required by (dev-qt/qtcore-5.7.1-r3:5/5.7::gentoo, installed)
>=sys-apps/systemd-207 required by (sys-apps/gentoo-systemd-integration-7:0/0::gentoo, installed)
sys-apps/systemd required by (sys-process/procps-3.3.12-r1:0/5::gentoo, installed)
>=sys-apps/systemd-38 required by (virtual/logger-0:0/0::gentoo, installed)
>=sys-apps/systemd-186:0/2=[pam] required by (gnome-base/gdm-3.24.3:0/0::gentoo, installed)
sys-apps/systemd:0= required by (sys-apps/dbus-1.10.18:0/0::gentoo, installed)
sys-apps/systemd required by (virtual/tmpfiles-0:0/0::gentoo, installed)
sys-apps/systemd:= required by (dev-qt/qtcore-5.7.1-r3:5/5.7::gentoo, installed)
sys-apps/systemd:0= required by (net-fs/samba-4.5.15:0/0::gentoo, ebuild scheduled for merge)
>=sys-apps/systemd-186:0/2= required by (sys-apps/accountsservice-0.6.45:0/0::gentoo, installed)

(sys-apps/sysvinit-2.88-r9:0/0::gentoo, installed) pulled in by
>=sys-apps/sysvinit-2.86-r6[selinux?] (>=sys-apps/sysvinit-2.86-r6) required by (sys-apps/openrc-0.34.11:0/0::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_packages

The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
# required by gnome-base/gnome-control-center-3.24.3::gentoo[cups]
# required by gnome-base/gnome-shell-3.24.3::gentoo
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/samba:
=net-fs/samba-4.5.15

NOTE: The --autounmask-keep-masks option will prevent emerge
from creating package.unmask or ** keyword changes.

Would you like to add these changes to your config files? [Yes/No] no

* In order to avoid wasting time, backtracking has terminated early
* due to the above autounmask change(s). The --autounmask-backtrack=y
* option can be used to force further backtracking, but there is no
* guarantee that it will produce a solution.

 

Es wird nach den Abhängigkeiten des Paketes geschaut:

sys-apps/sysvinit ("sys-apps/sysvinit" is blocking sys-apps/systemd

Das Paket net-fs/samba ist für die Kompilierung verschiedener Pakete erforderlich. Daher wird gefragt, ob net-fs/samba in die Datei package.unmask geschrieben werden soll. Damit wird verhindert, dass das Paket maskiert wird.

The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
# required by gnome-base/gnome-control-center-3.24.3::gentoo[cups]
# required by gnome-base/gnome-core-apps-3.24.2::gentoo
# required by gnome-base/gnome-3.24.2::gentoo
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/samba:
=net-fs/samba-4.5.15

NOTE: The --autounmask-keep-masks option will prevent emerge
from creating package.unmask or ** keyword changes.

Would you like to add these changes to your config files? [Yes/No] yes

Autounmask changes successfully written.

* IMPORTANT: config file '/etc/portage/package.unmask' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.

* In order to avoid wasting time, backtracking has terminated early
* due to the above autounmask change(s). The --autounmask-backtrack=y
* option can be used to force further backtracking, but there is no
* guarantee that it will produce a solution.

Nach der Aktualisierung von Konfigurationsdateien wird etc-update ausgeführt:

localhost /etc/portage/package.mask # etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/portage/package.unmask (1)
Please select a file to edit by entering the corresponding number.
(don't use -3, -5, -7 or -9 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all files)
(-5 to auto-merge AND not use 'mv -i')
(-7 to discard all updates)
(-9 to discard all updates AND not use 'rm -i'): 1

File: /etc/portage/._cfg0000_package.unmask
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
5) Save update as example config
Please select from the menu above (-1 to ignore this update): 1
Replacing /etc/portage/package.unmask with /etc/portage/._cfg0000_package.unmask

Exiting: Nothing left to do; exiting. :)

 

Da ich net-fs/samba in die package.use eingetragen hatte ist es sinnvoller, diese dort zu löschen.

localhost /etc/portage/package.mask # nano -w /etc/portage/package.mask/
libtool openrc perl samba
localhost /etc/portage/package.mask # nano -w /etc/portage/package.mask/samba
localhost /etc/portage/package.mask # rm samba

 

Dies brachte noch keine Besserung. Daher versuche ich eine Deinstallation von sysvinit

localhost /etc/portage/package.mask # emerge -C sysvinit
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.

sys-apps/sysvinit
selected: 2.88-r9
protected: none
omitted: none

All selected packages: =sys-apps/sysvinit-2.88-r9

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) sys-apps/sysvinit-2.88-r9...

* GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: net-fs/samba-4.5.10-r1
* - /usr/lib64/samba/libsamba-security-samba4.so
* - /usr/lib64/samba/libsamba3-util-samba4.so
* - /usr/lib64/samba/libldbsamba-samba4.so
* - /usr/lib64/libsamba-util.so.0
* - /usr/lib64/libsamba-util.so.0.0.1
* - /usr/lib64/libndr-krb5pac.so.0
* - /usr/lib64/libndr-krb5pac.so.0.0.1
* - /usr/lib64/libndr-nbt.so.0
* - /usr/lib64/libndr-nbt.so.0.0.1
* - /usr/lib64/samba/libflag-mapping-samba4.so
* - /usr/lib64/samba/libinterfaces-samba4.so
* - /usr/lib64/samba/libsmbd-shim-samba4.so
* - /usr/lib64/samba/libiov-buf-samba4.so
* - /usr/lib64/samba/libgse-samba4.so

 

Da openrc blockiert versuchte ich das Paket zu deinstallieren. Leider ist es Bestandteil des Systemkerns. Das System kann durch Deinstallation demoliert werden.

localhost /etc/portage/package.mask # emerge -C openrc
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.

!!! 'sys-apps/openrc' (virtual/service-manager) is part of your system profile.
!!! Unmerging it may be damaging to your system.

sys-apps/openrc
selected: 0.34.11
protected: none
omitted: none

All selected packages: =sys-apps/openrc-0.34.11

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3^C

Exiting on signal Signals.SIGINT

(sys-apps/sysvinit-2.88-r9:0/0::gentoo, ebuild scheduled for merge) pulled in by
>=sys-apps/sysvinit-2.86-r6[selinux?] (>=sys-apps/sysvinit-2.86-r6) required by (sys-apps/openrc-0.34.11:0/0::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_packages

Jetzt macht Portage den Vorschlag, die Versionsumer mit einzutragen.

The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
# required by sys-apps/openrc-0.34.11::gentoo
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/sysvinit:
=sys-apps/sysvinit-2.88-r9

NOTE: The --autounmask-keep-masks option will prevent emerge
from creating package.unmask or ** keyword changes.

Would you like to add these changes to your config files? [Yes/No] yes

Autounmask changes successfully written.

* IMPORTANT: config file '/etc/portage/package.unmask' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.

* In order to avoid wasting time, backtracking has terminated early
* due to the above autounmask change(s). The --autounmask-backtrack=y
* option can be used to force further backtracking, but there is no
* guarantee that it will produce a solution.

Aktualisierung der Konfigurationsdateien:

 

localhost /etc/portage/package.mask # etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/portage/package.unmask (1)
Please select a file to edit by entering the corresponding number.
(don't use -3, -5, -7 or -9 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all files)
(-5 to auto-merge AND not use 'mv -i')
(-7 to discard all updates)
(-9 to discard all updates AND not use 'rm -i'): 1

File: /etc/portage/._cfg0000_package.unmask
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
5) Save update as example config
Please select from the menu above (-1 to ignore this update): 1
Replacing /etc/portage/package.unmask with /etc/portage/._cfg0000_package.unmask
mv: '/etc/portage/package.unmask' überschreiben? y

Exiting: Nothing left to do; exiting. :)

 

Leider bringt auch dies nicht die Lösung. Ich hole mir jetzt im Forum Hilfe. https://forums.gentoo.org/viewtopic-p-8174878.html#8174878

 

Nachdem ich durch eselect news read aktuelle Infos vom Portage gelesen habe, bekam ich die Lösung:

 

2018-01-23-systemd-blocker
Title systemd sysv-utils blocker resolution
Author Mike Gilbert <floppym@gentoo.org>
Posted 2018-01-23
Revision 1

Starting with systemd-236, the sysv-utils USE flag is enabled by
default.

The sysv-utils USE flag controls installation of symlinks for several
key commands:

/sbin/halt -> ../bin/systemctl
/sbin/init -> ../lib/systemd/systemd
/sbin/reboot -> ../bin/systemctl
/sbin/poweroff -> ../bin/systemctl
/sbin/runlevel -> ../bin/systemctl
/sbin/shutdown -> ../bin/systemctl
/sbin/telinit -> ../bin/systemctl

These commands are otherwise provided by sys-apps/sysvinit. This package
is blocked by systemd when the sysv-utils USE flag is enabled.

Enabling sysv-utils should cause Portage to un-merge sysvinit and OpenRC
if they are currently installed. emerge may emit a warning message
before doing so; if you are booting with systemd, this message is safe
to ignore.

If you wish to keep sysvinit (and openrc) installed, you may disable the
sysv-utils USE flag locally.

If you run into unresolvable blockers with sysv-utils enabled, ensure
that you do not have any reverse dependencies of sys-apps/sysvinit
selected (in your world file).

Common packages to look for:

sys-apps/sysvinit
sys-apps/openrc
net-misc/netifrc

The equery command from gentoolkit may help track down installed
packages that depend on openrc.

equery depends sys-apps/openrc

 

Wenn systemd in der make.conf  hinterlegt ist, muss es ohne sysv-utils kompiliert werden. Dies erfolgt über 

localhost# USE="-sysv-utils" emerge -av systemd

No Machine-ID found

Falls nach einem Update oder irgendeinem anderen Grund keine Machine-ID für das System auffindbar sein, gibt es Konflikte mit Programmen. Bei einem Start über ein Terminal werden diese ggf. angezeigt. Der Firefox z.B.  bringt als Fehler No machine-id found.

 

Die Maschinen-ID ist eine einzelne Newline-terminierte, hexadezimale, 32-stellige Kleinbuchstaben-ID. Wenn  sie hexadezimal dekodiert wird, entspricht dies einem 16-Byte / 128-Bit   Wert.

Die ID wird in der Datei /etc/machine-id hinterlegt. Die Datei /etc/machine-id enthält die eindeutige Maschinen-ID des Rechner-Systems, das während der Installation festgelegt wird. Die Maschinen-ID wird normalerweise aus einer zufälligen Quelle generiert.  Sie ändert sich nicht bei Änderungen der Netzwerk Konfiguration oder wenn Hardware ersetzt wird.

Das Tool systemd-machine-id-setup  kann (z.B. von Installer-Tools)  verwendet werden, um die Rechner-ID zur Installationszeit zu initialisieren.

Wenn das Tool ohne die Option –commit aufgerufen wird, wird in der Datei /etc /machine-id  eine gültige, neu bearbeitete ID initialisiert.

     

  Manpage: http://man7.org/linux/man-pages/man1/systemd-machine-id-setup.1.html

      

has unmet requirements

Wer mit Gentoo arbeitet, hat evtl. mit Meldungen zu unmet required (unerfüllte Anforderungen) in  USE-Flags zu tun.

localhost /home/fridolin # emerge -avuND world
These are the packages that would be merged, in order:

Calculating dependencies |

!!! Problem resolving dependencies for net-misc/networkmanager from @selected
... done!

!!! The ebuild selected to satisfy "net-misc/networkmanager" has unmet requirements.
- net-misc/networkmanager-1.8.4::gentoo USE="consolekit dhclient introspection modemmanager ncurses nss policykit ppp systemd wext wifi -audit -bluetooth -connection-sharing -dhcpcd (-elogind) -gnutls -json -ofono -resolvconf (-selinux) -teamd -test -vala" ABI_X86="(64) -32 (-x32)"

The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of ( consolekit elogind systemd )
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.14.8-gentoo-r1 x86_64)

Die Fehlermeldung weist darauf hin, dass von den 3 Paketen Konsolenkit elogind systemd nur eines als USE-Flag ausgewählt werden darf. Es gibt die Mögichkeit die Datei /etc/make.conf anzupassen. Oder durch USE=“gewünschtes USE-Flag“ emerge -av „Paket“ einmalig eine Installation mit gewünschtem USE-Flag durchzuführen. Das USE-Flag consolekit sollte deaktiviert werden. Temporäre Ausführung:

localhost /home/fridolin # USE=-consolekit emerge -av networkmanager
* IMPORTANT: 16 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.

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

Calculating dependencies... done!
[ebuild R ] net-misc/networkmanager-1.8.4::gentoo USE="dhclient introspection modemmanager ncurses nss policykit* ppp systemd wext wifi -audit -bluetooth -connection-sharing -consolekit -dhcpcd (-elogind) -gnutls -json -ofono -resolvconf (-selinux) -teamd {-test} -vala" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

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

Durch Speichern in der Datei /etc/portage/package.use/iputils wird die Einstellung gespeichert.

localhost # nano -w /etc/portage/package.use/iputils
>=net-misc/networkmanager-1.8.4 -consolekit

 

 

Ein weiteres Beispiel:

localhost /home/fridolin # emerge -auvND world

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

Calculating dependencies... done!

!!! The ebuild selected to satisfy "media-libs/libmediaart:2.0[introspection]" has unmet requirements.
- media-libs/libmediaart-1.9.4::gentoo USE="gtk introspection qt5 -test -vala" ABI_X86="(64)"

The following REQUIRED_USE flag constraints are unsatisfied:
at-most-one-of ( gtk qt5 )

The above constraints are a subset of the following complete expression:
at-most-one-of ( gtk qt5 ) vala? ( introspection )

(dependency required by "media-sound/gnome-music-3.22.2-r1::gentoo" [installed])
(dependency required by "gnome-base/gnome-extra-apps-3.22.2::gentoo[tracker]" [installed])
(dependency required by "gnome-base/gnome-3.22.2::gentoo[extras]" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

GTK und QT sind verschiedene Bibliotheken, die für ein Paket eingestellt werden können. Qt ist eine sehr umfangreiche C++ Klassenbibliothek für die Entwicklung von Anwendungen.  Die Benutzeroberfläche KDE verwendet seit jeher Qt GTK+ (GIMP Toolkit +) ist eine freie Komponentenbibliothek, mit der grafische Benutzeroberflächen (GUIs) geschrieben werden können. GNOME hängt stark mit GTK+ zusammen. Es sind in diesem Fall beide angegeben. Es ist vom Paket aber eine direkte Angabe von einer Bibliothek gewünscht. Durch ein USE=-qt5 kann die Kompilierung für ein gtk – Bibliothek angepasst werden. Es wird dann ohne die Bibliothek QT kompiliert. In der Datei /etc/portage/package.use kann die Festlegung stetig gespeichert werden.

localhost /home/fridolin # USE=-qt5 emerge -av media-libs/libmediaart
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] media-libs/libmediaart-1.9.4:2.0::gentoo USE="gtk* introspection -qt5 {-test} -vala" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

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

Die ständige Komilierung ohne der QT-Bibliothek kann in /etc/portage/make.conf durch das Eintragen von -qt5 in den USE-Flags hinterlegt werden. Ein Beispiel:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
USE="X, alsa, cups, -kde, -python2, gnome, gtk, -qt5, -games"
LINGUAS="DE_de"
L10N="de"
GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ rsync://mirror.netcologne.de/gentoo/"
GRUB_PLATFORMS="efi-64"
/etc/portage/make.conf lines 1-23/23 (END)

cant resolve root

Das Booten hält bei der Identifizierung der Festplatte an und gibt den Fehler : cant resolve root. Es wird evtl . eine Lange Zahl mit UUID angezeigt.

Dies kann mit der Angabe der Partition in der Datei /etc/fstab zusammenhängen.

UUID steht für Universally Unique Identifier und bezeichnet nach einem bestimmten Standard formatierte Identifikationsnummern. Diese sehen etwa so aus:

  • 6a12a4d5-e9e6-4568-afcc-34c70b24a668

Jedes Linux-Dateisystem besitzt einen UUID, über den es identifiziert werden kann. Zwar kann man das auch über die Geräte-Dateien /dev/sdaX tun, aber die Nummerierung kann sich hier ändern – z.B. beim Vertauschen von Kabeln. Andere Eigenschaften wie Label oder Größe des Dateisystems garantieren keine Eindeutigkeit. Vergleichen kann man den UUID also mit einer Personalausweisnummer: Zwei Personen können den gleichen Namen tragen, sie haben aber trotzdem unterschiedliche Ausweisnummern.

 

Eine Übersicht der Partitionen mit dazugehöriger UUID bekommt man über den Befehl

localhost # lsblk -o +fstype,label,uuid,partuuid

E sind folgende Kerneldateien hinterlegt:

localhost /home/fridolin # cd /boot/
localhost /boot # ls
grub
initramfs-genkernel-x86_64-4.12.12-gentoo
initramfs-genkernel-x86_64-4.14.8-gentoo-r1
initramfs-genkernel-x86_64-4.9.72-gentoo
kernel-genkernel-x86_64-4.12.12-gentoo
kernel-genkernel-x86_64-4.14.8-gentoo-r1
kernel-genkernel-x86_64-4.9.72-gentoo
System.map-genkernel-x86_64-4.12.12-gentoo
System.map-genkernel-x86_64-4.14.8-gentoo-r1
System.map-genkernel-x86_64-4.9.72-gentoo

 

 

Vergleich der Kerneldateien:

[table id=9 /]

ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing.

Die Kompilierung des Kernels schlägt fehl:

localhost /home/fridolin # less /var/log/genkernel.log

* Gentoo Linux Genkernel; Version 66
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing. Maybe re-install the kernel sources.
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!

Über die folgenden Befehle können Informationen abgerufen werden:

Vorhandene Kernelquellen suchen:

fridolin@localhost ~ $ equery list -i gentoo-sources
[IP-] [ ] sys-kernel/gentoo-sources-4.9.72:4.9.72

Name des verwendeten Kernels anzeigen:

fridolin@localhost ~ $ uname -r
4.14.8-gentoo-r1

Vorhandene kernel-Versionen anzeigen:

fridolin@localhost ~ $ eselect kernel list
Available kernel symlink targets:
[1] linux-4.9.72-gentoo

Eine Installation einer genauen Version der Kernel-Quellen kann über den Befehl

localhost /home/fridolin # emerge =gentoo-sources-4.9.72

erfolgen

Um sicher zu stellen, dass der Link auf die Kernel-Quellen korrekt gesetzt wird ist es sinnvoll mit dem USE-Flag symlink zu kompilieren.

localhost /home/fridolin # USE=symlink emerge -av gentoo-sources