安装 phpmyadmin 时出现以下错误
E: Sub-process gzip returned an error code (100)
E: Prior errors apply to /var/cache/apt/archives/php5-gd_5.4.6-1ubuntu1.2_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/php5-mysql_5.4.6-1ubuntu1.2_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/dbconfig-common_1.8.47+nmu1_all.deb
E: Prior errors apply to /var/cache/apt/archives/libmcrypt4_2.5.8-3.1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/php5-mcrypt_5.4.6-0ubuntu1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/phpmyadmin_4%3a3.4.11.1-1_all.deb
debconf: apt-extracttemplates failed:
dpkg: warning: 'sh' not found in PATH or not executable
dpkg: warning: 'rm' not found in PATH or not executable
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 3 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
答案1
你打算如何安装它?请详细说明。顺便说一下,你可以尝试LAMPP 或 XAMPP。
为了轻松安装,您可以尝试以下操作:
Then, type this:
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
/opt/lampp/lampp 启动
您现在应该在屏幕上看到类似这样的内容:
正在启动 XAMPP 1.8.1... LAMPP:正在启动 Apache…… LAMPP:正在启动 MySQL…… LAMPP 已启动。
<http://localhost
如果一切顺利,您将看到一个橙色屏幕,其中所有软件都已安装,并且 PHPMYADMIN 位于底部。