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) -- 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 upgrade -> via Putty -> SSH -> Screen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/794820/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs