First of all, I understand, that you have hit a huge mass of problems in a short time, and that is frustrating. Been there myself.
And knowing that the problems may not all be Lazarus does not make it less frustrating.
If installing stuff on linux, or un-installing causes regular issues of its own, I would normally suggest a virtualization (e.g. VirtualBox). Once that is running, you have a playground, that you can snapshot when it is stable, and always easily return to that snapshot. So far so good, in theory. But in real live it is another software to install and to maintain, and to update, and to learn, and .... There just is no easy way.
As for install location, and user rights "File Access Error".
There are guidelines that come with each platform. Where possible Lazarus follows this. And this is why the default is /usr. Installing in /usr/... means it can be used by all users on that machine. (Not much of a benefit if you are the only user). There are tools to install in your home folder (fpcup afaik) but, that is even more to learn, and more that can go wrong.
Just for info, there is a folder /home/name/.lazarus
It contains all your settings, as well as all files Lazarus needs to create when you run it (so the installation is not modified)
Anyway the above just describes the situation, not much help either.
----------------------------
Most recent, and has happened in the past, was saving files for a newly started project outside of the original directory... hard to explain. "File Access Error" or something like that.
Well make sure you have the access rights. That is
1) who owns the target folder and what permissions on the folder do you have.
afaik you may need the execute permission on the folder
2) same for he file
Best to create only files and folders in your home, and make sure they are all owned by you.
As for creating files in folders outside the project folder. That is often a very reasonable thing to do.
However if you do that, the project needs to know about the path (lazarus usually asks, if it should add the folder. to the path)
You can let Lazarus add the folder to the path.
EXCEPT if that folder belongs to any package. Then you must add the file to the package and add the package instead.
If you add folders of a package to your project, there is a 99% chance it will screw up.
Another way is, if you want files in separate folders create your own package. it is often the better way.
- Menu Package > New Package
- Save to a new empty folder
- Then in the package window, use the button "Add ...", and there choose "New Unit"
And Lazarus will manage the path and all for you (if you add the package to your project)