2005/6/2, Agustin Martin <[EMAIL PROTECTED]>:
> Seems that to make things really smooth something in the preinst is
> needed in this case to work around the bug introduced in -1, just
> reconfiguring after -2.2 does not help.

This is weird. Here's what I get:

[EMAIL PROTECTED]:~/debian$ sudo update-alternatives --display pc
pc - status is auto.
 link currently points to /usr/bin/gpc
/usr/bin/gpc - priority 20
 slave pc.1.gz: /usr/share/man/man1/gpc.1.gz
Current `best' version is /usr/bin/gpc.
[EMAIL PROTECTED]:~/debian$ sudo dpkg -i
fp-{compiler,units-rtl}_2.0.0-1_i386.deb
Selecting previously deselected package fp-compiler.
(Reading database ... 81003 files and directories currently installed.)
Unpacking fp-compiler (from fp-compiler_2.0.0-1_i386.deb) ...
Selecting previously deselected package fp-units-rtl.
Unpacking fp-units-rtl (from fp-units-rtl_2.0.0-1_i386.deb) ...
Setting up fp-units-rtl (2.0.0-1) ...
Setting up fp-compiler (2.0.0-1) ...
update-alternatives: slave link name /usr/share/man/man1/pc.1.gz duplicated
dpkg: error processing fp-compiler (--install):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 fp-compiler
[EMAIL PROTECTED]:~/debian$ sudo update-alternatives --display pc
pc - status is auto.
 link currently points to /usr/bin/gpc
/usr/bin/gpc - priority 20
 slave pc.1.gz: /usr/share/man/man1/gpc.1.gz
/usr/bin/fpc - priority 20
 slave pc.1.gz: /usr/share/man/man1/fpc.1.gz
Current `best' version is /usr/bin/gpc.
[EMAIL PROTECTED]:~/debian$ sudo dpkg -i
fp-{compiler,units-rtl}_2.0.0-2_i386.deb
(Reading database ... 81300 files and directories currently installed.)
Preparing to replace fp-compiler 2.0.0-1 (using
fp-compiler_2.0.0-2_i386.deb) ...
Unpacking replacement fp-compiler ...
Preparing to replace fp-units-rtl 2.0.0-1 (using
fp-units-rtl_2.0.0-2_i386.deb) ...
Unpacking replacement fp-units-rtl ...
Setting up fp-units-rtl (2.0.0-2) ...
Setting up fp-compiler (2.0.0-2) ...
[EMAIL PROTECTED]:~/debian$ sudo update-alternatives --display pc
pc - status is auto.
 link currently points to /usr/bin/gpc
/usr/bin/gpc - priority 20
 slave pc.1.gz: /usr/share/man/man1/gpc.1.gz
/usr/bin/fpc - priority 20
 slave pc.1.gz: /usr/share/man/man1/fpc.1.gz
Current `best' version is /usr/bin/gpc.

So installing -2 now works fine here without any manual intervention.
I'm a bit puzzled.

-- 
Carlos Laviola
[EMAIL PROTECTED]

Reply via email to