Squid on Ubuntu

Pre-Built Binary Packages

Packages available for Squid on multiple architectures.

  • Maintainer: Luigi Gangitano


Bug Reports: https://bugs.launchpad.net/ubuntu/+source/squid3

  • {i} Ubuntu 12.04 (Precise) or newer.

Install Procedure:

 aptitude install squid


Bug Reports: https://bugs.launchpad.net/ubuntu/+source/squid3

  • {i} Ubuntu 11.10 (Oneiric) or older.

Install Procedure:

 aptitude install squid3


(see Debian)

Many versions of Ubuntu and Debian are routinely build-tested and unit-tested as part of our BuildFarm and are known to compile OK.

  • /!\ The Linux system layout differs markedly from the Squid defaults. The following ./configure options are needed to install Squid into the Debian / Ubuntu standard filesystem locations:

--prefix=/usr \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid \
--datadir=${prefix}/share/squid \
--sysconfdir=/etc/squid \
--with-default-user=proxy \
--with-logdir=/var/log/squid \

Plus, of course, any custom configuration options you may need.

  • {X} For Debian Jesse (8), Ubuntu Oneiric (11.10), or older squid3 packages; the above squid labels should have a 3 appended.

  • {X} Remember these are only defaults. Altering squid.conf you can point the logs at the right path anyway without either the workaround or the patching.

As always, additional libraries may be required to support the features you want to build. The default package dependencies can be installed using:

aptitude build-dep squid

This requires only that your sources.list contain the deb-src repository to pull the source package information. Features which are not supported by the distribution package will need investigation to discover the dependency package and install it.

  • {i} The usual one requested is libssl-dev for TLS/SSL support.

Init Script

The init.d script is part of the official Debain/Ubuntu packaging. It does not come with Squid directly. So you will need to download a copy from https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pkg-squid/pkg-squid3.git;a=blob_plain;f=debian/squid.rc to /etc/init.d/squid

Compile on A basic Ubuntu Server


Squid can be built on a basic Ubuntu basic Server and it seems like an enterprise OS to me. The only dependencies are "build-essential" and "libltdl-dev" for squid to run as a forward proxy.

sudo apt-get install build-essential libltdl-dev

For more then just forward proxy like ssl-bump or tproxy We need a bit more testing.

Latest squid 3.3.8 builds and runs on ubuntu server 13.04.


CategoryKnowledgeBase SquidFaq/BinaryPackages

KnowledgeBase/Ubuntu (last edited 2015-09-09 19:46:37 by Amos Jeffries)