Updating repository lists and keyrings for Kali Linux on Amazon Web Services

I was recently launching an instance of Kali Linux (1.0.6 | 64-bit Amazon Machine Image (AMI) | Updated: 10/10/14) in Amazon Web Services and as the image only provides the Kali package repository (as per the description”bare-bones”) I was looking to install the complete system (apt-get install kali-linux-full) from the available packages.

However, on invoking the installation of the package from the repository I was presented with several response codes stating the repository list(s) could not be found and GPG invalid signatures.

In order to resolve the issue I replaced my list of current repositories (creating a backup first!) and included the below repository items into a new /etc/apt/sources.list file, installed all the necessary keyrings and updated the repository list.

cp /etc/apt/sources.list /etc/apt/sources.list.backup
echo "deb http://http.kali.org/kali sana main non-free contrib" >> /etc/apt/sources.list
echo "deb http://security.kali.org/kali-security sana/updates main contrib non-free" >> /etc/apt/sources.list
apt-get install kali-archive-keyring
apt-get update
apt-get install kali-linux-full

Now I was able to install the complete system for Kali Linux, so sit back and have a coffee this process may take a while!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s