improved ssh key retrieval

Instead of accepting all keys set the configured ones to .ssh/known_hosts.
apt package manager improvements

Use generic mirror mechanism for the sources and upgrade the installed
packages.