apt: support version wildcards

Fixes #6885