To install a PHP command:
sudo apt-get install libapache2-mod-php5 php5
The following error occurred: Resolves this issue as per scenario one.
A from:http://cache.baiducontent.com/c?m=. 9f65cb4a8c8507ed4fece763105392230e54f73260878e482a958448e435061e5a31b5ed6c3510728992613441fe1307aea72b72350020aa99cc954ad Fa6922f288f2c377a0b8636489546f1df037881769f0dfeae69f0bb832593df93948f4352ba44050c97f1fb1840499b38b15526e3d78e48644811caaa 7125e8590679c47f57b636afa26b3b1081879d0b0a846a8c364780af44e36205b562f35f5b7904b74cc0590c7067f74f56e8444c13939b5e &p=cb6ac716d9c152b508e2947f0c088b&newp=9f6ec64ad4934eaf59ecd536420dc1231610db2151d6d214&user=baidu &fm=sc&query=e%3a+sub-process+/usr/bin/dpkg+returned+an+error+code+%281%29&qid=98e986c6000dc338 &p1=1
sub-process /bin/returned An error code (1) Solution
Software version:
Operating system: ubuntu10.04
Kernel version: Linux version 2.6.32-41-generic
Directory:
1. Error
2. Workaround
1) Programme one
2) Programme II
3) Programme III
3. References
1. Error
pkg:warning:files list file for package ' Tex-common ' missingdpkgwhen using the Apt-get Installation tool: Error processing tex-com Mon (--configure): subprocess installed post-installation script E: usr/dpkg returned An error code (1)
2. Solution
1) Programme one
Cd/var/lib/, here: sudo apt-get--reinstall tex-common
[1] This scheme is derived from This approach may cause a large warning to appear when installing software.
2) Programme II
cd/var/lib/, This error can also be resolved. Don't know for a moment whether it will cause other errors.
3) Programme III
sudo apt-get purge tex-commonsudo apt-get install Tex-common
This scheme is actually to remove the Tex-common after http://askubuntu.com/questions/25693/dpkg-behaving-strangely
Install the PHP switch