安装 php 转

一 安装 php 命令:

sudo apt-get install libapache2-mod-php5 php5

出现了如下错误: 按照方案一 解决了此问题。

一下 from   http://www.cnblogs.com/eddy-he/archive/2012/06/20/2555918.html

sub-process /bin/returned an error code (1) 解决方案

软件版本:
  操作系统:ubuntu10.04
  内核版本:Linux version 2.6.32-41-generic

目录:
  1. 错误
  2. 解决方法
    1) 方案一
    2) 方案二
    3) 方案三
  3. 参考资料

1. 错误

  在使用 apt-get 安装工具时pkg: warning: files list file for package `tex-common' missingdpkg: error processing tex-common (--configure): subprocess installed post-installation script E: usr/dpkg returned an error code (1)

 

2. 解决方案

1) 方案一


cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
重新安装,在此为:
sudo apt-get --reinstall tex-common
 

  这个方案来源于[1]。这种方法可能会造成安装软件时出现一大片 warning 。

2) 方案二

cd /var/lib/也可以解决这个错误。暂时不知道会不会造成其他错误。

3) 方案三

sudo apt-get purge tex-common
sudo apt-get install tex-common

  这个方案其实就是将 tex-common 清除后http://askubuntu.com/questions/25693/dpkg-behaving-strangely

原文地址:https://www.cnblogs.com/jzxsunisland/p/4287806.html