安装php的问题
Tofloor
poster avatar
lijulun
deepin
2019-07-08 22:36
Author
nelson@nelson-PC:~$ sudo add-apt-repository ppandrej/php
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)   
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/stable
nelson@nelson-PC:~$


Reply Favorite View the author
All Replies
avatar
neko
deepin
Ecological co-builder
Q&A Team
2019-07-08 23:51
#1
直接装个宝塔吧,用宝塔安装php
Reply View the author
avatar
shuzeyuxuan
deepin
2019-07-08 23:52
#2
deepin是基于debian的,不能直接使用ppa命令,
可以参照这篇教程中的 debian 部分
在 Ubuntu/Debian 下安装 PHP7.2
Reply View the author
avatar
shuzeyuxuan
deepin
2019-07-08 23:52
#3
https://www.mf8.biz/debian-install-php7-2/
Reply View the author
avatar
lijulun
deepin
2019-07-10 01:20
#4
感谢两位指教!
Reply View the author
avatar
lijulun
deepin
2019-07-10 01:20
#5
https://bbs.deepin.org/post/180396
直接装个宝塔吧,用宝塔安装php

宝塔适合线上,不适合开发。
Reply View the author
avatar
Feng Yu
deepin
2019-07-10 02:13
#6
https://bbs.deepin.org/post/180396
宝塔适合线上,不适合开发。

正好相反,这种玩具用到线上是作死
Reply View the author
avatar
lijulun
deepin
2019-07-10 18:03
#7
https://bbs.deepin.org/post/180396
正好相反,这种玩具用到线上是作死

大佬,能举下例子吗??我现在的一些项目都是用的宝塔面板
Reply View the author
avatar
lijulun
deepin
2019-07-10 18:03
#8
https://bbs.deepin.org/post/180396
正好相反,这种玩具用到线上是作死

大佬,能举下例子吗??我现在的一些项目都是用的这面板
Reply View the author
avatar
Feng Yu
deepin
2019-07-10 18:09
#9
https://bbs.deepin.org/post/180396
大佬,能举下例子吗??我现在的一些项目都是用的这面板

一时半会说不完,我只能告诉你,职业的运维绝不会这么干。我干了八年运维,还真没见过行业运维这么搞的,谁要这么搞绝对被同行鄙视到死
Reply View the author
avatar
wenzhizhong
deepin
2019-07-10 18:21
#10
直接安装一建包吧。
https://lnmp.org/

不然后面各种PHP扩展、各种依赖让你头疼。
还是以稳定性、易用性为重
Reply View the author
avatar
^9星守辰^
Moderator
2019-07-10 19:21
#11
deepin 源要直接编辑修改
Reply View the author
avatar
lijulun
deepin
2019-07-10 22:29
#12
https://bbs.deepin.org/post/180396
deepin 源要直接编辑修改

直接修改软件源,不用官方的吗?
Reply View the author