crontab設定自動更新問題 - Linux

By Edith
at 2013-08-02T23:04
at 2013-08-02T23:04
Table of Contents
各位版友好
小弟看鳥哥的教學,用crontab設定自動更新
透過root先使用crontab -e來編輯,
然後設定
40 3 * * * /usr/bin/apt-get update && /usr/bin/apt-get -y dist-upgrade
每天凌晨3點40分會自動更新apt套件
但是我發現他還是沒有自動更新
後來去看了apt log檔之後,
有以下內容
Start-Date: 2013-08-02 03:40:35
Commandline: /usr/bin/apt-get -y dist-upgrade
Upgrade: libgs9-common:i386 (9.07~dfsg2-0ubuntu3, 9.07~dfsg2-0ubuntu3.1),
ghostscript-x:i386 (9.07~dfsg2-0ubuntu3, 9.07~dfsg2-0ubuntu3.1), libgcry
pt11:i386 (1.5.0-3ubuntu2.1, 1.5.0-3ubuntu2.2)
....
....
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2013-08-02 03:40:35
google之後發現有很多不同的情況@@
而我之後試著自己打同樣的指令去更新是可以的,
想請教一下這很有可能是什麼樣的問題?
謝謝
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
小弟看鳥哥的教學,用crontab設定自動更新
透過root先使用crontab -e來編輯,
然後設定
40 3 * * * /usr/bin/apt-get update && /usr/bin/apt-get -y dist-upgrade
每天凌晨3點40分會自動更新apt套件
但是我發現他還是沒有自動更新
後來去看了apt log檔之後,
有以下內容
Start-Date: 2013-08-02 03:40:35
Commandline: /usr/bin/apt-get -y dist-upgrade
Upgrade: libgs9-common:i386 (9.07~dfsg2-0ubuntu3, 9.07~dfsg2-0ubuntu3.1),
ghostscript-x:i386 (9.07~dfsg2-0ubuntu3, 9.07~dfsg2-0ubuntu3.1), libgcry
pt11:i386 (1.5.0-3ubuntu2.1, 1.5.0-3ubuntu2.2)
....
....
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2013-08-02 03:40:35
google之後發現有很多不同的情況@@
而我之後試著自己打同樣的指令去更新是可以的,
想請教一下這很有可能是什麼樣的問題?
謝謝
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
Tags:
Linux
All Comments

By Eden
at 2013-08-07T16:42
at 2013-08-07T16:42

By Daniel
at 2013-08-11T07:53
at 2013-08-11T07:53

By Enid
at 2013-08-13T23:33
at 2013-08-13T23:33

By Gilbert
at 2013-08-16T19:32
at 2013-08-16T19:32

By Edward Lewis
at 2013-08-21T11:38
at 2013-08-21T11:38
Related Posts
Mint 顯卡driver 安裝

By Rachel
at 2013-08-02T15:29
at 2013-08-02T15:29
NFS service Monitor

By Dorothy
at 2013-08-02T15:29
at 2013-08-02T15:29
Fedora19 PPPoE

By Genevieve
at 2013-08-02T15:24
at 2013-08-02T15:24
WIN8 + Ubuntu雙系統問題

By Andrew
at 2013-08-01T23:40
at 2013-08-01T23:40
MySQL Structure Migration Tool

By Belly
at 2013-07-31T13:12
at 2013-07-31T13:12