update-alternatives warnings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Medium
|
Ian Jackson |
Bug Description
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_
Setting up fakeroot (1.7.1ubuntu1) ...
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
Use of uninitialized value in string ne at /usr/sbin/
#
This is on Gutsy with dpkg 1.14.4ubuntu2 (and fakeroot 1.7.1ubuntu1)
Line 602 reads:
if (!defined(
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/
Use of uninitialized value in string ne at /usr/sbin/
Updating fakeroot.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating faked.es.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating faked.sv.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating fakeroot.sv.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating fakeroot.es.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating fakeroot.fr.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating faked.1.gz (/usr/share/
Use of uninitialized value in string ne at /usr/sbin/
Updating faked.fr.1.gz (/usr/share/
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/
Leaving fakeroot.1.gz (/usr/share/
Leaving faked.es.1.gz (/usr/share/
Leaving faked.sv.1.gz (/usr/share/
Leaving fakeroot.sv.1.gz (/usr/share/
Leaving fakeroot.es.1.gz (/usr/share/
Leaving fakeroot.fr.1.gz (/usr/share/
Leaving faked.1.gz (/usr/share/
Leaving faked.fr.1.gz (/usr/share/
# update-alternatives --list fakeroot
/usr/bin/
/usr/bin/
problem is these two alternatives are from the same package.
# dlocate /usr/bin/fakeroot
fakeroot: /usr/bin/
fakeroot: /usr/bin/
Maybe it's a bug in fakeroot but in any case, update-alternatives should handle it more cleanly.
Related branches
Changed in dpkg: | |
assignee: | nobody → ijackson |
importance: | Undecided → Medium |
It happens with many other packages as well. The bug is in dpkg itself.