Hi Paul,
[sorry for the delay, the half-way ready messages slept in
my usually unused draft box]
On Wednesday 14 June 2006 14:24, Paul Seelig wrote:
> Hi Michael!
>
> # DEBIAN_FRONTEND=noninteractive apt-get --reinstall
> install localepurge
that does not help since you still have settings of an
interactive shell. Usually it helps using a construct like
# echo DEBIAN_FRONTEND=noninteractive apt-get --reinstall \
install localepurge" | at now + 1 min
> - Which package is this cron file from? I can't find any
> reference to it even searching with apt-file.
it is not a system/package cron file but self-made and
obviously called from anacron; I'll attach it but I guess
it won't help.
> - What is the error messsage that makes you believe that
> localepurge's postinst is to be blamed? Could you please
> record such a failing installation using /usr/bin/script
> and send me the output?
The output from the update script contains:
>>>
Setting up localepurge (0.5.4) ...
/var/lib/dpkg/info/localepurge.postinst: line 191: /dev/tty:
No such device or address
dpkg: error processing localepurge (--configure):
subprocess post-installation script returned error exit
status 1
<<<
and the corresponding line
in /var/lib/dpkg/info/localepurge.postinst is
/usr/bin/ucf --sum-file $SUMFILE $TMPFILE $CONFIGFILE \
</dev/tty >/dev/tty
> - And how come that your system has no /dev/tty at all?
> Isn't this the actual problem?
There are situations where no /dev/tty is available.
Currently, I cannot reproduce as soon as I have been logging
into the machine, but -- according
to Documentation/devices (kernel-tree)
5 char Alternate TTY devices
0 = /dev/tty Current TTY device
1 = /dev/console System console
-- /dev/tty is a dynamic device (different for each
interactive(!) shell) and it seems to be not always
present; and, it makes sense to be undefined before having
logged in ...
IMHO it's just plain wrong to make use of it in an
environment, where non-interactive execution is possible.
BTW:
I'd like to understand the reason for using /dev/tty for
redirection?
Out of 4000 installed packets on my machine only three
(minicom,proftpd, proftpd-common) make use of /dev/tty
which also looks erroneous to me and might be worth a bug
report; besides, many of the packages obviously
use /usr/bin/ucf.
> And please be as detailed as possible so that i don't
> need to ask any further questions and to prevent any
> guessing on my part. Writing emails is very time
> consuming.
Hope that helps, otherwise feel free to contact me by
private mail to change to a different channel (skype, etc).
Yours,
Michael
> Thank you, P. *8^)
>
> On Wed, Jun 14, 2006 at 06:51:00AM +0200, Michael Eyrich
wrote:
> > /etc/cron.daily/update as a script is like the
> > following:
> >
> > #! /bin/bash
> >
> > # one of dialog|noninteractive|readline|
> > export DEBIAN_FRONTEND=noninteractive
> >
> > # one of low|medium|high|critical
> > export DEBIAN_PRIORITY=high
> > [...]
> > apt-get update
> > apt-get upgrade -ufy
> > [...]
> > <<<
> >
> > On Tuesday 13 June 2006 16:24, Paul Seelig wrote:
> > > Hi Michael!
> > >
> > > Please define "noninteractive installation" in a way
> > > for me to be able to reproduce the behavior you
> > > reported.
--
Michael Eyrich, TKN, TU-Berlin, [EMAIL PROTECTED]
Fingerprint: 4FAE 80C2 A8D2 9752 023A EABA 6FB4 EB7E 6D08
C25C
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]