Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I know Ubuntu is based on Debian but I would like to find out if I am running debian or ubuntu.


uname -a

Result:Linux test #1 SMP Tue Nov 10 16:29:17 UTC 2009 x86_64 GNU/Linux


cat /proc/version

Result:Linux version ( (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP Tue Nov 10 16:29:17 UTC 2009


lsb_release -a


Distributor ID: Debian
Description:    Debian GNU/Linux 5.0.10 (lenny)
Release:        5.0.10
Codename:       lenny

So What is it Debian or ubuntu?


cat /etc/issue:


Debian GNU/Linux 5.0 (So I can conclusively say it is debian)

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Heptite, Kevin Panko, Moses, Christian Woerz Apr 16 '14 at 13:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Ubuntu 4.3.3 – Ramhound Apr 14 '14 at 15:15
@Ramhound No, there is no Ubuntu 4.3.3. That bit means the kernel was built with Ubuntu's version of GCC 4.3.3. – tgies Apr 14 '14 at 19:08
I know that. Which begs the question why was Debian compiled with the Ubuntu version of gcc ( my guess it wasn't ) – Ramhound Apr 14 '14 at 19:41

Although Ubuntu is a fork of Debian, Debian is not a fork of Ubuntu.

So the fact that you see both means you are on Ubuntu.

share|improve this answer
No, it doesn't. lsb_release would indicate Ubuntu on Ubuntu. The only mention of Ubuntu you are seeing indicates that the kernel -- a custom build rather than a distro kernel -- was built with an Ubuntu version of GCC. User is on Debian. – tgies Apr 14 '14 at 19:10

You should trust lsb_release since both Debian and Ubuntu claim to be LSB compliant. In your example you are running Debian with an Ubuntu-compiled kernel (according to your /proc/version), that's why you see information about both distributions.

share|improve this answer
My bad, the Ubuntu part in the output of /proc/version refers to gcc not the kernel itself. – yorodm Apr 14 '14 at 15:51
@Ramhound: It isn't. If you check uname's output, the kernel version states it was made by Linode so it is them who are using Ubuntu tagged gcc's to do their work. Although my best guess is that the server is running under some virtualization technology like OpenVZ. – yorodm Apr 14 '14 at 16:38
I am inclined to agree with you that it is gcc compiled via ubuntu. However the distribution is actually Debian. The initial answer although it has upvotes, doesn't really have much backing and surely a ubuntu lsb_release will show ubuntu and not debian – Stevie G Apr 14 '14 at 18:50
If I run your test on one of my own servers I get Ubuntu Precise Pangolin running kernel Linux version 2.6.32-19-pve (root@maui) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Wed May 15 07:32:52 CEST 2013. This is a Ubuntu OpenVZ container running under Proxmox. – yorodm Apr 14 '14 at 18:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.