Package: bird2
Severity: important
Version: 2.0.4-1
Hi,
When bird2 supersedes bird it does not properly take over the
configuration file /etc/bird/bird.conf in ucf. When the bird package is
purged, it results in the following situation:
# aptitude search '~c'
c bird - Internet Routing Daemon
# apt policy bird bird2
bird:
Installed: (none)
Candidate: 1.6.8-2.1
Version table:
1.6.8-2.1 500
500 http://mirror.bytemark.co.uk/debian bullseye/main amd64
Packages
1.6.6-1+deb10u1 -1
100 /var/lib/dpkg/status
bird2:
Installed: 2.0.7-4.1
Candidate: 2.0.7-4.1
Version table:
*** 2.0.7-4.1 500
500 http://mirror.bytemark.co.uk/debian bullseye/main amd64
Packages
100 /var/lib/dpkg/status
# apt purge bird
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
bird*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 86367 files and directories currently installed.)
Purging configuration files for bird (1.6.6-1+deb10u1) ...
ucfr: Association belongs to bird2, not bird
ucfr: Aborting
dpkg: error processing package bird (--purge):
installed bird package post-removal script subprocess returned error
exit status 5
Errors were encountered while processing:
bird
E: Sub-process /usr/bin/dpkg returned an error code (1)
But the postrm for bird has already removed the configuration file:
# ls /etc/bird/
envvars local.conf
so now bird2 fails to start and the configuration is lost (yay backups).
--
Jonathan Wiltshire
Red Hat Certified Engineer (#170-281-083)
Tiger Computing Ltd
ISO27001:2017 Certified
Tel: 01600 483 484
Web: http://www.tiger-computing.co.uk
Registered in England. Company number: 3389961
Registered address: Woodlands, Staunton,
Coleford, GL16 8NU