Trying to rebuild Lazarus on Debian10 I got an error: fpdebug not found.
Then I tried a workaround: I opened and compiled fpdebug's lpk
After this the lazarus didn't build due to lacking virtualtreeview.
I didn't manage to compile this package (another dependency error)
I checked what uses this virtualtreeview package, and it was "online package manager". After removing this from the package list the Lazarus can build itself.
This is Lazarus 2.0.0-dfsg-2 installed via apt-get to Debian 10 on AMDx64
I got exactly the same behavior on Raspbian Buster /Raspberry Pi and I used the same solution
(1) is it a known bug?
(2) is there a simpler solution instead of this crude workarounds?
Edit: I had also to copy the fpdebug precompiled stuff to /home/pi/.lazarus/units/....