1、连接到ipv6的更新站点
root@iotshare:/etc/lighttpd/conf-available#sudo apt-get update
Get:1http://ppa.launchpad.net/ondrej/php/ubuntuxenialInRelease[23.9kB]
Hit:2http://archive.ubuntu.com/ubuntuxenialInRelease
Hit:3http://archive.canonical.com/ubuntuxenialInRelease
Get:4http://archive.ubuntu.com/ubuntuxenial-updatesInRelease[102kB]
Ign:1http://ppa.launchpad.net/ondrej/php/ubuntuxenialInRelease
0%[Connectingtosecurity.ubuntu.com(2001:67c:1562::16)]
可以强制使用ipv4来进行源更新。
apt-get -o Acquire::ForceIPv4=true update
2、公钥认证失败
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C
W: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
执行以下命令即可。
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C