MENU

环境部署错误

Ubuntu 更新源错误的一些解决办法

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来进行源更新。

阅读全文