fix dpkg and rm