亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法在 Ubuntu 16.04 上安裝 php7.2

無法在 Ubuntu 16.04 上安裝 php7.2

PHP
慕少森 2021-08-28 14:38:28
我已成功將我的 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 回答

?
夢里花落0921

TA貢獻1772條經驗 獲得超6個贊

使用系統設置> ubuntu 中的軟件更新更新它,更新后運行命令

sudo apt-get update


查看完整回答
反對 回復 2021-08-28
  • 2 回答
  • 0 關注
  • 607 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號