How to get 1.18.2 spigot as profile(no option in profiles)

Error -17 (EEXIST): /var/games/minecraft/profiles/spigot_1.18.2 says i have the jar but there is no option to choose that in profiles only build tools.jar which is not the right thing since it doesnt start. im new to linux i have no idea what to do and the file system is completely different than on my old server i dont know where anything belongs or where to begin troubleshooting its completely overwhelming. any help is appreciated.