You just need to do:
sudo dpkg-reconfigure -plow debconf
It's not a bug in PHP5 package (it uses standard debconf interface), so
I am reassigning to debconf (where it could be probably closed as
workaround for broken terminals exists).
** Package changed: php5 (Ubuntu) = debconf (Ubuntu)
--
** Tags added: dist-upgrade
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/794820
Title:
package libapache2-mod-php5 5.3.2-1ubuntu4.9 failed to
install/upgrade:, Curses lost
** Changed in: php5 (Ubuntu)
Importance: Undecided = Medium
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/794820
Title:
package libapache2-mod-php5 5.3.2-1ubuntu4.9 failed to
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/794820
Title:
package libapache2-mod-php5 5.3.2-1ubuntu4.9 failed to
install/upgrade:, Curses lost keyboard; Command line distro