Bug#554136: update-alternatives fails when setting an alternative in manual mode

View: New views
2 Messages — Rating Filter:   Alert me  

Bug#554136: update-alternatives fails when setting an alternative in manual mode

by Raphael Geissert-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: dpkg
Version: 1.15.3.1

Hi,

On a clean chroot:
# apt-get install mpg123-alsa
...
Setting up libmpg123-0 (1.9.1-2) ...
Setting up mpg123 (1.9.1-2) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
Setting up mpg123-alsa (1.9.1-2) ...
# update-alternatives --set mpg123 /usr/bin/mpg123-alsa
update-alternatives: using /usr/bin/mpg123-alsa to provide /usr/bin/mpg123 (mpg123) in manual mode.
Can't call method "slave" on an undefined value at /usr/sbin/update-alternatives line 1017.

Cheers,
--
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#554136: update-alternatives fails when setting an alternative in manual mode

by Guillem Jover :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

retitle 554136 u-a: --set fails with undefined value on non-registered paths
thanks

Hi!

On Tue, 2009-11-03 at 01:32:49 -0600, Raphael Geissert wrote:
> Package: dpkg
> Version: 1.15.3.1

> On a clean chroot:
> # apt-get install mpg123-alsa
> ...
> Setting up libmpg123-0 (1.9.1-2) ...
> Setting up mpg123 (1.9.1-2) ...
> update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
> update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
> Setting up mpg123-alsa (1.9.1-2) ...
> # update-alternatives --set mpg123 /usr/bin/mpg123-alsa
> update-alternatives: using /usr/bin/mpg123-alsa to provide /usr/bin/mpg123 (mpg123) in manual mode.
> Can't call method "slave" on an undefined value at /usr/sbin/update-alternatives line 1017.

The invokation is just wrong, as there's no /usr/bin/mpg123-alsa
alternative. In any case u-a should not fail like this, so I've fixed
this and it will be included in 1.15.5.3, which we'll probably upload
tomorrow.

regards,
guillem



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...