Hello,
We use cron-apt to automatically maintain some of our systems
up-to-date.
In /etc/cron-apt/action.d, we have a 6-install file, that contains :
dist-upgrade -y
Worked well for a couple of months, except this night...
This is the output we received by mail from cron-apt :
[...]
Setting up pdns-server (2.9.17-13sarge3) ...
Configuration file `/etc/powerdns/pdns.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** pdns.conf (Y/I/N/O/D/Z) [default=N]
?/usr/bin/ucf: line 791: /dev/tty: No such device or address
dpkg: error processing pdns-server (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pdns-backend-mysql:
pdns-backend-mysql depends on pdns-server (=2.9.17-13sarge3); however:
Package pdns-server is not configured yet.
dpkg: error processing pdns-backend-mysql (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pdns-server
pdns-backend-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
[...]
Seems that ucf tries to read from /dev/tty even when not run from a
terminal. In fact, line 791, /dev/tty is read by the script, however, it
seems to me that this special device doesn't exists when there is no
terminal.
We use udev to manage /dev/*.
Our release is Debian Sarge 3.1.
The system is actually run on a Pentium 4 3GHz.
It's the first time that apt-get asks for questions when run by cron-apt
on our systems.
Is it a "bug" of ucf, or a configuration problem ?
Thanks for your answers and your help.
Léo.
--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]