Previous | Next >

2. Installing packages from the repository

2.1. Preparing sources.list

You will want to add the following lines in /etc/apt/sources.list (or in a snippet file located in the directory /etc/apt/sources.list.d):

deb http://lcg-heppkg.web.cern.ch/lcg-heppkg/debian stable hep
deb-src http://lcg-heppkg.web.cern.ch/lcg-heppkg/debian stable hep

The second line above is optional, and needed only if you also wish to obtain Debian source packages with "apt-get source".

To use the repository for a distribution other than Debian "stable", substitute the appropriate distribution name for "stable" in the lines above. Currently supported distributions are "oldstable" (or "etch"), "stable" (or "lenny"), "testing" (or "squeeze"), "unstable" (or "sid"), and for Ubuntu users, "gutsy" and "hardy". Not all packages may always be available for all distributions.

After inserting the lines above into sources.list, run "apt-get update". You will see a warning message like this:

W: GPG error: http://lcg-heppkg.web.cern.ch stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F464E3D84061544D
W: You may want to run apt-get update to correct these problems

2.2. Verifying the archive signing key (optional)

If you want to be sure that the archive key that will be installed is the one you expect, not some trojan key, you should verify the key, as described here, before running any of the commands described below.

2.3. Installing the archive signing key

To install the archive key, run "aptitude install cern-archive-keyring". The following warning will appear:

WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  cern-archive-keyring

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No":

At the prompt, type Yes followed by ENTER. Then you will want to run "apt-get update" one more time to update APT's list of trusted repositories.

2.4. Installing packages

You are now free to install any packages you wish, for instance aptitude install geant4.

Previous | Next >