This bug is many months old by now:
on Ubuntu 22.04 LTS users are unable to install drivers fully fo a long time now.
Many versions of the linux drivers have they link busted, and the recent driver is supposed to have them fixed:
"Fixing an installation bug in 22.40.3 release preventing users from installing proprietary components" - AMD release notes;
and this is the CLI message same as previous ones:
E: Unable to locate package amdgpu-pro
E: Unable to locate package amdgpu-pro-lib32
E: Unable to locate package amdgpu-dkms
It doesnt matter the comand you use the pro/workstation version of them allways find something not able to locate and fail to install;
At this point i fell these releases aren't being tested at all and just compiled by a bot at released with random descripton :))