Welcome to the second session on packaging!
This session will continue on the adventures of packaging: Ubuntu Packaging for Launchpad PPAs (Packaging: Part 2)
This session requires far less steps than the first session which covered the entire creation of a standalone .deb
However, all the packaging requirements for the first session still apply, as does the
dh_make
command.The key difference between creating a standalone .deb and uploading to a PPA are that you do not upload a standalone Debian file to the PPA.
After you have installed the package
dput
, you will need to create its config file for the user if you wish to use SFTP or SSH-tunneled uploading. For 9.10 and later, you can use a different method.In order to do this, you will need to have imported your PGP key that you created earlier into Launchpad
On your user info page, there is a section called “OpenPGP Keys”. Click the yellow pencil icon next to that field.
You will need to check the email address you have registered for Launchpad for further instructions on finishing the import
Go to the received email, and copy the text between the lines
-----BEGIN PGP MESSAGE-----
and -----END PGP MESSAGE-----
The content will be decrypted, and you will need to follow the instructions in the decrypted message in order to finish importing your PGP key.
However, you may need to sign the Ubuntu Code of Conduct. Instructions for how to do this are on Launchpad’s site.
Use the passphrase you used when you created the key
After creating the PPA on Launchpad and accepted all terms of them, and also after importing the PGP key, we can continue.
[my-ppa] fqdn = ppa.launchpad.net method = ftp incoming = ~<your_launchpad_id>/<ppa_name>/ubuntu/ login = anonymous allow_unsigned_uploads = 0
You may leave the login as
anonymous
but its recommended you use your own launchpad ID in place of anonymous
[addgpg-apt] fqdn = ppa.launchpad.net method = ftp incoming = ~addgpg-apt-developers/ppa login = trekcaptainusa-tw allow_unsigned_uploads = 0
If you followed the instructions through the first session, the procedure is similar to building the standalone deb
if you did not yet build the program into a .deb from the first session, please disregard this next step.
If you built the program from the first session into a .deb, do the following in the directory that held the folder you unzipped/downloaded:
rm packaging-test_1.0-*
Navigate into the source directory for the Debian package (the folder that contains any programs or source, and also has
debian
in it)If you created the .dput.cf file as I specified earlier, you will only need to use the text that was between the
[ ]
in this step.Then allow the program to run (NOTE: It may ask for your launchpad password so you can upload to the PPA)