Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

When building a patched kernel from Ubuntu kernel git repositories how do I change the version numbers so that the resulting kernel package has the following properties:

  1. Installs files in /boot/ which are named differently than the current official kernel on which it is based, and thus do not conflict.
  2. Appears "newer" than the current official kernel on which it is based, so it is automatically selected at boot time.
  3. Appears older than the next official kernel release, so that it will be replaced when there is a kernel update.
share|improve this question

Package versions come from the most recent changelog entry. So add a changelog entry, with dch -i. The best way to ensure the version will be lower than the next official upload, is to just append something to the end of the previous version, like +local1.

share|improve this answer
Does not work. The kernel.git does not include a debian/changelog so "dch -i" fails. – Alistair Buxton May 13 '13 at 14:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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