filtering dpkg database to avoid uninstall problems

Issue: 9051
Release: 1.2.16