Tag Archives: Ubuntu

Fix PGP error NO_PUBKEY when apt-get updating

28 Oct

It is common to find that a  sudo apt-get update does not do a clean job because of a couple of missing public keys. You might get something of the type:

W: GPG error: <a href="http://ppa.launchpad.net">http://ppa.launchpad.net</a> trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F

Usually, it is possible to directly fetch the missing public key from a popular key server like Ubuntu’s:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys PUBKEY

… where PUBKEY is replaced by the right identifier in your warning message.

That is usually enough and concludes with gpg: Total number processed: 1

However, if the key is not found on the server, you might have to look for it yourself. For example, in the case of the following error:

W: GPG error: http://download.opensuse.org  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F2AA0B1E5EF8303B

… the missing key was not available on the Ubuntu key server. I had to first check what exactly the problematic source’s URL looked like, which you can do by either using your distribution’s updater’s GUI (for example, Muon Update Manager > More… > Advanced … > Configure software sources), or by finding it in /etc/apt/sources.list or /etc/apt/sources.list.d/. In my case, the URL was http://download.opensuse.org/repositories/home:/antonbatenev:/tox/xUbuntu_14.04/, which is where I navigated to in my Internet browser to find a Release.key file.

Once you have downloaded that key, you can use the following command to add it to your keyring:

sudo apt-key add Downloads/Release.key

(Make sure you replace Downloads/Release.key with the right path/name.)

Now, you should be able to re-run sudo apt-get update and not run into any warning!

LibreOffice 5.1 becomes “still”, time to upgrade

28 Jun

If you haven’t done so already, it is the right time to upgrade to the LibreOffice 5.1 branch given that, with the release of the 5.1.4 version a few days ago, this branch becomes the “still” (i.e. more stable and secure) branch. Plus, the 5.0 branch reached end of life back in May, which means there won’t be any security fixes any more.

The 5.1 branch brings exciting new features (full release notes here), including:

  • Improvements to formula wizard (Calc)
  • New commands to add rows and column (Calc)
  • New statistics dialogue for calculating regressions (Calc)
  • PNG export (Calc)
  • Many improvements to formula engine (Calc)
  • Reorganised mode selection (Impress)
  • New “equalise” command for shapes (Impress, Draw)
  • Restart counter from presenter console (Impress)
  • Four new transitions (Impress)
  • Import MathML from clipboard (Math)
  • Improved trend line (Chart)
  • New and improved import/export filters (which means better format compatibility)
  • Reorganised menus
  • Lots of sidebar improvements (new sidebar, reorganised items, new buttons and icons…)
  • Special characters in spelling dialogue

On an Ubuntu-based system, you can upgrade to 5.1 by using the following commands in a terminal.

If you already had a PPA installed, remove it. For example, for the 5.0 PPA:

sudo add-apt-repository --remove ppa:libreoffice/libreoffice-5-0

Remove LibreOffice entirely:

sudo apt-get purge libreoffice*

Add the new PPA:

sudo add-apt-repository ppa:libreoffice/libreoffice-5-1

Update your repository info:

sudo apt-get update

Finally, install LibreOffice from the new repository:

sudo apt-get install libreoffice

That’s it!

Note: If you are on Linux Mint, your LibreOffice version might be “pinned” and you will need to do a bit more to upgrade. See this post for example. You might also need to install re-install libreoffice-gnome for it to look right.