user-avatar
Today is Friday
April 26, 2024

Tag: aptitude

June 24, 2010

GPG key error while doing apt-get update

by viggy — Categories: ubuntu — Tags: , , , 2 Comments

I had entered a new repository path in my sources.list file and hence I did

sudo apt-get update

However I got the following error:

W: GPG error: http://hudson.gotdns.com binary/ Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9B7D32F2D50582E6
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 10975893E549B1AC

When I looked for a solution on internet, I found the following solution to add the gpg key in my system.

NOTE: This can only be done by a root user, hence in Ubuntu, u will have to do sudo su before executing these commands.

root@vignesh-laptop:gpg --keyserver pgpkeys.mit.edu --recv-key 9B7D32F2D50582E6
gpg: requesting key E549B1AC from hkp server pgpkeys.mit.edu
gpg: key E549B1AC: public key "Launchpad yorba" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

This will request key from the server mentioned in –keyserver and display whose public key it is.

After this execute the following command. This will store the the gpg key in your system as a trusted gpg.

root@vignesh-laptop:/home/vignesh# gpg --armor --export 10975893E549B1AC | apt-key add -
OK

Now do
sudo apt-get update
to successfully update from the newly added repositories.

May 21, 2010

how to configure proxy for apt-get?

by viggy — Categories: linux, tech, ubuntu — Tags: , , , , , Leave a comment

To configure proxy settings for apt-get or aptitude or synaptic manager, all you have to do is edit the file, /etc/apt/apt.conf .

Here you have to mention the following 3 lines::

vignesh@vignesh-laptop:~$ cat /etc/apt/apt.conf
Acquire::http::proxy “http://username:password@host:port”;
Acquire::ftp::proxy “ftp://username:password@host:port”;
Acquire::https::proxy “https://username:password@host:port”;

Once you have made the above changes in /etc/apt/apt.conf , you will be able to use apt-get, aptitude or your synaptic manager through the proxy.

October 13, 2009

What does the alphabets on the left of aptitude search command output mean?

by viggy — Categories: Uncategorized — Tags: , , , Leave a comment

If you are reading the article as you were searching for an answer to the question mentioned in the subject, that means you are not a regular user of “man” command or you were not satisfied with the info given in man page of aptitude command. The following is an excerpt from the man page of aptitude command and hence dont bother to read if you have already gone through it thorughly. If you have not, then from next time spend more time reading man pages. They are the best tutorials.

However here is the excerpt:::

Unless you pass the -F option, the output of aptitude search will look something like this:

i apt – Advanced front-end for dpkg
pi apt-build – frontend to apt to build, optimize and in
cp apt-file – APT package searching utility — command-
ihA raptor-utils – Raptor RDF Parser utilities

Each search result is listed on a separate line. The first character of each line indicates the current state
of the package: the most common states are p, meaning that no trace of the package exists on the system, c,
meaning that the package was deleted but its configuration files remain on the system, i, meaning that the
package is installed, and v, meaning that the package is virtual. The second character indicates the stored
action (if any; otherwise a blank space is displayed) to be performed on the package, with the most common
actions being i, meaning that the package will be installed, d, meaning that the package will be deleted, and
p, meaning that the package and its configuration files will be removed. If the third character is A, the
package was automatically installed.

For a complete list of the possible state and action flags, see the section “Accessing Package Information” in
the aptitude reference guide. To customize the output of search, see the command-line options -F and –sort.