filtering dpkg database to avoid uninstall problems

Issue: 9051
Release: 1.3.1.2