0

I went to ubuntu's main site and downloaded the latest LTS version 11.04.

Now I'm trying to install varnish on it, and following the steps on the downloads page for Ubuntu I added the new repo but it has /natty/ in the url, and when I try and to an apt-get update I noticed there is a 404 error since that url doesn't exist.

I see they only have this distro's with packages:

http://repo.varnish-cache.org/ubuntu/dists/

Its LTS one of these, or is LTS considered Natty or ?

Jorge Castro
  • 71,754
Blankman
  • 8,275

3 Answers3

5

The current LTS is version 10.04 - not 11.04.

The repo you have indicated only has packages for 10.04.

However - you dont need the external repository in your question. You also dont need to reinstall the LTS unless you want the 5 years support rather than the 18months for Natty.

To install varnish:

sudo apt-get install varnish

i.e. you don't need to reinstall the LTS.

Version 3 on varnish is packaged for 11.10 which is to be released in a couple of weeks (at the time of writing this).

Thus - three choices -

  1. wait a couple of weeks and upgrade to 11.10
  2. install the LTS now and add the varnish-cache repo
  3. force an upgrade to the 11.10 beta immediately to help out testing i.e.

Linked Question:

  1. How do I upgrade to the development release (aka. Ubuntu+1)?
fossfreedom
  • 172,746
  • well I did apt-get -s install varnish and it shows version 2.1.4 and I want the latest stable which is 3.0.1 – Blankman Sep 30 '11 at 20:29
  • can't I just add the repo and package? or there are issues with that, I don't get it :) – Blankman Sep 30 '11 at 20:45
  • 1
    The repo doesnt have a natty version - there are ways to "force" an install - but you usually get into major packaging issues. The recommended way is to install from the standard repos' or via a PPA - I havent found a PPA with v3 (v3 only came out at the end of August). – fossfreedom Sep 30 '11 at 20:48
  • I see ok, thanks then I guess I'll try the upgrade. – Blankman Sep 30 '11 at 20:57
  • wait, so the people at varnish created a package for a yet to be released os? that's interesting! – Blankman Sep 30 '11 at 20:58
  • Probably not - its open-source software, so its likely the good folk at either debian/or the oneiric devs themselves have recompiled to make it easier for 11.10 to pull in a version that installs correctly. – fossfreedom Sep 30 '11 at 21:01
  • so once I do this upgrade, when the official is release, I can update then again right to be more stable? – Blankman Sep 30 '11 at 21:43
  • 1
    just keep on updating - you will automatically be on the latest stable version. – fossfreedom Sep 30 '11 at 21:57
  • didn't work, doing an apt update I got: Failed to fetch http://repo.varnish-cache.org/ubuntu/dists/oneiric/varnish-3.0/binary-i386/Packages 404 Not Found – Blankman Oct 01 '11 at 01:15
  • ok - you have now upgraded to 11.10? Then remove (from software sources) the varnish-cache repo. You can now install varnish - in the standard repositories it is version 3.0.1. – fossfreedom Oct 01 '11 at 08:06
0

To install Varnish on Ubuntu

sudo apt-get update; apt-get install curl nano
sudo curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
sudo echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0" | sudo tee -a /etc/apt/sources.list
sudo apt-get update; apt-get install varnish
fossfreedom
  • 172,746
0

See https://wiki.ubuntu.com/Releases, Ubuntu 10.04 is the current LTS version. 11.04 is the current supported stable version for which support will end in October 2012. The 10.04 LTS version is supported till April 2015 (for servers only, desktop is supported till April 2013).

Lekensteyn
  • 174,277