Ensure aptpkg._consolidate_repo strips trailing slashes from repo_uri

This fixes #18909
Merge pull request #18915 from babilen/issue/18909

Ensure aptpkg._consolidate_repo strips trailing slashes from repo_uri