Public bug reported: Binary package hint: dpkg
update-alternatives shows warnings during "install": I just remove and reinstall a package (fakeroot): # apt-get remove fakeroot Reading package lists... Done ... The following packages will be REMOVED: fakeroot 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. Need to get 0B of archives. After unpacking 442kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 185671 files and directories currently installed.) Removing fakeroot ... =================== # apt-get install fakeroot Reading package lists... Done ... The following NEW packages will be installed: fakeroot 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0B/111kB of archives. After unpacking 442kB of additional disk space will be used. Selecting previously deselected package fakeroot. (Reading database ... 185632 files and directories currently installed.) Unpacking fakeroot (from .../fakeroot_1.7.1ubuntu1_i386.deb) ... Setting up fakeroot (1.7.1ubuntu1) ... Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. # This is on Gutsy with dpkg 1.14.4ubuntu2 (and fakeroot 1.7.1ubuntu1) Line 602 reads: if (!defined($linkname= readlink($slink)) && $! != &ENOENT) { In my case, $slink is sometimes not defined. I increased verbosity in update-alternatives and apt-get install now says: Setting up fakeroot (1.7.1ubuntu1) ... Checking available versions of fakeroot, updating links in /etc/alternatives ... (You may modify the symlinks there yourself if desired - see `man ln'.) Updating fakeroot (/usr/bin/fakeroot) to point to /usr/bin/fakeroot-sysv. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating fakeroot.1.gz (/usr/share/man/man1/fakeroot.1.gz) to point to /usr/share/man/man1/fakeroot-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating faked.es.1.gz (/usr/share/man/es/man1/faked.1.gz) to point to /usr/share/man/es/man1/faked-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating faked.sv.1.gz (/usr/share/man/sv/man1/faked.1.gz) to point to /usr/share/man/sv/man1/faked-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating fakeroot.sv.1.gz (/usr/share/man/sv/man1/fakeroot.1.gz) to point to /usr/share/man/sv/man1/fakeroot-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating fakeroot.es.1.gz (/usr/share/man/es/man1/fakeroot.1.gz) to point to /usr/share/man/es/man1/fakeroot-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating fakeroot.fr.1.gz (/usr/share/man/fr/man1/fakeroot.1.gz) to point to /usr/share/man/fr/man1/fakeroot-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating faked.1.gz (/usr/share/man/man1/faked.1.gz) to point to /usr/share/man/man1/faked-sysv.1.gz. Use of uninitialized value in string ne at /usr/sbin/update-alternatives line 602. Updating faked.fr.1.gz (/usr/share/man/fr/man1/faked.1.gz) to point to /usr/share/man/fr/man1/faked-sysv.1.gz. Checking available versions of fakeroot, updating links in /etc/alternatives ... (You may modify the symlinks there yourself if desired - see `man ln'.) Leaving fakeroot (/usr/bin/fakeroot) pointing to /usr/bin/fakeroot-sysv. Leaving fakeroot.1.gz (/usr/share/man/man1/fakeroot.1.gz) pointing to /usr/share/man/man1/fakeroot-sysv.1.gz. Leaving faked.es.1.gz (/usr/share/man/es/man1/faked.1.gz) pointing to /usr/share/man/es/man1/faked-sysv.1.gz. Leaving faked.sv.1.gz (/usr/share/man/sv/man1/faked.1.gz) pointing to /usr/share/man/sv/man1/faked-sysv.1.gz. Leaving fakeroot.sv.1.gz (/usr/share/man/sv/man1/fakeroot.1.gz) pointing to /usr/share/man/sv/man1/fakeroot-sysv.1.gz. Leaving fakeroot.es.1.gz (/usr/share/man/es/man1/fakeroot.1.gz) pointing to /usr/share/man/es/man1/fakeroot-sysv.1.gz. Leaving fakeroot.fr.1.gz (/usr/share/man/fr/man1/fakeroot.1.gz) pointing to /usr/share/man/fr/man1/fakeroot-sysv.1.gz. Leaving faked.1.gz (/usr/share/man/man1/faked.1.gz) pointing to /usr/share/man/man1/faked-sysv.1.gz. Leaving faked.fr.1.gz (/usr/share/man/fr/man1/faked.1.gz) pointing to /usr/share/man/fr/man1/faked-sysv.1.gz. # update-alternatives --list fakeroot /usr/bin/fakeroot-sysv /usr/bin/fakeroot-tcp problem is these two alternatives are from the same package. # dlocate /usr/bin/fakeroot fakeroot: /usr/bin/fakeroot-tcp fakeroot: /usr/bin/fakeroot-sysv Maybe it's a bug in fakeroot but in any case, update-alternatives should handle it more cleanly. ** Affects: dpkg (Ubuntu) Importance: Undecided Status: Unconfirmed -- update-alternatives warnings https://bugs.launchpad.net/bugs/118246 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs