【发布时间】:2015-03-05 06:20:12
【问题描述】:
我在 Ubuntu 上安装了 PHP、MySQL、apache 和 phpmyadmin。当我尝试通过浏览器 phpmyadmin 打开时出现此错误
phpMyAdmin - 错误
缺少 json 扩展名。请检查您的 PHP 配置。
有很多类似的线程,我已经尝试了很多其中提供的解决方案,但没有一个可以帮助我解决这个问题。首先我尝试安装这个扩展,比如sudo apt-get install php5-json,结果就是这样
sudo apt-get install php5-json
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-json is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
javascript-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
显然我有最新版本的 php5-json - php5-json is already the newest version.
这是我的 Ubuntu 版本
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
但我不知道如何修复错误?
【问题讨论】:
标签: mysql ubuntu phpmyadmin