Debian Stable vs Ubuntu LTS for Server?

96,808

Solution 1

Well I don't see why people are making a fuss about the quality of the question. It's clearly a decision that lots of developers will want to weigh up before deploying. And there are clearly some differences that are very relevant to deploying each.


I think the prime consideration and comparison between debian stable and an Ubuntu LTS is security and general package updates.

Debian "stable" releases are supported for a year after the next stable release. So if a stable comes out every two years, and you started on a stable release right at its launch, you get three years of updates:

The security team tries to support a stable distribution for about one year after the next stable distribution has been released, except when another stable distribution is released within this year. It is not possible to support three distributions; supporting two simultaneously is already difficult enough.

You should note that the debian cadence is not guaranteed. Stable releases come out when they're ready. This could mean you get anywhere from 18 months to 18 years of support. This makes it very unpredictable as you won't know when you need to upgrade until you know when the next stable will be finalised.

Compare that to a Ubuntu LTS release, desktop updates are very similar but for the server applications and kernel, you get a mammoth 5 years of support, regardless of any new LTS releases in that time:

A new LTS version is usually released every 2 years. With the v12.04 Long Term Support (LTS) version you get 5 years support for both the Ubuntu Desktop and the Ubuntu Server. There is no extra fee for the LTS version; we make our very best work available to everyone on the same free terms.

This means you should be able to deploy the latest LTS on a box and not have to worry about it not getting security updates (for supported packages) for years and years. When you have more than a handful of servers, or just some applications that can't afford any downtime for testing upgrades, or just don't have the time to spend a day/week testing upgrades, Ubuntu has a large advantage over debian.

Solution 2

To answer your question about Professional/Production use I think there are several key elements that have been addressed but there is one point I feel that is extremely crucial.

Packages and Package Management

This is a key difference between Debian stable and Ubuntu LTS especially if your concerned about longevity, uptime, stability etc.

Ubuntu is released every six months and is based off of the Debian unstable branch which generally means overall newer and more up to date software but at the same time having the disadvantage of being considered basically "unstable" at least in an enterprise context.

Now the LTS release is based mostly on Debian Testing which in Debian terms "represents the state of the upcoming stable release before it is actually considered stable" and although Ubuntu puts a lot of time and effort into making regular and LTS versions as stable as possible after the packages have been pulled from there respective Debian branches, LTS is still based on the Testing branch which in turn is still considered by Debian in its own branch to be not quite ready for Production use or anything approaching mission critical.

And Ubuntu's community of developers simply cannot compete on the same scope or level of Debian which is possibly the largest communal based software ever created.

In basic terms this means Ubuntu LTS being based upon the Debian Testing branch and even with Ubuntus attempts to stabilize and polish their testing packages after they're pulled, does not equal the immense development and maturity of Debian stable and the packages thereof. Debian stable truly is the Golden Standard for rock solid stability.

Solution 3

I stumbled upon this thread whilst googling "ubuntu server stability issues" - searching for answers to my own concerns regarding the stability of Ubuntu server.

I have to admit that I'm a long term Ubuntu fan, particularly on the desktop (Since Breezy).

Box 1: "Fred"

I first deployed Ubuntu server 8.04 on a production machine that has low usage requirements; it's predominantly a "brochure-ware" level webserver with about 4/5 websites, which also acts as an offsite backup repository. Primary packages are Apache2, Mysql, Postgresql, PHP.

It's dual core, has 2 GB RAM, 2x 1GB HDD configured with mdadm as RAID1. Stability wise, it has been great except that it seems to die every 3-6 months for no obvious reason, despite combining through log after log.

I've kept this machine on 8.04, performing occasional updates.

Box 2: "Charlie"

