Skip to content

Ubuntu 24.04 LTS repository for Squid 7

If recompilation of Squid is not desirable you can always use the online repository. To use the repository for the first time run the following commands as root user:

# get diladele apt key, dearmor it and add to trusted storage
curl https://packages.diladele.com/diladele_pub.asc | gpg --dearmor >/etc/apt/trusted.gpg.d/diladele_pub.asc.gpg

# add new repo
echo "deb https://diladele.github.io/repo-squid-7_4_1-ubuntu-24_04/repo/ubuntu/ noble main" \
   >/etc/apt/sources.list.d/squid-7_4_1.diladele.github.io.list

# and install
apt update && apt install -y \
   squid-common \
   squid-openssl \
   libecap3 libecap3-dev

# create the override folder for squid
mkdir -p /etc/systemd/system/squid.service.d/

# and override the default number of file descriptors
cat >/etc/systemd/system/squid.service.d/override.conf << EOL
[Service]
LimitNOFILE=65535
EOL

# switch to openssl based squid
update-alternatives --set squid /usr/sbin/squid-openssl

# finally reload the systemd
systemctl daemon-reload

If you have installed previous version of Squid 7 from this repo then please run sudo apt-get update && sudo apt-get upgrade. Please also check that your current squid.conf file from previous version is not overwritten.

Note

Once again, all scripts mentioned in this tutorial can be downloaded from our GitHub repository. The same version of Squid is used in fully configured web filtering virtual appliance available at our site.