首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么不能使用ppa:ondrej?

为什么不能使用ppa:ondrej?
EN

Ask Ubuntu用户
提问于 2019-01-23 08:00:50
回答 2查看 21.6K关注 0票数 4

我想使用ondrej来升级ubuntu服务器中的php版本。我已经上网了。

代码语言:javascript
运行
复制
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php

我试着犯了一个错误:

代码语言:javascript
运行
复制
Cannot add PPA: 'ppa:ondrej/ubuntu/php'
'ondrej' user or team does not exist

我尝试在命令中使用-E,错误是相同的。

关于代理设置,我不太明白。我不知道如何根据这里中的答案调整设置

我也试过这个:

代码语言:javascript
运行
复制
RUN apt-get -y install locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN add-apt-repository -y ppa:ondrej/php

但是结果相同,错误不能添加ppa:ondrej

谢谢

EN

回答 2

Ask Ubuntu用户

发布于 2019-11-12 14:53:07

显然,这是DNS的一个问题,或者服务器故障,因为您发布的命令现在已经成功运行。

代码语言:javascript
运行
复制
sudo add-apt-repository ppa:ondrej/php

更新后,sudo apt install php安装了最新的PHP (目前为7.3)

票数 1
EN

Ask Ubuntu用户

发布于 2019-01-23 09:55:06

也许问题是由

  • 你的地区(语言等)
  • 你的电脑的互联网连接
  • 一些其他安装了PPA或程序包

我尝试使用一个LiveUbuntu16.04.1LTS,并且可以添加存储库ppa:ondrej/php

有一个警告:“非UTF-8语言环境破坏了添加-apt-存储库。”还有一条小贴士。见下文。

代码语言:javascript
运行
复制
ubuntu@ubuntu:~$ sudo add-apt-repository ppa:ondrej/php
 Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions
 are included. Only Supported Versions of PHP
 (http://php.net/supported-versions.php) for Supported Ubuntu Releases
 (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life
 PHP versions or Ubuntu release, they won't be provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see 
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmppiurqcxa/secring.gpg' created
gpg: keyring `/tmp/tmppiurqcxa/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmppiurqcxa/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1112174

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档