Charlie has been running for a similar lifetime as Fred, and is used as an office based backup and media storage machine, office server monitoring node, network gateway for remote logins, wiki and virtualbox host. Primary packages are: Apache2, postgresql, mysql, PHP, webmin, samba and Virtual box - Non OSE (We needed the headless feature back when that wasn't supported in the OSE).

Hardware wise, Charlie is Quad core, with 8GB RAM, has about 10TB of storage, distributed across a number of sata and ide drives, some of the sata drives comprise a soft RAID5 array, we have a drobo connected over firewire, two external usb drives and another drobo due to be attached.

Charlie started on Ubuntu 8.04, has been upgraded periodically via dist-upgrade and is currently at 10.04.

Sadly, Charlie is as stable as drunk in a brawl.

Charlie has frequent kernel panics, OOM's and requires a reboot every 2-3 weeks. Combing through logs has me scratching my head.

To Summarise

I love Ubuntu server, it's familiar, relatively well laid out, I love aptitude (Which should be the default package manager IMHO, packages/apps such as UFW, Fail2Ban, Denyhosts, logwatch, logrotate etc make administration relatively simple.

But both Ubuntu server boxes have uptimes measured in weeks or months, if we're lucky, and yes, during that time we've changed the hardware and re-installed from scracth, tested the disks, tested the RAM.

By comparison, I have clusters of HP DL360 G5's, DL380 G5's, DL380 G6's where uptime is measured in years, sometimes, 1000's of days.

These are running CentOS - and it doesn't float my boat like UBuntu Server, but it seems so much more stable, yet I don't know whether that's the Hardware or the OS.

Just my two-pence worth.

Solution 4

Seeing ByteCode's answer, I thought I'd supply my anecdotal experience with Ubuntu LTS on a work server.

The box: AMD 1055t, 4GB ram, 4TB hardware raid5, enthusiast motherboard with mild overclocking. Lots of fans & the 4 raid drives are external & mounted to a large aluminum plate with copper as heat sink on other side.

Installed Ubuntu 10.04 LTS in 2011 I think. Might have been 2010. Never did a dist upgrade. Rarely if ever updated at all actually, as I didn't do it frequently enough and then dependencies got broken. It shutdown in September 2011 when San Diego's power went out for hours. Then next time was this year when I moved it into a cabinet.

My trick? Total neglect. Rarely updated & when I did, I used aptitude. Then we had 3 power outages in a row yesterday. Should have left it off the whole time, but the last time something went wrong with the HDD and ubuntu wouldn't boot. So new HDD time and I'm installing debian now, as from my reading, it would seem debian is better for install and forget.


edit / update 1.5 years later

Debian didn't install quite as easily as I'd like on my latest server, so I'm back on the latest Ubuntu LTS. Uptime would be much more awesome than 29 days but had to shut down to remove a couple failing drives from the zfs raid. Been running ubuntu for the work's fileserver for half a decade and it is rock solid. Not once can I point any blame at the OS. Heck, it even saved me when that aforementioned AMD system started having kernel panics from the RAM trying to go bad.

I haven't ever purchased windows server, but at least once a year, one of our Windows computers does an update and upon reboot, isn't quite the same again. Never had that with linux...

Solution 5

I am testing xen hypervisors for 2 years now and the general rule is newer kernel = more performance/stability. In that regard Ubuntu LTS is almost like Arch Linux with support. Debian worked fine with Intel/Nvidia, as soon as we got into testing AMD "hit the fan". Debian with xenkernel from testing still doesn't have a bugfix for AMD FX 81xx CPUs, i won't even talk about "stable" repo. Big community is good and all, but Canonicals responsiveness was better every time it was needed (may be conincidence).

I think in 3-4 more months there will be enough statistics for me to say decisevly, but i am convinced there will be a migration of all hypervisors to ubuntu server.

Share:
96,808

Related videos on Youtube

Sajjadd Hussain
Author by

Sajjadd Hussain

Updated on September 17, 2022

Comments

  • Sajjadd Hussain
    Sajjadd Hussain over 1 year

    Which is a better platform for a professional use server?

    Debian Stable or Ubuntu LTS?

    The third party software we plan to use, works on both. Which one is better on it own merits?

    Take into account things like the kernel (Ubuntu for example has its own custom kernel for servers), and other Ubuntu specific customizations.

    I keep switching back and forth, and I need to decide so I can recommend one or the other to a client. Right now, I think I am going to choose Debian Stable.


    Recently, I have had Ubuntu Server Edition 10.04.1 have a few strange issues...

    I have Ubuntu setup to do automatic updates via a simple script, and every few months or so, libapache2-mod-php5 gets removed because of conflicting packages... Thereby causing me to loose the php function of the web server.

    Debian Stable has not done anything like this.

    • Jorge Castro
      Jorge Castro over 13 years
      There's a package to do automatic updates for you without having package removal problems: askubuntu.com/questions/9/how-do-i-enable-automatic-updates/‌​…
    • Jeremy
      Jeremy over 13 years
      Nice question. [Sits back, waiting for the holy wars to begin]
    • RobotHumans
      RobotHumans over 13 years
      This one does cry flame-bait
    • Admin
      Admin almost 11 years
      I just set up Precise (12.04.x), which is Ubuntu LTS for a server for someone else. I ran into so many bugs like this: bugs.launchpad.net/ubuntu/+source/samba/+bug/967410 That haven't been fixed in over a year, that I decided to drop Ubuntu for server use, and go with either CentOS or Debian. The nice thing about Debian and Ubuntu is that they use apt, and most of the package names are the same. And why are people talking about Firefox/Iceweasel on a server? I don't even install X, much less a browser.
    • Admin
      Admin almost 10 years
      "professional use server" and "automatic updates" are contradictory ideas.
  • flo
    flo over 13 years
    It should also be mentioned that on a system that is easy to maintain and manage, there is a smaller likelihood of a system administrator making a mistake that compromises security or stability. In my estimate, sensible defaults, like you get with Ubuntu, are one of the major factors in security, given systems are configured by Humans. :-)
  • theTuxRacer
    theTuxRacer over 13 years
    I agree with Stefano and Oli: the long support period, along with well-configured defaults are a life-saver. I myself administer my office server which is a 10.04 ubuntu-server, and like the way it is configured. Also, I usually get good support, because of a high market-share that ubuntu has.
  • Arup Roy Chowdhury
    Arup Roy Chowdhury over 11 years
    Ubuntu kernel will, the LTS ones gets patched on need to use basis unlike others. To compare Ubuntu to CentOS is like comparing a Ford Pinto to a Chevy Camaro.
  • BigSack
    BigSack over 10 years
    Do you mean Ford Punto?
  • GTodorov
    GTodorov over 10 years
    Well said! Ubuntu is for unthusiasts, not for carrying your important business needs.
  • GTodorov
    GTodorov over 10 years
    I don't know why people even ask such questions... Ubuntu enthusiasts dream about impossible things.
  • DevRandom
    DevRandom almost 10 years
    Just a quick tip. Get a UPS.
  • Krista K
    Krista K almost 10 years
    Always have, always will. Mental note: on new server monitor UPS and set up graceful shutdown...
  • Vinicius Tinti
    Vinicius Tinti over 9 years
    Maybe it is too much stable. For huge data centers it makes difference but for a small one maybe the versatility overcomes stability. Debian packages a rock stable but rather old too.
  • justanoob
    justanoob almost 9 years
    Now it seems to me that Debian has LTS too. I don't know the details, therefore cannot compare it with Ubuntu.
  • The Onin
    The Onin over 8 years
    @BigSack Punto is from Fiat man.
  • Arup Roy Chowdhury
    Arup Roy Chowdhury over 8 years
    The fact that Ubuntu is deployed in mission critical applications around indicates its stability and testing but most important, its the HWE. In case of Debian, forget about using an updated package or hardware.
  • Franklin Yu
    Franklin Yu about 6 years
    @FrankScience You mean the LTS project? From the description, there doesn't seem to be "LTS release", but instead "LTS project" for every release.
  • abu_bua
    abu_bua over 5 years
    From which source did you get 10 years of support?
  • ericcurtin
    ericcurtin over 5 years
  • abu_bua
    abu_bua over 5 years
    ubuntu-distro-info -raf -yeol is not updated!?
  • ericcurtin
    ericcurtin over 5 years
    Hmmm, maybe this hasn't got updated yet. This was announced fairly recently.