FYI, I have split the comment on the resource topic GitLab Upgrade Path Resources into a new standalone topic, touching on the specific Ubuntu and CE scope.
Suggest checking the upgrade plan resources, and build out the incremental upgrade steps that are required (13 → 14 → 15 → 16 → 17, see GitLab Upgrade Path Resources).