> The cronjob is run from cron; cron is configured via /etc/pam.d/cron to use pam_env.so by default, which reads
> /etc/environment. Why is this not working on your system?
/etc/cron.daily/update-notifier-common:
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
dest_file = urllib.urlretrieve(files[i])[0]
File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.7/urllib.py", line 207, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 344, in open_http
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 776, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 757, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
IOError: [Errno socket error] [Errno 101] Network is unreachable
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.378.orig.tar.gz
See /etc/crontab -- cron does not run these when /usr/sbin/anacron is installed:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
> The cronjob is run from cron; cron is configured via /etc/pam.d/cron to use pam_env.so by default, which reads
> /etc/environment. Why is this not working on your system?
Same happens also Ubuntu 12.04.4 LTS
Note that this is NOT cron !!!
Date: Tue, 8 Jul 2014 07:48:29 +0300
From: Anacron <root@......fi>
To: root@.......fi
/etc/cron. daily/update- notifier- common: update- notifier/ package- data-downloader ", line 234, in process_ download_ requests urlretrieve( files[i] )[0] python2. 7/urllib. py", line 93, in urlretrieve retrieve( url, filename, reporthook, data) python2. 7/urllib. py", line 239, in retrieve python2. 7/urllib. py", line 207, in open python2. 7/urllib. py", line 344, in open_http s(data) python2. 7/httplib. py", line 954, in endheaders _send_output( message_ body) python2. 7/httplib. py", line 814, in _send_output python2. 7/httplib. py", line 776, in send python2. 7/httplib. py", line 757, in connect address) python2. 7/socket. py", line 571, in create_connection installer: downloading http:// archive. canonical. com/pool/ partner/ a/adobe- flashplugin/ adobe-flashplug in_11.2. 202.378. orig.tar. gz
Traceback (most recent call last):
File "/usr/lib/
dest_file = urllib.
File "/usr/lib/
return _urlopener.
File "/usr/lib/
fp = self.open(url, data)
File "/usr/lib/
return getattr(self, name)(url)
File "/usr/lib/
h.endheader
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
self.timeout, self.source_
File "/usr/lib/
raise err
IOError: [Errno socket error] [Errno 101] Network is unreachable
flashplugin-
See /etc/crontab -- cron does not run these when /usr/sbin/anacron is installed:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
/ Kari Hurtta