in reply to Net::SSH::Perl with apt-get

apt is asking for user input and is dying. You need to disable prompting.

apt-get install mozilla-firebird --yes

I recommend you read the man pages for 'apt-get' to understand the differences between "--yes" and "--assume-yes" before proceeding to implement this solution. They mean different things.