Red Hat Bugzilla – Bug 997166
missing file for "alternatives --list"
Last modified: 2013-08-15 04:53:00 EDT
Description of problem:
alternatives --list complains about missing file:
$ alternatives --list
failed to read link /usr/share/config/kdeglobals.defaults: No such file or directory
In fact, the named file does not exist, however unclear why this is needed.
Version-Release number of selected component (if applicable):
Name : chkconfig
Version : 1.3.60
Release : 3.fc19
I suspect that some package removed that file, but it did not change alternatives properly. There is probably some dangling symlink in /etc/alternatives.
Small correction, the original link is missing. Just for curiosity, can you post here output of
ls -al /etc/alternatives
grep 'kdeglobals.defaults' /var/lib/alternatives/* | xargs cat
Not a dangling symlink in /etc/alternatives but some orphan config files in /var/lib/alternatives (e.g. kde-theme, qt-theme and gtk-theme). These do not belong to any package anymore, so i removed them. Now "alternatives --list" works fine. Thanks a lot.
I was thinking about printing some more usable message, but it would mean some bigger changes in code and I am not sure if it worths the effort. So closing this as NOTABUG.