I use Ubuntu as well and I disabled the native (Ubuntu) command Ctrl + Alt + L because I prefer IntelliJ’s format code than this native Ubuntu command. However, in the 2nd case I prefered Ubuntu’s shortcut so I didn’t change anything.
So basically, you can choose which option you need more and then act accordingly.
Of course, until IDEA becomes Ubuntu friendly.
In the end, Ubuntu will always prefer its shortcuts and so far I haven’t found any tool that can disable native shortcuts on request.