Recent Problems: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
== bash Fehlermeldung ==
Listed are issues which need your attention and manual fixing.
{{Box Code|Fehlermeldung|
 
= 2013 =
== systemd/udev Predictable Network Interface Names ==
When upgrading to >= sys-fs/udev-197-r4 or a recent systemd you may convert your existing configuration to the new naming scheme.
 
You can find out what the network device will be named by running:
 
{{Root|udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null}}
 
{{Code|network device name|
<pre>
ID_NET_NAME_MAC=enx005056a84955
ID_NET_NAME_PATH=enp11s0
</pre>
}}
 
For Gentoo/OpenRC:
 
{{File|/etc/conf.d/net|
<pre>
config_enp11s0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
routes_enp11s0="default via 192.168.0.1"
</pre>
}}
 
{{Root|cd /etc/init.d}}
{{Root|rc-update del net.eth0}}
{{Root|rm net.eth0}}
{{Root|ln -s net.lo net.enp11s0}}
{{Root|rc-update add net.enp11s0 default}}
{{Root|rm /etc/udev/rules.d/70-persistent-net.rules}}
{{Root|rm /etc/udev/rules.d/80-net-name-slot.rules}}
{{Root|reboot}}
 
Additional attentions is needed for the mount stuff which also changed lately:
 
{{Root|rc-update add udev-mount sysinit}}
{{Root|rc-update del udev-postmount}}
 
{{Warning|Also be sure to review your Kernel configuration for [[Kernel#udev|udev]] regarding devtmpfs.}}
 
= 2009 =
== Using 10.0 profile and x11-libs/libxcb upgrade ==
Be sure to run revdep-rebuild afterwards, in my case a total of 66 packaged needed a rebuild.
 
{{Root|revdep-rebuild}}
 
== Portage preserve-libs feature and e2fsprogs/util-linux upgrade ==
Portage keeps complaining about preserved libs, even after multiple runs of emerge @preserved-rebuild.
 
{{Root|emerge @preserved-rebuild}}
 
{{Root|rm /lib/libuuid*}}
 
{{Root|rm /lib/libblkid*}}
 
{{Root|emerge util-linux --oneshot}}
 
== Warning notice about broken symlinks during upgrade of app-misc/ca-certificates ==
{{Code|Error message|
<pre>
* Broken symlink for a certificate at /etc/ssl/certs/class3.pem
* Broken symlink for a certificate at /etc/ssl/certs/root.pem
* Broken symlink for a certificate at /etc/ssl/certs/UTN_USERFirst_Object_Root_CA.pem
* Broken symlink for a certificate at /etc/ssl/certs/QuoVadis_Root_Certification_Authority.pem
* You MUST remove the above broken symlinks
* Otherwise any SSL validation that use the directory may fail!
* To batch-remove them, run:
* find -L /etc/ssl/certs/ -type l -exec rm {} +
</pre>
}}
 
Do as you've been told and run:
 
{{Root|find -L /etc/ssl/certs/ -type l -exec rm {} +}}
 
= 2007 =
== bash error message ==
{{Code|Error message|
<pre>
<pre>
>>> No outdated packages were found on your system.
>>> No outdated packages were found on your system.
Line 9: Line 87:
}}
}}


bashref.info.gz existiert in aktuellen bash-Versionen (heißt jetzt bashref.info.bz2) nicht mehr, daher kann der Symlink gefahrlos gelöscht werden.
bashref.info.gz was replaced by a tar.bz2 version bashref.info.bz2, thus you can safely delete the older symlink.


{{Codeline|# rm /usr/share/info/bashref.info.gz}}
{{Root|rm /usr/share/info/bashref.info.gz}}


== Emerge: error: C compiler cannot create executables ==
== Emerge: error: C compiler cannot create executables ==
{{Box Code|Fehlermeldung|
e.g. while emerging sys-apps/sandbox
{{Code|Error message|
<pre>
<pre>
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
Line 23: Line 102:
}}
}}


Dieser Fehler kann auftreten wenn auf dem System eselect-compiler installiert war (buggy - deshalb gcc-config benutzen!)
This problem arises if you've once had eselect-compiler installed on your system. It was buggy and has been deprecated for now (use gcc-config).
Beheben kann man das Problem indem man die von eselect-compiler angelegten Dateien einfach löscht. Um die betroffenen Dateien zu identifizieren:
You can solve this issue by manually removing all left over files created by eselect-compiler. To identify all of them:
 
{{Root|<nowiki>find /usr/bin | xargs strings -f 2> /dev/null | grep "Unable to determine executable" | cut -d : -f 1</nowiki>}}
 
{{Code|Example Output|
<pre>
<pre>
host ~ # find /usr/bin | xargs strings -f 2> /dev/null | grep "Unable to
determine executable" | cut -d : -f 1
/usr/bin/gccbug
/usr/bin/gccbug
/usr/bin/x86_64-pc-linux-gnu-gcov
/usr/bin/x86_64-pc-linux-gnu-gcov
Line 46: Line 127:
/usr/bin/x86_64-pc-linux-gnu-protoize
/usr/bin/x86_64-pc-linux-gnu-protoize
/usr/bin/x86_64-pc-linux-gnu-unprotoize
/usr/bin/x86_64-pc-linux-gnu-unprotoize
<pre>
</pre>
}}
 
{{Root|gcc-config -l}}
 
{{Root|gcc-config <most recent gcc version>}}
 
{{Root|source /etc/profile}}

Latest revision as of 19:54, 25 January 2013

Listed are issues which need your attention and manual fixing.

2013

systemd/udev Predictable Network Interface Names

When upgrading to >= sys-fs/udev-197-r4 or a recent systemd you may convert your existing configuration to the new naming scheme.

You can find out what the network device will be named by running:

# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null
Code: network device name
ID_NET_NAME_MAC=enx005056a84955
ID_NET_NAME_PATH=enp11s0

For Gentoo/OpenRC:

File: /etc/conf.d/net
config_enp11s0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
routes_enp11s0="default via 192.168.0.1"
# cd /etc/init.d
# rc-update del net.eth0
# rm net.eth0
# ln -s net.lo net.enp11s0
# rc-update add net.enp11s0 default
# rm /etc/udev/rules.d/70-persistent-net.rules
# rm /etc/udev/rules.d/80-net-name-slot.rules
# reboot

Additional attentions is needed for the mount stuff which also changed lately:

# rc-update add udev-mount sysinit
# rc-update del udev-postmount
Warning: Also be sure to review your Kernel configuration for udev regarding devtmpfs.

2009

Using 10.0 profile and x11-libs/libxcb upgrade

Be sure to run revdep-rebuild afterwards, in my case a total of 66 packaged needed a rebuild.

# revdep-rebuild

Portage preserve-libs feature and e2fsprogs/util-linux upgrade

Portage keeps complaining about preserved libs, even after multiple runs of emerge @preserved-rebuild.

# emerge @preserved-rebuild
# rm /lib/libuuid*
# rm /lib/libblkid*
# emerge util-linux --oneshot

Warning notice about broken symlinks during upgrade of app-misc/ca-certificates

Code: Error message
 * Broken symlink for a certificate at /etc/ssl/certs/class3.pem
 * Broken symlink for a certificate at /etc/ssl/certs/root.pem
 * Broken symlink for a certificate at /etc/ssl/certs/UTN_USERFirst_Object_Root_CA.pem
 * Broken symlink for a certificate at /etc/ssl/certs/QuoVadis_Root_Certification_Authority.pem
 * You MUST remove the above broken symlinks
 * Otherwise any SSL validation that use the directory may fail!
 * To batch-remove them, run:
 * find -L /etc/ssl/certs/ -type l -exec rm {} +

Do as you've been told and run:

# find -L /etc/ssl/certs/ -type l -exec rm {} +

2007

bash error message

Code: Error message
>>> No outdated packages were found on your system.
 * Regenerating GNU info directory index...
 * Processed 87 info files; 1 errors.
install-info: No such file or directory for /usr/share/info/bashref.info.gz

bashref.info.gz was replaced by a tar.bz2 version bashref.info.bz2, thus you can safely delete the older symlink.

# rm /usr/share/info/bashref.info.gz

Emerge: error: C compiler cannot create executables

e.g. while emerging sys-apps/sandbox

Code: Error message
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

This problem arises if you've once had eselect-compiler installed on your system. It was buggy and has been deprecated for now (use gcc-config). You can solve this issue by manually removing all left over files created by eselect-compiler. To identify all of them:

# find /usr/bin | xargs strings -f 2> /dev/null | grep "Unable to determine executable" | cut -d : -f 1
Code: Example Output
/usr/bin/gccbug
/usr/bin/x86_64-pc-linux-gnu-gcov
/usr/bin/x86_64-pc-linux-gnu-gccbug
/usr/bin/gcov
/usr/bin/protoize
/usr/bin/unprotoize
/usr/bin/i686-pc-linux-gnu-gfortran
/usr/bin/i686-pc-linux-gnu-gccbug
/usr/bin/i686-pc-linux-gnu-gcov
/usr/bin/i686-pc-linux-gnu-protoize
/usr/bin/i686-pc-linux-gnu-unprotoize
/usr/bin/i686-pc-linux-gnu-c++
/usr/bin/i686-pc-linux-gnu-cpp
/usr/bin/i686-pc-linux-gnu-g++
/usr/bin/i686-pc-linux-gnu-gcc
/usr/bin/i686-pc-linux-gnu-cc
/usr/bin/x86_64-pc-linux-gnu-protoize
/usr/bin/x86_64-pc-linux-gnu-unprotoize
# gcc-config -l
# gcc-config <most recent gcc version>
# source /etc/profile