Fix ubuntu deps for pkgrepo integration tests

This fixes a typo'ed package name, as well as doing logic to determine
the correct package name based on the osrelease.
Merge pull request #8872 from terminalmage/tests

Fix ubuntu deps for pkgrepo integration tests