Archive for the ‘apt’ Category

Upgrade Debian over slow Internet connection

Thursday, October 14th, 2010

It was a moderately cold fall evening when I finally decided to do upgrade to Squeeze on my home computer. I have a 2MB line at home, sharing it with two other users. Apt-get dist-upgrade announced two and half hours of downloading at full speed and as it was evening I didn’t want to cut off other users. I have an 1GB optical line straight from my office to one of Debian mirrors, so I’ve decide to do downloading at work.

After short googling I’ve came accross this comment and this manual. The steps below are a combination of both.

  1. At home I’ve run the following command:
    apt-get --print-uris -y dist-upgrade | grep "^'" | gawk '{ print $1 }' | sed "s/'//g" > packages.lst
  2. Sent myself the packages.lst to the office with fast connection and there run the command below in an empty folder on a portable device. You can use -P option to specify the destination folder.
    wget -i packages.lst
  3. Back at home I’ve run:
    apt-get -o dir::cache::archives="/folder/on/portable/disc/" dist-upgrade

AptGet keys

Wednesday, July 25th, 2007

You can get the Debian key for the current year at:

http://ftp-master.debian.org/ziyi_key_<i>year</i>.asc

Currently, this will be ziyi_key_2005.asc.

You can grab the file with wget:

wget http://ftp-master.debian.org/ziyi_key_2005.asc

And then import it into your gpg keyring:

gpg –import ziyi_key_2005.asc

It’ll print the id of the key it imports for 2005, the ID will be 4F368D5D, and you should use that to check the key fingerprint. For the 2005 key, run:

gpg –fingerprint 4F368D5D

And you should see:

pub 1024D/4F368D5D 2005-01-31 Debian Archive Automatic Signing Key 2005 <ftpmaster@debian.org>
Key fingerprint = 4C7A 8E5E 9454 FE3F AE1E 78AD F1D5 3D8C 4F36 8D5D

You’ll need to find the fingerprints for newer keys elsewhere.

Once you’re sure this is the right key, you can tell apt to accept the key by issuing the command:

gpg –armor –export 4F368D5D | sudo apt-key add -

Mixing Ubuntu and Debian – Moonbase

Apt-get: WARNING: The following packages cannot be authenticated!

Sunday, March 25th, 2007

When upgraded form Sarge to Etch I started to notice a warning when using apt-get install from command line. The warning said:

WARNING: The following packages cannot be authenticated!

Googling with the warning text as a keyword turned out (Debian style!) simple solution:

apt-get install debian-archive-keyring
apt-get update

Nice to know that this is becouse Debian offers another level of safety in installing packages.

Little bit more about this topic is avilable at the origin of the above solution:
How to solve “The following packages cannot be authenticated” – The Changelog