dpkg:不可恢复的致命错误(缺少 'apache2-bin')
dpkg: unrecoverable fatal error ('apache2-bin' is missing )
只是尝试通过终端安装 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)
并得到这个错误??
尝试重新安装 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
只是尝试通过终端安装 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)
并得到这个错误??
尝试重新安装 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