Is the warning in the image ("wrong version ...") the only issue?
If you just click "Start IDE" and ignore any warning that comes after that, does the IDE start and work?
I do understand, ignoring this warning on each start is a major annoyance... But just to make sure if that is the issue or something else in addition.
It seems to me, this may be an issue with the version from the linux distro ("sudo apt"...) => the packages that "apt" installs are build and provided by the maintainers of your Linux distro.
We (The FPC/Lazarus team) have no influence on them. We can not control how other people distribute our software.
You can try and use our official installer.
Which will also give you a much newer version than 2.0.10.
And such a newer version may (as in maybe) also fix other issues....
But in this case maybe there is a workaround.
In "/urs/lib/lazarus/2.0.10/ide/" should be a file "version.inc"
Open it in an editor (needs sudo) and change it to only contain
The installer you used appears to have appended "+dfg..." and that may be what upsets the IDE.
ImportantIf you get a similar error
after an upgrade, then first check if the version in the path is correct.
Example:
- If you upgraded to 2.2.4
- But the path contains 2.0.10
- then
do not edit the file- but instead:
correct the pathAnd very likely after such an update, you need to rebuild your ide (See menu: "Tools").
Until you have
- first fixed the path
- then rebuild the IDE
you may see various warnings.