What Version of Ubuntu am I Running?

(Today’s post is by guest author Erik Skålerud!)

Following up on Wesley’s post “What Version of CentOS / RedHat am I running?” and also to answer a twitter question from Barry Morrison – here’s how you quickly check what version of Ubuntu you’re running.

Both of the following methods should give you identical results.

Method #1

lsb_release -a

The result should be similar to this depending on your version/release:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:        10.04
Codename:       lucid

Method #2

cat /etc/lsb-release

Result (again, depending on version/release):



  1. Martin

    April 17, 2012 at 6:34 am

    And is that 32-bit or 64-bit?


    • pauska

      April 18, 2012 at 12:46 am

      I would imagine that it’s the same across platforms, but I can’t test it as we’re a fully 64bit shop here.


  2. peanuts

    May 29, 2012 at 1:01 am

    Why does it spit out the message ‘No LSB modules are available.’. Also it appears that the command lsb_release -s doesn’t return a summary but rather the same message.


    • pauska

      May 30, 2012 at 1:42 am

      It’s because you don’t have any LSB modules installed. They are implemented in Debian/Ubuntu by the lsb-* metapackages.

      Honestly – I’ve never met anyone who uses the LSB packages on DEB-based systems. From what I can tell, it’s more common on RPM-based distributions as it utilizes RPM, which is alienated on Debian/Ubuntu.

      lsb_release -s gives a summary of the modules installed, not a summary of your operating system.


Leave a Reply

Follow TheNubbyAdmin!

follow us in feedly

Raw RSS Feed:

Contact Me!

Want to hire me as a consultant? Have a job you think I might be interested in? Drop me a line:

Contact Me!

Subscribe via Email

Your email address is handled by Google FeedBurner and never spammed!

The Nubby Archives

Circle Me on Google+!

Photos from Flickr

Me on StackExchange

The IT Crowd Strava Group

%d bloggers like this: