According to BuildYourOwnKernel there are two ways to get the source code:
apt-get
- Is apt-get signed by the Ubuntu team?
- I mean, will my computer verify the signature when I download it?
- Is there a way I can verify myself the signature with an alternative method?
git
Git source code is not signed.
- Is there a place where I can find the signature?
- I can see that git tags are signed, but I can't get the public keys and neither can I verify that these public keys are secure (are they signed by the Ubuntu team?)
Well, the dsc file is signed and contains hashes of the files to be downloaded:
So a signed dsc file with checksums of the tarballs in it ~ closest you'll get to signed source code.
It does try.
apt-get
does attempt to verify it:But in my case it didn't succeed because I hadn't imported the corresponding key yet. The dsc files are usually signed by the developer who created it, and AFAICT there is no single place where all such keys are listed. The various Ubuntu developers are members of various groups on Launchpad, and the Launchpad profiles of the developers should list their GPG keys. For example, see the Ubuntu Kernel Uploaders team, or the combined Ubuntu Developers team (which in turn includes many other teams).
In this specific case, the signer is Canonical employee Stefan Bader. You can fetch the key from the Ubuntu keyserver, but you might want to do so using HKPS.
The
dscverify
tool can be used for that.Well, going by Stefan Bader's or Andy Whitcroft's (who seems to have signed this tag, for example) keyserver listings, yes.