[Bug 194101] [NEW] Ignore error of "update-alternatives --remove" in postrm

Daniel Hahler launchpad at thequod.de
Thu Feb 21 19:32:55 UTC 2008


Public bug reported:

Binary package hint: kubuntu-default-settings

In ubuntu-default-settings.postrm the following gets done:
case "$1" in
  remove|deconfigure|failed-upgrade)
    echo Unsetting kubuntu as default mouse cursor theme ...
    update-alternatives --remove x-cursor-theme \
        /usr/share/icons/kubuntu/index.theme
  ;;

This caused problems on my system, after I've forcefully moved /usr/X11R6/lib away (as it seemed obsolete), but /var/lib/dpkg/alternatives/x-cursor-theme has the following content:
-------------
auto
/usr/X11R6/lib/X11/icons/default/index.theme

/usr/share/icons/DMZ-White/cursor.theme
50
/usr/share/icons/DMZ-Black/cursor.theme
30
-------------

Because of this, update-alternative failed:
update-alternatives: unable to make /usr/X11R6/lib/X11/icons/default/index.theme.dpkg-tmp a symlink to /etc/alternatives/x-cursor-theme: No such file or directory

But this is not a problem of/for kubuntu-default-settings and therefore
the error should get ignored.

I'll provide a patch to fix this.

** Affects: kubuntu-default-settings (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Ignore error of "update-alternatives --remove" in postrm
https://bugs.launchpad.net/bugs/194101
You received this bug notification because you are a member of Kubuntu
Team, which is subscribed to kubuntu-default-settings in ubuntu.




More information about the kubuntu-bugs mailing list