How do I sign the Ubuntu Code of Conduct?

In order to submit patches and items to certain projects as well as qualify to run as a moderator of Ask Ubuntu, I need to sign the Code of Conduct.

How do I do this?


It is made very easy to sign the Ubuntu Code of Conduct

Launchpad offers a step by step guide to do so:

https://launchpad.net/codeofconduct *

*Note that you will only see links to the codes there if you have already signed it

This will open the following page:

enter image description here

All you have to do is following the steps outlined.

  • The first step is not necessarily related to signing the conduct but of course you need a launchpad account first, and you also need to create and upload a PGP key to later sign your agreement.
  • Download the Code of Conduct.
  • Sign it!

You will be guided through all steps you may need to succeed. There are even popups for additional help in case you get stuck.

Once you have done all (should not take you more than 5 minutes) you will hopefully never have to do this again.

Of course you will also be able to withdraw your signature any time.


First, make a PGP key as outlined here.

Then, download a copy of the code of conduct from here.

Then, Read the code of conduct. You aren't signing a document with legal standing, but you are signing something that will affect the opinion of your fellow community members, and if you don't agree with it, then don't sign it. Then, open a terminal and run the following:

gpg --clearsign UbuntuCodeofConduct-1.1.txt

That will create a file along the lines of UbuntuCodeofConduct-1.1.txt.asc.

Open that file in a text editor and copy it.

On the Ubuntu Code of Conduct page, click "Sign it!" then paste into the textbox. Click "Continue". Congratulations, you've signed the Ubuntu Code of Conduct!


Although the answers given already are great in detail, I'd like to add one of my own. There is a tool that automates the process (including generating a PGP Key): The Code of Conduct Signing Assistant. There's a PPA available and also a separate .deb file.

It guides you through the whole process, so you just have to follow the steps and in the end you'll have signed the Ubuntu Code of Conduct.

Disclaimer: I'm the author of this tool.

The Code of Conduct Signing Assistant