Update package dabatase before dpkg --set-selections. See #703092