作者 主題: apt.cron 的問題  (閱讀 1533 次)

0 會員 與 1 訪客 正在閱讀本文。

rogergood

  • 懷疑的國中生
  • **
  • 文章數: 35
    • 檢視個人資料
apt.cron 的問題
« 於: 2006-06-30 09:42 »
各位大大,我是使用FC4,我的apt update每天都會自動執行,但都無法成功,都會寄給root更新失敗的信,但我實在看不出那有問題,希望各位大大協助我解決

這是我的apt.cron設定
/etc/cron.daily/apt.cron

#!/bin/sh
[ ! -f /var/lock/subsys/apt ] && exit 0
[ -f /etc/sysconfig/apt ] && . /etc/sysconfig/apt
[ $CHECK_ONLY == "yes" ] && OPTS="$OPTS --check-only"
OPTS="$OPTS $EXTRA_OPTIONS"
export HOME=/root
/usr/bin/apt-get -q update && /usr/bin/apt-get -q -y $OPTS dist-upgrade

==============================================

以下是收到的信
/etc/cron.daily/apt.cron:

Get:1 ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386 release [1262B]
Get:2 http://download.fedora.redhat.com fedora/linux/core/4/i386/os/ repomd.xml [1140B]
Get:3 http://ayo.freshrpms.net fedora/linux/4/i386 release [1835B]
Get:4 http://download.fedora.redhat.com fedora/linux/extras/4/i386/ repomd.xml [1140B]
Get:5 http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ repomd.xml
[951B]
Fetched 6328B in 2s (2988B/s)
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/os pkglist
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/os release
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/updates pkglist
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/updates release
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/freshrpms pkglist
Hit http://download.fedora.redhat.com fedora/linux/core/4/i386/os/ primary.xml
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/freshrpms release
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/extra pkglist
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/extra release
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/extras pkglist
Hit http://download.fedora.redhat.com fedora/linux/core/4/i386/os/ filelists.xml
Hit http://download.fedora.redhat.com fedora/linux/extras/4/i386/ primary.xml
Hit http://download.fedora.redhat.com fedora/linux/extras/4/i386/ filelists.xml
Hit http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ primary.xml
Hit http://download.fedora.redhat.com fedora/linux/core/updates/4/i386/ filelists.xml
Hit ftp://apt.nc.hcc.edu.tw pub/apt/fedora/linux/4/i386/extras release
Hit http://ayo.freshrpms.net fedora/linux/4/i386/core pkglist
Hit http://ayo.freshrpms.net fedora/linux/4/i386/core release
Hit http://ayo.freshrpms.net fedora/linux/4/i386/updates pkglist
Hit http://ayo.freshrpms.net fedora/linux/4/i386/updates release
Hit http://ayo.freshrpms.net fedora/linux/4/i386/freshrpms pkglist
Hit http://ayo.freshrpms.net fedora/linux/4/i386/freshrpms release
Reading Package Lists...
Building Dependency Tree...
W: There are multiple versions of "mtr" in your system.

This package won't be cleanly updated, unless you leave
only one version. To leave multiple versions installed,
you may remove that warning by setting the following
option in your configuration file:

RPM::Allow-Duplicated { "^mtr$"; };

To disable these warnings completely set:

RPM::Allow-Duplicated-Warning "false";

W: There are multiple versions of "kdenetwork-devel" in your system.

This package won't be cleanly updated, unless you leave
only one version. To leave multiple versions installed,
you may remove that warning by setting the following
option in your configuration file:

後面還有,太長截短,感謝各位大大協助