Bug 997166 - missing file for "alternatives --list"
missing file for "alternatives --list"
Product: Fedora
Classification: Fedora
Component: chkconfig (Show other bugs)
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Lukáš Nykrýn
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-08-14 15:59 EDT by Kai Hambrecht
Modified: 2013-08-15 04:53 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-15 04:53:00 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kai Hambrecht 2013-08-14 15:59:26 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
Architecture: x86_64
Comment 1 Lukáš Nykrýn 2013-08-15 04:12:13 EDT
I suspect that some package removed that file, but it did not change alternatives properly. There is probably some dangling symlink in /etc/alternatives.
Comment 2 Lukáš Nykrýn 2013-08-15 04:38:44 EDT
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
Comment 3 Kai Hambrecht 2013-08-15 04:41:50 EDT
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.
Comment 4 Lukáš Nykrýn 2013-08-15 04:53:00 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.