开发者社区> 问答> 正文

ubuntu 16安装php5找不到源

我已经安装好了php7, 但是需要同时用到 php5, 使用这个命令找不到  apt-get install php5 E: Package 'php5' has no installation candidate 大家是怎么在共存的呢?



求手工安装
系统 ubuntu
nginx 最新版
php7  php5,6 共存
mysql 5.6
不要一键包的..


别的都好了,就卡在php5.6搞不定.

展开
收起
cbiz100 2017-01-25 05:11:19 7697 0
2 条回答
写回答
取消 提交回答
  • 回 1楼(dongshan8) 的帖子
    我现在就照着你提供的网址操作,
    当我 apt-get update时, 它提示这样, 估计就失败了


    W: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu xenial Release' does not have a Release file.
    N: Data from such a repository can't be authenticated and is therefore potentially d_a_n_g_erous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden [IP: 115.28.122.210 80]

    -------------------------

    好了, 谢谢啦

    -------------------------

    回 3楼(dongshan8) 的帖子
    好了, 谢谢啦
    2017-01-25 13:41:48
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    楼主您好,

    这个帖子您曾看过吗?是否有效呢?

    http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04

    -------------------------

    回 2楼(cbiz100) 的帖子
    您好,

    您可以先尝试将配置文件 /etc/apt/apt.conf 里的关于阿里云的代理设置内容删除,

    之后再 apt-get update ,看是否会出现403的错误提示喔。

    -------------------------

    回 5楼(cbiz100) 的帖子
    您好,

    很高兴听到您已经解决了问题,

    同时,祝您春节愉快喔。
    2017-01-25 09:36:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
使用C++开发PHP7扩展 立即下载