fixed bug where dpkg --get-selections does not work.