phpMyAdmin - 错误缺少json扩展名

时间:2015-01-07 11:05:47

标签: mysql ubuntu phpmyadmin

我已经安装了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"

但我不知道如何修复错误?

1 个答案:

答案 0 :(得分:2)

查看此链接中的上一条消息:Ubuntu Forum Thread: dpkg: javascript-common error

接下来安装“javascript-common”包,下一个json包。