dpkg keeps diversions for removed packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
Binary package hint: dpkg
On a 10.10 system which has been upgraded several times through the ages, and presumably used to have the screen-profiles package installed when it existed:
mas90@callisto:~$ dpkg -S /usr/bin/screen
diversion by screen-profiles from: /usr/bin/screen
diversion by screen-profiles to: /usr/bin/
screen: /usr/bin/screen
mas90@callisto:~$ dpkg -L screen-profiles
Package `screen-profiles' is not installed.
mas90@callisto:~$ dpkg --get-selections | grep -c screen-profiles
0
mas90@callisto:~$ ls -l /usr/bin/screen /usr/bin/
-rwxr-sr-x 1 root utmp 376032 2009-07-06 06:37 /usr/bin/screen
-rwxr-sr-x 1 root utmp 376112 2010-06-18 22:13 /usr/bin/
i.e. I'm stuck with an old (and buggy: bug #375625) /usr/bin/screen supplied by a screen-profiles package, despite screen-profiles being long gone.
I can work around the situation, but dpkg should never have got into this state. When screen-profiles was removed, any diversions it put in place should have been undone.
sorry, but dpkg-divert only does what it's told here. This screen-profiles package was responsible for removing /usr/bin/screen on package removal; nothing dpkg can do when a package decides to leave one around. Reassigning to byobu which provided screen-profiles.