Summary of the topic:
Problem: packages are not installed because download never finishes.
Sometimes the package manager do not wait for download to finish and start unpacking - and never ending the job.
1. Initially my package download were very very slow and package installation crashed. I checked the download speed with USA and I got 13 mbps. With Frankfurt I get 75. If I manually download the package with my laptop (through pfSENSE!) then I get it in less than a minute. Inside pfSENSE (using the package manager GUI) usually takes 1 hour for 14 MB (squid is a good example) -> https://files.pfsense.org/packages/amd64/8/All/squid-2.7.9_3-amd64.pbi
2. I've manually downloaded the file on my laptop and tried to put is in tmp folder. Now I discovered that even with WinSCP I can't get a decent upload speed inside pfSENSE box. The upload speed was hilarious: 8 B/s!
3. As suggested, I've tested the SD / USB speed: diskinfo shows a write speed over 10 MB/s
What else can I try? I am unable to install any package higher than 2-5 MB!
Late edit: all crashed packages appear as installed in package manager but none started: squid did not start, snort did not start, dansguardian did not start. Worst: the GUI does not have in the menus the entries for these services!
Later edit: I've used package manager to reinstall the GUI part for each package installed (snort, squid, dansguardian). The XML and CONF file were replaced and now I have the menus to configure the services.
I MANAGED to finally start them!
The big question remains: what is the problem? And how can I fix it?
I am using APU1C4 box with 2 pfSENSE memories: one USB stick and one USB-to-SD adapter and SD card inside adapter. Both connected on external USB port of the APU1C4.
Inside APU1C4 I have another SD (on the board) with ipFIRE. If my pfSENSE crash, I reboot with ipFIRE.