Bug#42592: failure to configure when spanning partitions
Package: gcc
Version: 1:2.95-2
Package: dpkg
Version: 1.4.1.6
Maybe the below failure is update-alternatives' fault, if so please
reassign this bug.
# dpkg --status gcc
Package: gcc
Status: install ok half-configured
# dpkg --configure gcc
Setting up gcc (2.95-2) ...
Checking available versions of cc, updating links in /etc/alternatives ...
(You may modify the symlinks there yourself if desired - see `man ln'.)
Renaming cc.1.gz slave link from /usr/man/man1/cc.1.gz to /usr/share/man/man1/cc.1.gz.
update-alternatives: unable to rename /usr/man/man1/cc.1.gz to /usr/share/man/man1/cc.1.gz: Invalid cross-device link
dpkg: error processing gcc (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
gcc
This is easily worked around with an
# rm /usr/man/man1/cc.1.gz
which causes update-alternatives to create a new link in
/usr/share/man/man1/ rather than trying to move the old one.
Perhaps moving a symbolic link rather than generating a new one is an
unnecessary optimization, under the circumstances.
Reply to: