Pfsense 2.3.2 cannot install Squid and SquidGuard
Pfsense 2.3.2 is newly installed but it gives the following error during the Squid and Squidguard installation.
Number of packages to be installed: 4
The process will require 10 MiB more space.
[1/4] Installing squid-3.5.19...
===> Creating groups.
Using existing group 'squid'.
===> Creating users
Using existing user 'squid'.
install: not found
pkg: PRE-INSTALL script failed
Failed 1 2 Answers
I upgraded mine this morning and noticed that there was a problem with Squid (which was already installed), I tried to reinstall the package and got
[1/4] Extracting squid-3.5.19_1: .......... done
pkg: Fail to rename /usr/local/etc/squid/errors/.zh-cn.dJ0xHpPRgMyd -> /usr/local/etc/squid/errors/zh-cn: Is a directory
Failed
So I tried to remove and reinstall only to get the following error while uninstalling
ERROR: Package pfSense-pkg-squid is not installed
Failed
At this point, we should file a bug on pFsense portal/forum.
3According to the fix for this is
rm -rf /usr/local/etc/squid/I can confirm it for upgrade from 2.1.5-RELEASE (amd64) to 2.3.2-RELEASE-p1 (amd64) and then using package manager to install Squid Proxy. After removing the directory above I could install the package. Only needed to clear the cache via Services -> Squid Proxy -> Local Cache -> Clear Disk Cache NOW to enable the service.