[problem help] php7.3没了,php7.4缺少很多扩展
Tofloor
poster avatar
风不平
deepin
2024-09-10 15:28
Author

安装php7.4,发现之前用的php-xdebug和php-redis都没了。

想安装旧版本的php7.3,然后直接apt仓库里面没有。

根据网上搜索的先添加仓库 sudo add-apt-repository ppa:ondrej/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 89, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/beige
Reply Favorite View the author
All Replies
👿Deepin大护法👿
deepin
2024-09-10 17:00
#1

暂时使用docker

Reply View the author
neko
deepin
Ecological co-builder
2024-09-10 17:04
#2

add-apt-repository ppa不支持deepin的,虽然你可以伪装成Ubuntu。

Reply View the author
xysemies
deepin
2024-09-11 13:39
#3

deepin v23下docker-compose的安装和简单使用

我是搭配了 1panel.cn ,用起来超爽.
1panel.cn里面 可以装一堆版本的 php

Reply View the author
深蓝
deepin
2024-09-11 13:52
#4

在仓库中php7.4-xdebug是有的.
$ apt-cache search php-xdebug
php7.4-xdebug - Xdebug Module for PHP

php-redis没有, 用pecl安装:
sudo pecl install redis

Reply View the author