Azure 的 Ubuntu 12.0.4 无法安装 PHP5

Azure 的 Ubuntu 12.0.4 无法安装 PHP5

与 Azure 自己的这篇文章类似: http://www.windowsazure.com/en-us/manage/linux/common-tasks/install-lamp-stack/

我正在尝试在 Ubuntu 12.0.4 虚拟机上安装 PHP5。但是,安装 ssl-cert 失败。

$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up ssl-cert (1.0.28) ...
Could not create certificate. Openssl output was:
Generating a 2048 bit RSA private key
............................+++
...................................................................................................................+++
writing new private key to '/etc/ssl/private/ssl-cert-snakeoil.key'
-----
problems making Certificate Request
140320238503584:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:154:maxsize=64
dpkg: error processing ssl-cert (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 ssl-cert
E: Sub-process /usr/bin/dpkg returned an error code (1)

任何建议都值得感激。

答案1

对于遇到此错误的人,我仍然从 ssl-cert 包中收到此错误。但是,似乎 PHP5 包确实成功安装。我在安装其他 LAMP 包时也看到了此错误。网上没有太多资料可以帮助解决这个问题,我在 Amazon EC2 上没有遇到过这个问题

相关内容