Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

uname -a

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

Version:

cat /proc/version

Result:Linux version 2.6.18.8-x86_64-linode10 (root@build.linode.com) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP Tue Nov 10 16:29:17 UTC 2009

Lsb-release:

lsb_release -a

Result:

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

So What is it Debian or ubuntu?

UPDATE:

cat /etc/issue:

Result:

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, c0dev Apr 16 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 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 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 at 19:41

2 Answers 2

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
1  
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 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 at 15:51
1  
@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 at 16:38
1  
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 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 at 18:56

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