6:21 - Saturday, 19 April 2014

What’s The Significance Of “-0ubuntu1″ At The End Of A Package Version String?

Many packages built for Ubuntu seem to have a “-0ubuntu1″ suffix (or, more generally, -XubuntuY). For example, the version string for a bleeeding-edge package from the nova project looks like:


I understand that 2011.2 is a major version, and bzr663 refers to revision 663 in the bzr repository, but what is the meaning associated with 0ubuntu1?

Packages are versioned in a pattern like -. In this case, the upstream version is 2011.2~bzr663 & the debian revision is 0ubuntu1.

Normally in Debian, the revisions are just numbers such, but for Ubuntu, the ubuntu1 following the revision indicates that there are source changes to that Debian revision.
0ubuntu1 is a special case, as it’s used as a revision that indicates that it’s not based on any Debian package of that upstream version (since there wouldn’t be a debian revision 0).

This is common when the Ubuntu package has been upgraded to a new upstream version ahead of Debian.