Some background, in case it is needed.
On linux the installation is usually made with root rights into /usr/*/*
Files there can not be changed, by normal users.
But when you install packages into the IDE, then the IDE needs to be rebuild. => For that a new "lazarus" exe is created in your home folder. /home/codrut/.lazarus/bin/lazarus
When you call "startlazarus" it will find this, and start it.
So that is where this message comes from.
For some reason your original files in /usr/ seem to have gone.
Maybe Ubuntu installed an upgrade (though I wouldn't expect them to have one now). In anycase something caused those files to be gone.
That most likely also meant the source code of lazarus itself => but the IDE uses that for code navigation. So you would get complaints from the IDE
.
You can search your /usr/lib/lazarus if there is any other version.
So I restarted the IDE, and I got a dialog telling me to upgrade lazarus to the new files? And It was like a welcome dialog asking me where to store project by default.
THis is why I though maybe a newer version (but that would have to be the release candidate) was installed.
The IDE knows were it used to be installed, and it can detect the version of the files that in finds as installation in /usr/
When that happens, normally you click ok. And in most case you need to rebuild the IDE to upgrade the /home/codrut/.lazarus/bin/lazarus copy.