Package version ":{version}" does not follow version conventions

When creating workspace & deps, I run

rosdep install --from-paths src --ignore-src -y

It shows “Package version “:{version}” does not follow version conventions”

I read the similar discussion, they said the version should be replaced by bloom
However, there is no tutorial, which command can change “:{version}” into bloom automatically

Thanks for your help

I find the issue is due to the version of mavlink-gbp-release folder
Default is master, we need to git checkout melodic for ubuntu 18.04
Thus, I solve this issue by running

git checkout -b melodic remotes/origin/patches/release/melodic/mavlink