phpMyAdmin - 错误缺少 json 扩展名

phpMyAdmin - Error The json extension is missing

我已经在 Ubuntu 上安装了 PHP、MySQL、apache 和 phpmyadmin。当我尝试通过浏览器打开 phpmyadmin 时出现此错误

phpMyAdmin - Error

The json extension is missing. Please check your PHP configuration.

有很多类似的帖子,我尝试了很多他们提供的解决方案,但没有一个能帮助我解决这个问题。首先,我尝试像 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"

但是我不知道如何解决这个错误?

检查来自此 link 的最后一条消息:Ubuntu Forum Thread: dpkg: javascript-common error

下一步安装 "javascript-common" 包,下一个 json 包。