Привет! Я пытаюсь установить почтовый сервер на своем компьютере с Ubuntu 13.10, у меня установлен сервер LAMP и он отлично работает, я хочу, чтобы мой компьютер мог отправлять электронные письма (работая в качестве сервера), поэтому я решил установить sendmail
sudo apt-get install sendmail
, однако, при попытке доступа к libssh2-php я выдал ошибку. Я удалил libssh2-php и попытался переустановить, но при этом выдает следующую ошибку
$sudo apt-get install libssh2-php
`Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libssh2-php
0 upgraded, 1 newly installed, 0 to remove and 66 not upgraded.
Need to get 0 B/28,6 kB of archives.
After this operation, 121 kB of additional disk space will be used.
Selecting previously unselected package libssh2-php.
(Reading database ... 291773 files and directories currently installed.)
Unpacking libssh2-php (from .../libssh2-php_0.11.3-0.1build2_amd64.deb) ...
Setting up libssh2-php (0.11.3-0.1build2) ...
Creating config file /etc/php5/conf.d/ssh2.ini with new version
cp: cannot create regular file ‘/etc/php5/conf.d/ssh2.ini’: No such file or directory
dpkg: error processing libssh2-php (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libssh2-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
I ' Я не уверен, что если y создаст каталог /etc/php5/conf.d/ssh2.ini, который он не может найти ... , однако я нашел каталог conf.d на моей машине, он расположен в
/etc/php5/cli/conf.d
Я думал о перемещении каталога, но боюсь, что другие вещи перестанут работать, потому что они работают на /etc/php5/cli/conf.d
Запуск sudo dpkg --configure -a
возвращает:
Setting up libssh2-php (0.11.3-0.1build2) ...
Creating config file /etc/php5/conf.d/ssh2.ini with new version
cp: cannot create regular file ‘/etc/php5/conf.d/ssh2.ini’: No such file or directory
dpkg: error processing libssh2-php (--configure): subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing: libssh2-php
Кто-нибудь может мне помочь ??
TX заранее
Как работа вокруг:
sudo mkdir -p /etc/php5/conf.d/
sudo apt-get install libssh2-php