4

I'd like to know which Ubuntu distro is installed on my laptop. I know that it is Precise Pangolin, but is it Xubuntu, Lubuntu, plain Ubuntu or something else?

When I run the usual lsb_release -a command, it says "Ubuntu", but running the same command after having booted from a Lubuntu installation USB-stick gives the same answer, so that is obviously not the answer.

Is there another command that will tell me the answer? (Or some other means?)


P.S. The GUI settings have been changed, so I cannot simply identify the look of the desktop visually.

P.P.S. I found several questions on this topic, but they all seem to answer the question which version of Ubuntu is installed. Note that this is not what I'm asking for.

zrajm
  • 2,766

1 Answers1

3

The answer may not be totally straightforward because after the system is installed you can mix-and-match different components, including the desktop environment, applications etc. Everything is installed from the common repository so with time it may be difficult to tell what "flavor" of Ubuntu it is.

For example, on my laptop I used to have Ubuntu with Unity, but with time I replaced Unity with KDE and removed most of the default applications. Would you still consider it Ubuntu or is it Kubuntu now?

So maybe a better question to ask is "what distro was originally installed on the machine?"

On 12.04 I think you can check that with

cat /etc/apt/sources.list|grep cdrom

At some point in 13.x series the format of files in /etc/apt has changed, so the above doesn't work anymore, but I think you can find some clues by doing

cat /var/log/installer/media-info

See this question for more details

Sergey
  • 44,353