Agile software development using Kanban & Scrum. We code Flex & Ruby on Rails in Auckland, New Zealand.

  • Citrix XenServer: Debian APT Repo Public Key

    Citrix have a APT repository which provides a para-virtual kernel and some guest tools for linux guests on XenServer.

    The repo looks like this in /etc/apt/sources.list:

    deb     http://updates.vmd.citrix.com/XenServer/5.5.0/debian/ lenny main
    deb-src http://updates.vmd.citrix.com/XenServer/5.5.0/debian/ lenny main
    

    On a default deploy, the public key for the repo is obviously not added locally, which ends up throwing this kind of error during apt-get update:

    W: GPG error: http://updates.vmd.citrix.com lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 841D6D8DFE3F8BB2
    W: You may want to run apt-get update to correct these problems
    

    The fix is to add the Citrix public key:

    wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add -
    

    Which should result in a satisfying “OK” message on the console.