解决update时key不可用的问题

debian/ubuntu在进行自动更新时候可能会遇到“There is no public key available for the following key IDs”的错误提示
可以通过以下命令解决:
apt-get install debian-keyring debian-archive-keyring
apt-key update

之后再运行
apt-get update && apt-get upgrade
即可!

apt-get update丢失key

一些主机商的源码包并非标准版本,在运行apt-get update时候会提示
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010

之类的错误
解决办法:
运行apt-get install debian-keyring debian-archive-keyring
apt-get update

即可。

source.list

一些VPS主机只提供精简版OS,这样子在apt-get一些程序时候会提示找不到等等错误
最好的解决办法就是更改/etc/apt下面的source.list文件
今天一台debian8 64bit mini版本的主机安装mariaDB时候折腾半天,总是提示“无法找到版本” 继续阅读“source.list”

letsencrypt

letsencrypt 目前提供免费的SSL证书,关于这项服务近一年来网上有很多介绍,

使用

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory certonly

继续阅读“letsencrypt”