par micj » 19 Mars 2003 08:23
J'ai rajouté dans mon /etc/cron.daily un petit script pour upgrader ma distribution automatiquement toutes les nuits :
<BR>
<BR>#!/bin/sh
<BR>
<BR>apt-get update
<BR>apt-get -y -f dist-upgrade
<BR>
<BR>
<BR>D'aucun me diront que ce n'est pas secure de faire cela comme ca mais personne ne teste les packages avant de les installer donc le faire manuellement ou automatiquement, cela ne présente pas beaucoup de différences.
<BR>
<BR>Mon problème est le suivant lorsque cron démarre le script, je reçois les messages suivant, quelqu'un a-t-il une idée de la raison de ces messages, si je redémarre par après le script manuellement pas de problème, c'est uniquement via cron (le owner du script est bien root) :
<BR>
<BR>Get:1 <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386 release
<BR>Ign <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386 release
<BR>Get:2 <!-- BBCode auto-link start --><a href="ftp://ftp.clarkconnect.org" target="_blank">ftp://ftp.clarkconnect.org</a><!-- BBCode auto-link end --> clarkconnect-1.2/RedHat release [1639B]
<BR>Err <!-- BBCode auto-link start --><a href="ftp://ftp.clarkconnect.org" target="_blank">ftp://ftp.clarkconnect.org</a><!-- BBCode auto-link end --> clarkconnect-1.2/RedHat release
<BR> file was not signed with a known key. Check if the proper gpg key was imported to your keyring.
<BR>Fetched 1639B in 2s (609B/s)
<BR>Hit <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386/os pkglist
<BR>Hit <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386/os release
<BR>Hit <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386/updates pkglist
<BR>Hit <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386/updates release
<BR>Hit <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386/extra pkglist
<BR>Hit <!-- BBCode auto-link start --><a href="ftp://apt-rpm.tuxfamily.org" target="_blank">ftp://apt-rpm.tuxfamily.org</a><!-- BBCode auto-link end --> apt/redhat/7.3/en/i386/extra release
<BR>Failed to fetch <!-- BBCode auto-link start --><a href="ftp://ftp.clarkconnect.org/clarkconnect-1.2/RedHat/base/release" target="_blank">ftp://ftp.clarkconnect.org/clarkconnect-1.2/RedHat/base/release</a><!-- BBCode auto-link end --> file was not signed with a known key. Check if the proper gpg key was imported to your keyring.
<BR>Reading Package Lists...
<BR>Collecting File Provides...
<BR>W: Release files for some repositories could not be retrieved or authenticated. Such repositories are being ignored.
<BR>E: could not open RPM package list file /var/state/apt/lists/ftp.clarkconnect.org_clarkconnect-1.2_RedHat_base_pkglist.os: (no error)
<BR>E: Problem opening /var/state/apt/lists/ftp.clarkconnect.org_clarkconnect-1.2_RedHat_base_pkglist.os
<BR>E: The package lists or status file could not be parsed or opened.
<BR>Reading Package Lists...
<BR>Collecting File Provides...
<BR>E: could not open RPM package list file /var/state/apt/lists/ftp.clarkconnect.org_clarkconnect-1.2_RedHat_base_pkglist.os: (no error)
<BR>E: Problem opening /var/state/apt/lists/ftp.clarkconnect.org_clarkconnect-1.2_RedHat_base_pkglist.os
<BR>E: The package lists or status file could not be parsed or opened.