I installed KiCad 5.0.2 on Ubuntu using the PPA given on the website:
sudo add-apt-repository --yes ppa:js-reynaud/kicad-5 sudo apt update sudo apt install kicad
This is on a machine which did not previously have KiCad. (So there should be no issue with migration from v4, etc.)
I then opened an existing KiCad project. When I ran CvPCB, KiCad popped up a dialog stating that it had either given me the standard kicad footprint libraries or an empty fp-lib-table.
None of the standard KiCad libraries showed up in CvPCB. I found a FAQ entry, but when I tried doing
sudo apt-get install kicad-libraries and
sudo apt-get install kicad-footprints, it said those packages were already installed.
I took a look at
~/.config/kicad/fp-lib-table, and it had not quite given me an empty
fp-lib-table. Rather, there was a single entry in the
fp-lib-table, which was a local library in the project I had opened. It turned out that the new
~/.config/kicad/fp-lib-table that KiCad created for me is identical to the local
fp-lib-table that was in the project directory.
Why did it do that, and how do I make it give me the default libraries instead?