Package: ucf Version: 3.0027+nmu1 Severity: serious # echo oops > /etc/oops # ln -s oops /etc/foo.bar # grep foo.bar /var/lib/ucf/registry # ucfr foo.bar /etc/foo.bar # grep foo.bar /var/lib/ucf/registry foo.bar /etc/foo.bar # ucfr foo.bar /etc/foo.bar # grep foo.bar /var/lib/ucf/registry foo.bar /etc/foo.bar foo.bar /etc/foo.bar # ucfr foo.bar /etc/foo.bar # grep foo.bar /var/lib/ucf/registry foo.bar /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar # ucfr -v --purge foo.bar /etc/foo.bar ucfr: The Package name is foo.bar ucfr: The Configuration file is /etc/foo.bar ucfr: The configuration file is /etc/oops ucfr: The State directory is /var/lib/ucf ucfr: The registry exists ucfr: Association already purged. No changes. # grep foo.bar /var/lib/ucf/registry foo.bar /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar # ucfr -v foo.bar /etc/foo.bar ucfr: The Package name is foo.bar ucfr: The Configuration file is /etc/foo.bar ucfr: The configuration file is /etc/oops ucfr: The State directory is /var/lib/ucf ucfr: The registry exists egrep -v "[[:space:]]/etc/oops$" "/var/lib/ucf/registry" \ /var/lib/ucf/registry.tmp || true echo "foo.bar /etc/foo.bar" >> "/var/lib/ucf/registry.tmp" mv -f /var/lib/ucf/registry.tmp /var/lib/ucf/registry # grep foo.bar /var/lib/ucf/registry foo.bar /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar # rm /etc/foo.bar rm: remove symbolic link '/etc/foo.bar'? y # ucfr -v --purge --force foo.bar /etc/foo.bar ucfr: The Package name is foo.bar ucfr: The Configuration file is /etc/foo.bar ucfr: The configuration file is /etc/foo.bar ucfr: The State directory is /var/lib/ucf ucfr: The registry exists ucfr: Corrupt registry: Duplicate entries for /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar foo.bar /etc/foo.bar
discovered while debugging a piuparts error in ampache (#722548): Purging configuration files for ampache ... ucfr: Corrupt registry: Duplicate entries for /etc/ampache/ampache.conf ampache /etc/ampache/ampache.conf ampache /etc/ampache/ampache.conf dpkg: error processing ampache (--purge): subprocess installed post-removal script returned error exit status 2 Andreas -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org