apt-get upgrade failing due to PATH problems in Cronjob

Enn Pee enn_p at yahoo.com.sg
Tue Nov 30 00:52:44 UTC 2004


Hi,

Putting the PATH inside crontab helped one step
further  but still getting additional messages like
"TERM not set .... unable to initialize frontend". It
seems upgrade process required interaction and not
sure whether upgrade was succesful or not. Can anyone
clarify if I can be assured of succesful upgrade
seeing the below messages ??? Here is the output sent
to local mail account from recent upgrade from crontab
entry 

----------------------------------
Hit http://security.ubuntu.com
warty-security/restricted Sources
Get:6 http://security.ubuntu.com
warty-security/restricted Release [110B]
Fetched 63.8kB in 8s (7635B/s)
Reading Package Lists...
Reading Package Lists...
Building Dependency Tree...
The following packages will be upgraded:
  libgd1-noxpm libmysqlclient12 mysql-client
mysql-common mysql-server
5 upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.
Need to get 109kB/4302kB of archives.
After unpacking 0B of additional disk space will be
used.
Get:1 http://security.ubuntu.com warty-security/main
libgd1-noxpm 1.8.4-36ubuntu0.2 [109kB]
Fetched 109kB in 1s (57.5kB/s)
(Reading database ... 65298 files and directories
currently installed.)
Preparing to replace libgd1-noxpm 1.8.4-36ubuntu0.1
(using .../libgd1-noxpm_1.8.4-36ubuntu0.2_i386.deb)
...
Unpacking replacement libgd1-noxpm ...
Preparing to replace mysql-common 4.0.20-2ubuntu1
(using .../mysql-common_4.0.20-2ubuntu1.1_all.deb) ...
Unpacking replacement mysql-common ...
Preparing to replace libmysqlclient12 4.0.20-2ubuntu1
(using
.../libmysqlclient12_4.0.20-2ubuntu1.1_i386.deb) ...
Unpacking replacement libmysqlclient12 ...
Preparing to replace mysql-client 4.0.20-2ubuntu1
(using .../mysql-client_4.0.20-2ubuntu1.1_i386.deb)
...
Unpacking replacement mysql-client ...
Preparing to replace mysql-server 4.0.20-2ubuntu1
(using .../mysql-server_4.0.20-2ubuntu1.1_i386.deb)
...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is
not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Stopping MySQL database server: mysqld.
Unpacking replacement mysql-server ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is
not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up libgd1-noxpm (1.8.4-36ubuntu0.2) ...

Setting up mysql-common (4.0.20-2ubuntu1.1) ...
Setting up libmysqlclient12 (4.0.20-2ubuntu1.1) ...

Setting up mysql-client (4.0.20-2ubuntu1.1) ...
Setting up mysql-server (4.0.20-2ubuntu1.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is
not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
----------------------------------------------------

Thanks

Ennpee

 --- Colin Watson <cjwatson at canonical.com> wrote:   
> On Fri, Nov 19, 2004 at 11:32:12AM +0000, Colin
> Watson wrote:
> > On Fri, Nov 19, 2004 at 07:12:23PM +0800, Enn Pee
> wrote:
> > > the update is happening succesfully but upgrade
> is
> > > failing telling about path problems. Attached is
> the
> > > log info. Where do I set path to work correctly
> from
> > > cron ? If I run the same job in command line, it
> works
> > > fine
> > 
> > Put that line in root's crontab, not your own
> (i.e. run 'sudo crontab'),
> > and the default path should be OK.
> 
> Looking at the code, there's a possibility I'm wrong
> here. If so, put
> this line at the top of the crontab file:
> 
> PATH=/usr/sbin:/usr/bin:/sbin:/bin
> 
> Cheers,
> 
> -- 
> Colin Watson                                   
> [cjwatson at canonical.com]
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
>
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>  

__________________________________________________
Do You Yahoo!?
Download the latest ringtones, games, and more!
http://sg.mobile.yahoo.com




More information about the ubuntu-users mailing list