apt-get upgrade failing due to PATH problems in Cronjob

Enn Pee enn_p at yahoo.com.sg
Fri Nov 19 11:12:23 UTC 2004


Hi,

I have setup a cronjob on warty release as per a
suggestion on this list as follows:

apt-get update && apt-get -y dist-upgrade -t
warty-security

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

thanks for any suggestions.
--------------------------------------------
Get:5 http://security.ubuntu.com warty-security/main
Release [104B]
Hit http://security.ubuntu.com
warty-security/restricted Sources
Get:6 http://security.ubuntu.com
warty-security/restricted Release [110B]
Fetched 60.3kB in 10s (5767B/s)
Reading Package Lists...
Reading Package Lists...
Building Dependency Tree...
The following packages will be upgraded:
  libsmbclient linux-image-2.6.8.1-3-386
python2.3-samba samba-common smbclient
5 upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.
Need to get 24.6MB of archives.
After unpacking 12.3kB of additional disk space will
be used.
Get:1 http://security.ubuntu.com warty-security/main
linux-image-2.6.8.1-3-386 2.6.8.1-16.1 [15.5MB]
Get:2 http://security.ubuntu.com warty-security/main
python2.3-samba 3.0.7-1ubuntu6.2 [4414kB]
Get:3 http://security.ubuntu.com warty-security/main
smbclient 3.0.7-1ubuntu6.2 [2300kB]
Get:4 http://security.ubuntu.com warty-security/main
samba-common 3.0.7-1ubuntu6.2 [1835kB]
Get:5 http://security.ubuntu.com warty-security/main
libsmbclient 3.0.7-1ubuntu6.2 [510kB]
Fetched 24.6MB in 1m4s (379kB/s)
dpkg: `ldconfig' not found on PATH.
dpkg: `start-stop-daemon' not found on PATH.
dpkg: `install-info' not found on PATH.
dpkg: `update-rc.d' not found on PATH.
dpkg: 4 expected program(s) not found on PATH.
NB: root's PATH should usually contain
/usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code
(2)


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




More information about the ubuntu-users mailing list