dpkg:不可恢复的致命错误('apache2-bin'缺失)

时间:2015-08-19 08:12:34

标签: ubuntu apt dpkg

只需尝试通过终端安装php5-curl ....

parisa@parisa-VirtualBox ~ $ sudo dpkg --configure -a
parisa@parisa-VirtualBox ~ $ sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
 php5-curl
0 upgraded, 1 newly installed, 0 to remove and 571 not upgraded.
Need to get 0 B/27,3 kB of archives.
After this operation, 142 kB of additional disk space will be used.
Selecting previously unselected package php5-curl.
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'apache2-bin' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

并得到此错误??

1 个答案:

答案 0 :(得分:0)

尝试重新安装apache2包:

apt-get remove apache2 --purge
apt-get install apache2

另一个选项是将dpkg信息文件移动到某个临时位置:

sudo mv /var/lib/dpkg/info/apache2* /some/location/path

然后

sudo apt-get install apache2 --reinstall