无法添加 PPA:'ppa:ondrej/php5-5.6' [英] Cannot add PPA: 'ppa:ondrej/php5-5.6'

查看:28
本文介绍了无法添加 PPA:'ppa:ondrej/php5-5.6'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 机器中将我的 php 5.5.9 更新到 5.6.

I'm trying to update my php 5.5.9 to 5.6 in an Ubuntu machine.

但是当我跑步时:

sudo add-apt-repository ppa:ondrej/php5-5.6

我得到:

Cannot add PPA: 'ppa:ondrej/php5-5.6'.
Please check that the PPA name or format is correct.

我该如何解决这个问题?

How can I fix this?

我跑了:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5

但是当我跑步时:

php5 -v

我仍然得到 php 5.5.9:

I still get php 5.5.9:

PHP 5.5.9-1ubuntu4.20 (cli) (built: Oct  3 2016 13:00:37) 

推荐答案

先添加正确的ppa,做以下操作

add the right ppa first, do the following

  1. sudo add-apt-repository ppa:ondrej/php
  2. sudo apt-get 更新
  3. sudo apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip

我在安装 php5.6 时遇到了同样的问题,然后我执行了上述步骤.

i had the same issue in installing the php5.6 then i did the above steps.

这篇关于无法添加 PPA:'ppa:ondrej/php5-5.6'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