Installing the program

Hi! I recently switched to trisquel, and this was my first introduction to Linux in general, a lot is still unclear and difficult, but I'm trying! There was a problem - I don't quite understand how to install applications, I tried through the terminal - nothing worked, I found the install/uninstall applications button, the application I needed was found there, I installed it. But when trying to launch the application, the error "invalid shortcut file name '/usr/share/applications/codeblocks.desktop'" is returned. Please tell me what the problem is here?
PS I wrote this text through a translator, I apologize if you see errors in it :c