What does “NO_PUBKEY 40976EAF437D05B5” mean?

If you see this when you run “apt-get update” on Ubuntu, “apt” is unable to find the Ubuntu package repository’s key in it’s GPG keyring: Reading package lists… Done W: GPG error: http://us.archive.ubuntu.com precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 W: GPG error: http://security.ubuntu.com precise-security …

Continue reading ‘What does “NO_PUBKEY 40976EAF437D05B5” mean?’ »

How do I pin packages in APT?

You can tell APT to use a particular newer version of a package from the ‘testing’ Debian distribution (“jessie”) using APT package “pinning”. You’ll need to specify any dependent packages as well. For example, to run “graphite” from ‘testing’, create /etc/apt/preferences.d/graphite: Package: graphite-web python-django-tagging graphite-carbon python-whisper libc6 libc6-dev Pin: release n=jessie Pin-Priority: 900 Make sure …

Continue reading ‘How do I pin packages in APT?’ »

How do I make a Debian package?

To make a .deb package for use with Debian / Ubuntu: $ sudo apt-get install devscripts debhelper Rename the source tarball following the syntax package name_1.x.orig.tar.gz: $ mv go1.3.src.tar.gz go_1.3.orig.tar.gz Extract the tarball: $ tar xf go_1.3.orig.tar.gz Go into the source directory and create a “debian” subdirectory under it: $ cd go $ mkdir debian …

Continue reading ‘How do I make a Debian package?’ »