Er, the first line you have posted there was definitely NOT suggested by me. Why on earth have you removed fpc ?
I will labour the point a bit here because its important that you understand what just happened.
I said " your FPC is probably fine so leave it alone. ". I wonder if you have not got the idea that fpc and lazarus are two separate things ? You probably had a good fpc install but now you have done the one thing I warned you against, removing components manually that were installed by apt.
Now you have a broken fpc install as well as a broken lazarus !
So, some more cleaning up will be necessary. Just how easy that is will depend on the version of apt that your system has. Some versions seem happy to clean up and others not and I have not worked out what the difference is !
So, as a starting point, lets see if your version of apt will still play with us, run this to see if apt still thinks it has fpc or lazarus somewhere, run them one at a time so we can see which does what -
dpkg -l | grep fpc <enter>
dpkg -l | grep lazarus <enter>
If either respond (and I expect at least fpc will), you should try and remove them, you may need the force option. Again, do it in this order !
sudo apt purge lazarus <enter>
sudo apt purge fpcsrc <enter>
sudo apt purge fpc <enter>
The lazarus one, at least should tell us that lazarus is not installed, no problems, keep going. If you see a message about not being able to remove something, or the need to "fix" a package, better stop and post the message here.
If these ran OK, then you you should do a normal -
sudo apt update <enter>
sudo apt upgrade <enter>
to make sure your apt database is not damaged. If its not, you should consider yourself very lucky !
Now, if things still look OK, type the following -
ls -l /usr/lib/x86_64-linux-gnu/fpc <enter>
Assuming you are using a 64bit machine. And ..
ls -l /usr/lib/lazarus <enter>
ls -l /usr/lib/lazarus <enter>
You should get no response from all three of the above commands. If you do see something, then you will again have to manually remove that content BUT ONLY if you cannot remove it with apt -
that is a golden rule, never ever remove something manually that you can remove with apt !
If you get through all of that and can get no response to the three "ls" commands above, then and only then, proceed to reinstall the deb files you have. I strongly recommend you install them one at a time so you can clearly see any errors. So, move to the dir you downloaded the debs from and make sure they are there -
cd <some_dir>
ls -l *.deb
// all good ?
sudo apt install ./fpc-laz_3.2.2_amd64.deb <enter>
// look for any error messages !
sudo apt install ./fpc-src_3.2.2_amd64.deb
// look for any error messages !
sudo apt install ./lazarus-project_2.2.0-0_amd64.deb
// look for any error messages !
note the "./" in front of the debs, most important otherwise apt will try and find them in its own databases. the "./" says "these deb files right here in this dir".
Davo
PS. All these problems do relate, IMHO, to installing Lazarus from a deb. Life is so much easier if you install Lazarus from source code. You do not install it, just keep it in your home dir where you can remove it, replace it or add to it whenever you like. I sometimes wonder if the Lazarus developers should refuse to make a deb package !