<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am trying to install Varnish 4 on Debian 7 as mentioned in this <a href="https://www.varnish-cache.org/installation/debian" target="_blank">link</a>.<br><br></div>But on doing <span style="font-family:monospace,monospace">apt-get install varnish. </span><span style="font-family:arial,helvetica,sans-serif">I am getting the below error.<br><br><font size="1"><span style="font-family:monospace,monospace">root@SPK-D-0476:/home/debraj# apt-get install varnish<br>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>Some packages could not be installed. This may mean that you have<br>requested an impossible situation or if you are using the unstable<br>distribution that some required packages have not yet been created<br>or been moved out of Incoming.<br>The following information may help to resolve the situation:<br><br>The following packages have unmet dependencies:<br> varnish : Depends: libc6 (>= 2.14) but 2.13-38+deb7u8 is to be installed<br>           Depends: libpcre3 (>= 1:8.35) but 1:8.30-5 is to be installed<br>           Depends: libvarnishapi1 (>= 4.1.0-1~jessie) but it is not going to be installed<br>E: Unable to correct problems, you have held broken packages.<br><br></span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font size="1"><font size="2">I also tried <span style="font-family:monospace,monospace">aptitude</span> but it is showing me the option to install <span style="font-family:monospace,monospace">varnish 3 </span>but not varnish 4</font><span style="font-family:monospace,monospace"><br><br>root@SPK-D-0476:/home/debraj# aptitude install varnish<br>The following NEW packages will be installed:<br>  varnish{b} <br>0 packages upgraded, 1 newly installed, 0 to remove and 40 not upgraded.<br>Need to get 527 kB of archives. After unpacking 1,636 kB will be used.<br>The following packages have unmet dependencies:<br> varnish : Depends: libc6 (>= 2.14) but 2.13-38+deb7u8 is installed.<br>           Depends: libjemalloc1 (>= 2.1.1) but it is not going to be installed.<br>           Depends: libpcre3 (>= 1:8.35) but 1:8.30-5 is installed.<br>           Depends: libvarnishapi1 (>= 4.1.0-1~jessie) but it is not going to be installed.<br>The following actions will resolve these dependencies:<br><br>     Keep the following packages at their current version:<br>1)     varnish [Not Installed]                            <br><br>Accept this solution? [Y/n/q/?] n<br>The following actions will resolve these dependencies:<br><br>     Install the following packages:              <br>1)     libvarnishapi1 [3.0.2-2+deb7u1 (oldstable)]<br>2)     varnish [3.0.2-2+deb7u1 (oldstable)]       <br><br>Accept this solution? [Y/n/q/?] <br><br></span></font></span></div><div><span style="font-family:arial,helvetica,sans-serif"></span></div><span style="font-family:arial,helvetica,sans-serif">Can some one let me know how can I install varnish 4 on Debian 7?<br><br></span></div><span style="font-family:arial,helvetica,sans-serif">Thanks,<br><br></span></div>