我已成功将我的 AWS EC2 实例升级到 Ubuntu16.04 并想从 ondrej/php 安装 php7.2问题是,过去 2 个小时我一直在尝试此操作,但无济于事。我已经运行了 apt-get update,每次我这样做时,它都无法连接到 ppa.launchpad.net (91.189.95.83)。它会超时,我无法获得http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease# apt-get updateHit:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial InReleaseHit:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Err:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed outFetched 109 kB in 2min 0s (909 B/s) Reading package lists... DoneW: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/xenial/InRelease Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed outW: Some index files failed to download. They have been ignored, or old ones used instead.我试过 wget -O /dev/null http://ppa.launchpad.net/ondrej/php/ubuntu/dists/xenial/InRelease它可以下载它。我试过 ping 91.189.95.83 并且它有效。我只是无法执行 apt-get update 和随后的 apt-get install php7.2有没有人遇到过这个问题并设法解决了它?
- 2 回答
- 0 关注
- 570 浏览
添加回答
举报
0/150
提交
取消