logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 13-02-2015 15:37:25

anonyme
Invité

[resolu]mise a jour auto serveur

Bonjour

je voudrai des conseils pour une mise a jour auto d un serveur par apt.
j ai trouvé ce fichier de conf et j ai des options avec dpkg-reconfigure



dpkg-reconfigure -plow unattended-upgrades

//repondre oui

 





#!/bin/sh
#set -e
#
# This file understands the following apt configuration variables:
# Values here are the default.
# Create /etc/apt/apt.conf.d/02periodic file to set your preference.
#
#  Dir "/";
#  - RootDir for all configuration files
#
#  Dir::Cache "var/cache/apt/";
#  - Set apt package cache directory
#
#  Dir::Cache::Archives "archives/";
#  - Set package archive directory
#
#  APT::Periodic::Enable "1";
#  - Enable the update/upgrade script (0=disable)
#
#  APT::Periodic::BackupArchiveInterval "0";
#  - Backup after n-days if archive contents changed.(0=disable)
#
#  APT::Periodic::BackupLevel "2";
#  - Backup level.(0=disable), 1 is invalid.
#
#
#  Dir::Cache::Backup "backup/";
#  - Set periodic package backup directory
#
#  APT::Archives::MaxAge "0"; (old, deprecated)
#  APT::Periodic::MaxAge "0";
#  - Set maximum allowed age of a cache package file. If a cache
#    package file is older it is deleted (0=disable)
#
#  APT::Archives::MinAge "0"; (old, deprecated)
#  APT::Periodic::MinAge "0";
#  - Set minimum age of a package file. If a file is younger it
#    will not be deleted (0=disable). Useful to prevent races
#    and to keep backups of the packages for emergency.
#
#  APT::Archives::MaxSize "0"; (old, deprecated)
#  APT::Periodic::MaxSize "1000";
#  - Set maximum size of the cache in MB (0=disable). If the cache
#    is bigger, cached package files are deleted until the size
#    requirement is met (the oldest packages will be deleted
#    first).
#
#  APT::Periodic::Update-Package-Lists "1";
#  - Do "apt-get update" automatically every n-days (0=disable)
#    
#  APT::Periodic::Download-Upgradeable-Packages "1";
#  - Do "apt-get upgrade --download-only" every n-days (0=disable)
#
#  APT::Periodic::Download-Upgradeable-Packages-Debdelta "1";
#  - Use debdelta-upgrade to download updates if available (0=disable)
#
#  APT::Periodic::Unattended-Upgrade "1";
#  - Run the "unattended-upgrade" security upgrade script
#    every n-days (0=disabled)
#    Requires the package "unattended-upgrades" and will write
#    a log in /var/log/unattended-upgrades
#
#  APT::Periodic::AutocleanInterval "30";
#  - Do "apt-get autoclean" every n-days (0=disable)
#
#  APT::Periodic::Verbose "3";
#  - Send report mail to root
#      0:  no report             (or null string)
#      1:  progress report       (actually any string)
#      2:  + command outputs     (remove -qq, remove 2>/dev/null, add -d)
#      3:  + trace on            

 



j'ai pas trouvé de tuto , j ai mit quelques valeurs pour test et je vai etudier le dpk-reconfigure  pour 50unattended

si quelqu un a des conseils , pour les 4 premieres lignes par exemple "archives"

Dernière modification par anonyme (14-02-2015 17:42:31)

#2 13-02-2015 15:52:26

anonyme
Invité

Re : [resolu]mise a jour auto serveur

faut deja installer le packet roll



apt-get install unattended-upgrades
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
  dh-python iso-codes libmpdec2 libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib lsb-release python-apt-common python3 python3-apt python3-minimal python3.4 python3.4-minimal
Paquets suggérés :
  isoquery lsb python3-doc python3-tk python3-venv python3-apt-dbg python-apt-doc python3.4-venv python3.4-doc binutils binfmt-support
Les NOUVEAUX paquets suivants seront installés :
  dh-python iso-codes libmpdec2 libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib lsb-release python-apt-common python3 python3-apt python3-minimal python3.4 python3.4-minimal unattended-upgrades
0 mis à jour, 14 nouvellement installés, 0 à enlever et 3 non mis à jour.
Il est nécessaire de prendre 7 258 ko dans les archives.
Après cette opération, 37,4 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o


 



petit message :

Paramétrage de unattended-upgrades (0.83.3) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Traitement des actions différées (« triggers ») pour libc-bin (2.19-13) ...

Dernière modification par anonyme (13-02-2015 15:54:14)

#3 13-02-2015 16:23:58

anonyme
Invité

Re : [resolu]mise a jour auto serveur

voila c est fait avec un petit reboot , toujours le message ci-dessus "warning"
j ai edité le 50unattended-upgrades avant et apres avoir repondu oui a la mise a jour de securité.
rien a changé ça reste flou , avec une install "test" c est peut etre pas la bonne methode il attend "stable" roll

peut etre le man m en dira plus ...........
dans mon souces.list seul la premiere ligne est importante (jessie main), les autres reste optionnelles , pas de blackport , mise a jour de sécurité je crois que sur "test" il n y en pas et l option update aucune idée.



# deb cdrom:[Debian GNU/Linux jessie-DI-b1 _Jessie_ - Official Snapshot amd64 NETINST Binary-1 20140812-10:58]/ jessie main

#deb cdrom:[Debian GNU/Linux jessie-DI-b1 _Jessie_ - Official Snapshot amd64 NETINST Binary-1 20140812-10:58]/ jessie main

deb http://ftp.fr.debian.org/debian/ jessie main
deb-src http://ftp.fr.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ jessie-updates main
deb-src http://ftp.fr.debian.org/debian/ jessie-updates main

# jessie-backports, previously on backports.debian.org
#deb http://ftp.fr.debian.org/debian/ jessie-backports main
#deb-src http://ftp.fr.debian.org/debian/ jessie-backports main


 



pour info aujourd hui mise a jour de exim4 (meme nombres de paquet ) entre un client et le serveur , pour confirmer mon affirmation sur les 3 autres lignes. (les clients on le sources.list complet )

@++

Dernière modification par anonyme (14-02-2015 17:24:43)

#4 13-02-2015 16:54:13

anonyme
Invité

Re : [resolu]mise a jour auto serveur

voici les quelques options que j ai mit en place sur mon fichier  50unattended-upgrades



Unattended-Upgrade::Origins-Pattern {

      "o=Debian,n=jessie";
      "o=Debian,n=jessie-updates";
//      "o=Debian,n=jessie-proposed-updates";
      "o=Debian,n=jessie,l=Debian-Security";

//      "o=Debian,a=stable";
//      "o=Debian,a=stable-updates";
//      "o=Debian,a=proposed-updates";
        "origin=Debian,archive=${distro_codename},label=Debian-Security";
};

 Unattended-Upgrade::Package-Blacklist {
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};

//   dpkg --force-confold --configure -a

//Unattended-Upgrade::AutoFixInterruptedDpkg "false";

//Unattended-Upgrade::MinimalSteps "true";

//Unattended-Upgrade::InstallOnShutdown "true";

 Unattended-Upgrade::Mail "root";

 Unattended-Upgrade::MailOnlyOnError "true";

//Unattended-Upgrade::Remove-Unused-Dependencies "false";

 Unattended-Upgrade::Automatic-Reboot "false";

//Unattended-Upgrade::Automatic-Reboot-Time "02:00";

//Acquire::http::Dl-Limit "70";

 



test cache policy


apt-cache policy
Fichiers du paquet :
 100 /var/lib/dpkg/status
     release a=now
 500 http://ftp.fr.debian.org/debian/ jessie-updates/main Translation-en
 500 http://ftp.fr.debian.org/debian/ jessie-updates/main amd64 Packages
     release o=Debian,a=testing-updates,n=jessie-updates,l=Debian,c=main
     origin ftp.fr.debian.org
 500 http://security.debian.org/ jessie/updates/main Translation-en
 500 http://security.debian.org/ jessie/updates/main amd64 Packages
     release o=Debian,a=testing,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 http://ftp.fr.debian.org/debian/ jessie/main Translation-fr
 500 http://ftp.fr.debian.org/debian/ jessie/main Translation-en
 500 http://ftp.fr.debian.org/debian/ jessie/main amd64 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=main
     origin ftp.fr.debian.org
Paquets épinglés :
 



test de la mise a jour auto tongue



unattended-upgrades -d

Paquets initialement sur la liste noire :
Initial whitelisted packages:
Démarrage du script de mise à niveau automatique
Les origines permises sont : ['o=Debian,n=jessie', 'origin=Debian,archive=jessie,label=Debian-Security']
Checking: base-passwd ([<Origin component:'main' archive:'testing' origin:'Debian' label:'Debian' site:'ftp.fr.debian.org' isTrusted:True>])
Checking: linux-image-amd64 ([<Origin component:'main' archive:'testing' origin:'Debian' label:'Debian' site:'ftp.fr.debian.org' isTrusted:True>])
Checking: wget ([<Origin component:'main' archive:'testing' origin:'Debian' label:'Debian' site:'ftp.fr.debian.org' isTrusted:True>])
pkgs that look like they should be upgraded: base-passwd
linux-image-amd64
wget
Get:1 http://ftp.fr.debian.org/debian/ jessie/main libdebconfclient0 amd64 0.192 [46.2 kB]                                                                                                                        
Get:2 http://ftp.fr.debian.org/debian/ jessie/main base-passwd amd64 3.5.37 [64.5 kB]                                                                                                                            
Get:3 http://ftp.fr.debian.org/debian/ jessie/main libicu52 amd64 52.1-7 [6787 kB]                                                                                                                                
Get:4 http://ftp.fr.debian.org/debian/ jessie/main libnuma1 amd64 2.0.10-1 [32.5 kB]                                                                                                                              
Get:5 http://ftp.fr.debian.org/debian/ jessie/main linux-image-3.16.0-4-amd64 amd64 3.16.7-ckt4-3 [33.7 MB]                                                                                                      
Get:6 http://ftp.fr.debian.org/debian/ jessie/main libpsl0 amd64 0.5.1-1 [41.6 kB]                                                                                                                                
Get:7 http://ftp.fr.debian.org/debian/ jessie/main wget amd64 1.16-1 [495 kB]                                                                                                                                    
Get:8 http://ftp.fr.debian.org/debian/ jessie/main firmware-linux-free all 3.3 [19.1 kB]                                                                                                                          
Get:9 http://ftp.fr.debian.org/debian/ jessie/main linux-image-amd64 amd64 3.16+63 [5824 B]                                                                                                                      
Get:10 http://ftp.fr.debian.org/debian/ jessie/main irqbalance amd64 1.0.6-3 [31.1 kB]                                                                                                                            
Fetched 41.2 MB in 6s (624 kB/s)                                                                                                                                                                                  
fetch.run() result: 0

// j ai enlevé lignes intermediaires

Traitement des actions différées (« triggers ») pour install-info (5.2.0.dfsg.1-6) ...
Traitement des actions différées (« triggers ») pour man-db (2.7.0.2-5) ...
Paramétrage de libicu52:amd64 (52.1-7) ...
Paramétrage de libnuma1:amd64 (2.0.10-1) ...
Paramétrage de linux-image-3.16.0-4-amd64 (3.16.7-ckt4-3) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
/etc/kernel/postinst.d/zz-update-grub:
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-3.16.0-4-amd64
Image mémoire initiale trouvée : /boot/initrd.img-3.16.0-4-amd64
Image Linux trouvée : /boot/vmlinuz-3.14-2-amd64
Image mémoire initiale trouvée : /boot/initrd.img-3.14-2-amd64
fait
Paramétrage de libpsl0:amd64 (0.5.1-1) ...
Paramétrage de wget (1.16-1) ...
Paramétrage de firmware-linux-free (3.3) ...
update-initramfs: deferring update (trigger activated)
Paramétrage de linux-image-amd64 (3.16+63) ...
Paramétrage de irqbalance (1.0.6-3) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.19-13) ...
Traitement des actions différées (« triggers ») pour initramfs-tools (0.116) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
Toutes les mises à niveau ont été installées
Extracting content from '/var/log/unattended-upgrades/unattended-upgrades-dpkg.log' since '2015-02-13 17:24:07.378022'



 



normalement je devais etre a jour , je suis inquiet roll sad

PS: apres reboot tout est correct je suis passé au dernier noyau , je comprend pas la difference entre apt-get update et upgrade , je pensais etre a jour , et la mise a jour auto m a trouvé d autres mise a jour.
il me reste a améliorer la config , espace entre les mises a jour , liste noire etc ....
le reboot auto ne me convient pas , je le ferais manuellement. (coupure du réseau pour les clients).
je compte sur vos remarques et conseils wink

Dernière modification par anonyme (15-02-2015 00:56:47)

#5 13-02-2015 22:27:45

AigletoN
Membre
Distrib. : Debian Jessie
(G)UI : KDE
Inscription : 14-12-2014

Re : [resolu]mise a jour auto serveur

upgrade install les paquets à mettre à jour
update met à jour la liste des paquets disponible (listing) .
en espérant me faire comprendre

edit:
et via crontab et un fichier bash ?
tu créer ton fichier bash et tu le lance selon tes préférences .
perso je préfère voir ce qui se met à jour ,on sait jamais big_smile

Dernière modification par AigletoN (13-02-2015 22:31:54)

Hors ligne

#6 14-02-2015 03:20:41

anonyme
Invité

Re : [resolu]mise a jour auto serveur

je comprends ce que tu veus dire , je voulais tester la possibilité d apt et de unattended-upgrades , plutot interressant pour un serveur (un client gnome peut donner une alerte de mise a jour je suis pas inquiet)
par contre le serveur peut aussi gerer le cache pour la mise a jour client et surtout pas d ecran , on finit par l oublier ..........
mon probleme c est que jessie est testing , plutot fait pour stable.
il y a un peu de curiosité aussi cool voir comment ça fonctionne , je devrai avoir le compte rendu des mises a jour .
10 machines a mettre a jour ça va encore , avec testing c est encore galere , en stable ça va etre plus light .
Pour l instant j essaie de comprendre et d optimiser la config , mon but c est mise a jour paquet et mise a jour sécurité et de récupérer les infos par mail.
il y a le souci du reboot , d un coté il faut rebooter pour certaines mise a jour et de l autre ça me coupe les clients du net .......  (le reboot de ce serveur est assez rapide )
si ça ne fonctionne pas bien je le supprimerai. wink
@++

Dernière modification par anonyme (14-02-2015 03:26:03)

#7 14-02-2015 07:17:41

anonyme
Invité

Re : [resolu]mise a jour auto serveur

le mail fonctionne bien hmm

objet     Cron <root@debian10> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

voir l'en-tête complet
/etc/cron.daily/apt:
run-parts: failed to exec /etc/cron.daily/apt: Exec format error
run-parts: /etc/cron.daily/apt exited with return code 1

le script a une erreur sad

ps: il ne faut pas toucher au script "apt" mais creer un script dans /etc/apt/apt.conf.d/20auto-upgrades
si on regarde gnome utilise aussi des scripts dans apt.conf.d
on recommence le test roll

pourtant clair ecrit dans le script au dessus : tongue lol

# This file understands the following apt configuration variables:
# Values here are the default.
# Create /etc/apt/apt.conf.d/02periodic file to set your preference.
#

Dernière modification par anonyme (14-02-2015 08:16:13)

#8 14-02-2015 11:07:31

kawer
Membre
Lieu : Earth
Distrib. : Debian Stable
Noyau : Current
(G)UI : Xfce
Inscription : 08-10-2013

Re : [resolu]mise a jour auto serveur

Bonjour,

Si tu veut j'ai trouvé une solution qui fonctionne depuis un certains temps avec un package dans les dépots officiel, il te donne le résultat par mail des paquets à jours et purgé.
Le lien du tuto se trouve ici.

@+

Ps: semble relativement simple comparé à ta configuration nécessaire.

Dernière modification par kawer (14-02-2015 11:09:50)


Songez à ce que vous avez été, à ce que vous êtes, et à ce que vous serez un jour, et vous deviendrez humbles. Saint Vincent de Paul
La maladie la plus constante et la plus mortelle, mais aussi la plus méconnue de toute société, est l’indifférence. Abbé Pierre
Carpe diem, quam minimum credula postero. Horace

Hors ligne

#9 14-02-2015 13:27:51

sv0t
Membre
Distrib. : Debian / Win7
Noyau : Stable
(G)UI : Oui des fois
Inscription : 16-01-2015

Re : [resolu]mise a jour auto serveur

Pas très prudent une mise à jour automatique de serveur...

==>[]

Hors ligne

#10 14-02-2015 13:57:44

kawer
Membre
Lieu : Earth
Distrib. : Debian Stable
Noyau : Current
(G)UI : Xfce
Inscription : 08-10-2013

Re : [resolu]mise a jour auto serveur

sv0t a écrit :

Pas très prudent une mise à jour automatique de serveur...

==>[]



Etant donné qu'il est sur jessie, qui est en période de freeze depuis un moment et qui deviendras bientôt stable, il n'y a donc aucun risque à accepter automatiquement les mise à jours, surtout que sur un serveur sans x tu aura généralement que des mises à jours de sécurité.

De plus cron-apt envoi un mail en mode --verbose donc toutes les lignes aptitude généré sont présente dans le mail, ainsi que les problèmes de configuation, qui sont envoyé par default après chaque mise à jour à 4h du matin.


Songez à ce que vous avez été, à ce que vous êtes, et à ce que vous serez un jour, et vous deviendrez humbles. Saint Vincent de Paul
La maladie la plus constante et la plus mortelle, mais aussi la plus méconnue de toute société, est l’indifférence. Abbé Pierre
Carpe diem, quam minimum credula postero. Horace

Hors ligne

#11 14-02-2015 14:56:23

anonyme
Invité

Re : [resolu]mise a jour auto serveur

re,

voici ce que je veus faire :


unattended-upgrades -d
Paquets initialement sur la liste noire :
Initial whitelisted packages:
Démarrage du script de mise à niveau automatique
Les origines permises sont : ['o=Debian,n=jessie', 'o=Debian,n=jessie-updates', 'o=Debian,n=jessie,l=Debian-Security', 'origin=Debian,archive=jessie,label=Debian-Security']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                        
fetch.run() result: 0
blacklist: []
whitelist: []
InstCount=0 DelCount=0 BrokenCount=0
Aucun paquet à mettre à niveau automatiquement
 



unattended-upgrades fonctionne bien et j ai la mise a jour complete  , main , securité et update

avec apt-daily  j ai la possibilité de gerer encore mieux , cache , archive autoclean etc et lancer unattended-upgrades -d

voila pourquoi je me complique la vie tongue

Dernière modification par anonyme (14-02-2015 15:00:13)

#12 14-02-2015 15:23:23

anonyme
Invité

Re : [resolu]mise a jour auto serveur

voila ce que donne le lancement de /etc/apt-daily/apt pour l instant :
bonne chance pour la lecture , il est assez long .............     tongue
maintenant faut le configurer au mieux de mes desirs sad roll wink


test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/apt:
verbose level 3
+ check_power
+ which on_ac_power
+ return 0
+ which apt-get
+ eval apt-get check
+ apt-get check
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'
état…
+ date +%s
+ now=1423923570
+ UpdateInterval=0
+ apt-config shell UpdateInterval APT::Periodic::Update-Package-Lists
+ eval UpdateInterval='1'
+ UpdateInterval=1
+ DownloadUpgradeableInterval=0
+ apt-config shell DownloadUpgradeableInterval APT::Periodic::Download-Upgradeable-Packages
+ eval DownloadUpgradeableInterval='1'
+ DownloadUpgradeableInterval=1
+ UnattendedUpgradeInterval=0
+ apt-config shell UnattendedUpgradeInterval APT::Periodic::Unattended-Upgrade
+ eval UnattendedUpgradeInterval='1'
+ UnattendedUpgradeInterval=1
+ AutocleanInterval=0
+ apt-config shell AutocleanInterval APT::Periodic::AutocleanInterval
+ eval AutocleanInterval='30'
+ AutocleanInterval=30
+ BackupArchiveInterval=0
+ apt-config shell BackupArchiveInterval APT::Periodic::BackupArchiveInterval
+ eval
+ Debdelta=1
+ apt-config shell Debdelta APT::Periodic::Download-Upgradeable-Packages-Debdelta
+ eval
+ [ 1 -eq 0 ]
+ do_cache_backup 0
+ BackupArchiveInterval=0
+ [ 0 -eq 0 ]
+ return
+ random_sleep
+ RandomSleep=1800
+ apt-config shell RandomSleep APT::Periodic::RandomSleep
+ eval
+ [ 1800 -eq 0 ]
+ [ -z  ]
+ cut -d  -f1
+ cksum
+ dd if=/dev/urandom bs=2 count=1
+ RANDOM=32744
+ TIME=344
+ debug_echo sleeping for 344 seconds
+ [ 3 -ge 1 ]
+ echo sleeping for 344 seconds
sleeping for 344 seconds
+ sleep 344
+ check_power
+ which on_ac_power
+ return 0
+ [ -r /etc/default/locale ]
+ . /etc/default/locale
+ LANG=fr_FR.UTF-8
+ export LANG LANGUAGE LC_MESSAGES LC_ALL
+ UPDATED=0
+ UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
+ check_stamp /var/lib/apt/periodic/update-stamp 1
+ stamp=/var/lib/apt/periodic/update-stamp
+ interval=1
+ [ 1 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/update-stamp ]
+ debug_echo check_stamp: missing time stamp file: /var/lib/apt/periodic/update-stamp.
+ [ 3 -ge 1 ]
+ echo check_stamp: missing time stamp file: /var/lib/apt/periodic/update-stamp.
check_stamp: missing time stamp file: /var/lib/apt/periodic/update-stamp.
+ return 0
+ eval apt-get -y update
+ apt-get -y update
Réception de : 1 http://security.debian.org jessie/updates InRelease [84,1 kB]
Réception de : 2 http://ftp.fr.debian.org jessie InRelease [199 kB]
Réception de : 3 http://security.debian.org jessie/updates/main Sources [14 B]
Réception de : 4 http://security.debian.org jessie/updates/main amd64 Packages [14 B]
Réception de : 5 http://security.debian.org jessie/updates/main Translation-en [14 B]
Réception de : 6 http://ftp.fr.debian.org jessie-updates InRelease [117 kB]
Réception de : 7 http://ftp.fr.debian.org jessie/main Sources/DiffIndex [7 876 B]
Réception de : 8 http://ftp.fr.debian.org jessie/main amd64 Packages/DiffIndex [7 876 B]
Réception de : 9 http://ftp.fr.debian.org jessie/main Translation-fr/DiffIndex [7 819 B]
Réception de : 10 http://ftp.fr.debian.org jessie/main Translation-en/DiffIndex [7 876 B]
Réception de : 11 http://ftp.fr.debian.org jessie-updates/main Sources [14 B]
Réception de : 12 http://ftp.fr.debian.org jessie-updates/main amd64 Packages [14 B]
Réception de : 13 http://ftp.fr.debian.org jessie-updates/main Translation-en [14 B]
Réception de : 14 http://ftp.fr.debian.org jessie/main 2015-02-14-0247.53.pdiff [1 672 B]
Réception de : 15 http://ftp.fr.debian.org jessie/main 2015-02-14-0247.53.pdiff [1 672 B]
Réception de : 16 http://ftp.fr.debian.org jessie/main amd64 2015-02-14-0247.53.pdiff [2 890 B]
Réception de : 17 http://ftp.fr.debian.org jessie/main 2015-02-14-0847.41.pdiff [1 089 B]
Réception de : 18 http://ftp.fr.debian.org jessie/main 2015-02-14-0247.53.pdiff [33 B]
Réception de : 19 http://ftp.fr.debian.org jessie/main amd64 2015-02-14-0247.53.pdiff [2 890 B]
Réception de : 20 http://ftp.fr.debian.org jessie/main 2015-02-14-0847.41.pdiff [1 089 B]
Réception de : 21 http://ftp.fr.debian.org jessie/main 2015-02-14-0247.53.pdiff [33 B]
437 ko réceptionnés en 8s (54,2 ko/s)
Lecture des listes de paquets…
+ debug_echo download updated metadata (success).
+ [ 3 -ge 1 ]
+ echo download updated metadata (success).
download updated metadata (success).
+ which dbus-send
+ pidof dbus-daemon
+ dbus-send --system / app.apt.dbus.updated boolean:true
+ debug_echo send dbus signal (success)
+ [ 3 -ge 1 ]
+ echo send dbus signal (success)
send dbus signal (success)
+ update_stamp /var/lib/apt/periodic/update-stamp
+ stamp=/var/lib/apt/periodic/update-stamp
+ touch /var/lib/apt/periodic/update-stamp
+ UPDATED=1
+ DOWNLOAD_UPGRADEABLE_STAMP=/var/lib/apt/periodic/download-upgradeable-stamp
+ [ 1 -eq 1 ]
+ check_stamp /var/lib/apt/periodic/download-upgradeable-stamp 1
+ stamp=/var/lib/apt/periodic/download-upgradeable-stamp
+ interval=1
+ [ 1 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/download-upgradeable-stamp ]
+ debug_echo check_stamp: missing time stamp file: /var/lib/apt/periodic/download-upgradeable-stamp.
+ [ 3 -ge 1 ]
+ echo check_stamp: missing time stamp file: /var/lib/apt/periodic/download-upgradeable-stamp.
check_stamp: missing time stamp file: /var/lib/apt/periodic/download-upgradeable-stamp.
+ return 0
+ [ 1 -eq 1 ]
+ debdelta-upgrade
+ true
+ eval apt-get -y -d dist-upgrade
+ apt-get -y -d dist-upgrade
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'
état…
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
+ update_stamp /var/lib/apt/periodic/download-upgradeable-stamp
+ stamp=/var/lib/apt/periodic/download-upgradeable-stamp
+ touch /var/lib/apt/periodic/download-upgradeable-stamp
+ debug_echo download upgradable (success)
+ [ 3 -ge 1 ]
+ echo download upgradable (success)
download upgradable (success)
+ UPGRADE_STAMP=/var/lib/apt/periodic/upgrade-stamp
+ which unattended-upgrade
+ check_stamp /var/lib/apt/periodic/upgrade-stamp 1
+ stamp=/var/lib/apt/periodic/upgrade-stamp
+ interval=1
+ [ 1 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/upgrade-stamp ]
+ debug_echo check_stamp: missing time stamp file: /var/lib/apt/periodic/upgrade-stamp.
+ [ 3 -ge 1 ]
+ echo check_stamp: missing time stamp file: /var/lib/apt/periodic/upgrade-stamp.
check_stamp: missing time stamp file: /var/lib/apt/periodic/upgrade-stamp.
+ return 0
+ unattended-upgrade -d
Paquets initialement sur la liste noire :
Initial whitelisted packages:
Démarrage du script de mise à niveau automatique
Les origines permises sont : ['o=Debian,n=jessie', 'o=Debian,n=jessie-updates', 'o=Debian,n=jessie,l=Debian-Security', 'origin=Debian,archive=jessie,label=Debian-Security']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)                                                      
fetch.run() result: 0
blacklist: []
whitelist: []
InstCount=0 DelCount=0 BrokenCount=0
Aucun paquet à mettre à niveau automatiquement
+ update_stamp /var/lib/apt/periodic/upgrade-stamp
+ stamp=/var/lib/apt/periodic/upgrade-stamp
+ touch /var/lib/apt/periodic/upgrade-stamp
+ debug_echo unattended-upgrade (success)
+ [ 3 -ge 1 ]
+ echo unattended-upgrade (success)
unattended-upgrade (success)
+ AUTOCLEAN_STAMP=/var/lib/apt/periodic/autoclean-stamp
+ check_stamp /var/lib/apt/periodic/autoclean-stamp 30
+ stamp=/var/lib/apt/periodic/autoclean-stamp
+ interval=30
+ [ 30 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/autoclean-stamp ]
+ debug_echo check_stamp: missing time stamp file: /var/lib/apt/periodic/autoclean-stamp.
+ [ 3 -ge 1 ]
+ echo check_stamp: missing time stamp file: /var/lib/apt/periodic/autoclean-stamp.
check_stamp: missing time stamp file: /var/lib/apt/periodic/autoclean-stamp.
+ return 0
+ eval apt-get -y autoclean
+ apt-get -y autoclean
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'
état…
Del exim4 4.84-6 [8 554 B]
Del exim4-daemon-light 4.84-6 [629 kB]
Del libcryptsetup4 2:1.6.6-4 [103 kB]
Del exim4-config 4.84-6 [499 kB]
Del ntp 1:4.2.6.p5+dfsg-3.2 [391 kB]
Del libsystemd-daemon0 215-10 [33,8 kB]
Del exim4-base 4.84-6 [1 046 kB]
Del libsystemd-login0 215-10 [44,6 kB]
Del bsdutils 1:2.25.2-4.1 [93,7 kB]
Del libsystemd-journal0 215-10 [69,8 kB]
+ debug_echo autoclean (success).
+ [ 3 -ge 1 ]
+ echo autoclean (success).
autoclean (success).
+ update_stamp /var/lib/apt/periodic/autoclean-stamp
+ stamp=/var/lib/apt/periodic/autoclean-stamp
+ touch /var/lib/apt/periodic/autoclean-stamp
+ check_size_constraints
+ MaxAge=0
+ apt-config shell MaxAge APT::Archives::MaxAge
+ eval
+ apt-config shell MaxAge APT::Periodic::MaxAge
+ eval
+ MinAge=2
+ apt-config shell MinAge APT::Archives::MinAge
+ eval
+ apt-config shell MinAge APT::Periodic::MinAge
+ eval
+ MaxSize=0
+ apt-config shell MaxSize APT::Archives::MaxSize
+ eval
+ apt-config shell MaxSize APT::Periodic::MaxSize
+ eval
+ Cache=/var/cache/apt/archives/
+ apt-config shell Cache Dir::Cache::archives/d
+ eval Cache='/var/cache/apt/archives/'
+ Cache=/var/cache/apt/archives/
+ [ -z /var/cache/apt/archives/ ]
+ [ ! 0 -eq 0 ]
+ [ ! 0 -eq 0 ]
+ debug_echo skip aging since MaxAge is 0
+ [ 3 -ge 1 ]
+ echo skip aging since MaxAge is 0
skip aging since MaxAge is 0
+ [ ! 0 -eq 0 ]
root@debian10:/#

 

Dernière modification par anonyme (14-02-2015 15:28:55)

#13 14-02-2015 17:14:00

anonyme
Invité

Re : [resolu]mise a jour auto serveur

voici mon fichier 20auto-upgrades dans /etc/apt/apt.conf.d/20auto-upgrades
les valeurs sont un peu au pif , manque de recul pour de bonnes valeurs




# racine de tous les chemins ci-dessous
   Dir "/";

# dir cache apt
   Dir::Cache "var/cache/apt/";

# dir du cache archives
   Dir::Cache::Archives "archives/";

# active 1 (sinon 0)
   APT::Periodic::Enable "1";

# intervalles des archives (20 jours)
   APT::Periodic::BackupArchiveInterval "20";

# 1 est invalid , 0= non , autres valeurs inconnu
   APT::Periodic::BackupLevel "2";

# chemin du cache du backup
   Dir::Cache::Backup "backup/";

#  (old, deprecated)
#  APT::Archives::MaxAge "365";
#  (new)age maximum des archives (1 an)
   APT::Periodic::MaxAge "365";

#  (old, deprecated)
#  APT::Archives::MinAge "180";
#  (new) age minimum des archives (6 mois)
   APT::Periodic::MinAge "180";

#  (old, deprecated)
#  APT::Archives::MaxSize "4000";
#  (new) alloué 4go maximum aux archives
   APT::Periodic::MaxSize "4000";

# intervale des mises a jours "2 jours"
   APT::Periodic::Update-Package-Lists "2";

# intervale de telechargement des paquets de mise a jour "1 jour"
   APT::Periodic::Download-Upgradeable-Packages "1";

# telecharge le delta du paquet uniquement
   APT::Periodic::Download-Upgradeable-Packages-Debdelta "0";

# lance unattended-upgrade
   APT::Periodic::Unattended-Upgrade "1";

#intervale en jours de autoclean 30 jours
   APT::Periodic::AutocleanInterval "30";

# level 3 maximum d infos (level 0,1,2 ou 3)
   APT::Periodic::Verbose "3";


 



j ai utlisée cette ligne pour test


test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
 



normalement je devrais (avec un petite config supplementaire ) pouvoir utiliser le cache du serveur pour  les clients.
pas beaucoup de monde a utilisé cette methode a priori  roll
sinon preneur pour des conseils , je ferai un retour bon ou mauvais wink

PS: j ai modifie tous mes scripts ci-dessus de ma config reelle actuelle .
je n ai pas de mail , pourtant il est configuré dans "50unattended-upgrades"  sous /etc/apt/apt.conf.d/
il n utilise pas exim4 mais mailx (ou bsd-mailx maintenant ) , peut etre une config a faire. (cron me donne les erreurs par exim4 et ça fonctionne)

PS2: j ai deja 1.6go d archives tongue

Dernière modification par anonyme (14-02-2015 17:40:48)

#14 15-02-2015 01:04:35

anonyme
Invité

Re : [resolu]mise a jour auto serveur

kawer a écrit :

Bonjour,

Si tu veut j'ai trouvé une solution qui fonctionne depuis un certains temps avec un package dans les dépots officiel, il te donne le résultat par mail des paquets à jours et purgé.
Le lien du tuto se trouve ici.

@+

Ps: semble relativement simple comparé à ta configuration nécessaire.



oui j avais vu ce tuto trop vieux de 2012 .
quand on a compris comment  mettre en place les scripts pas trop compliqué

sv0t a écrit :

Pas très prudent une mise à jour automatique de serveur...

==>[]


il y a plusieurs avis , certain sont contre pour les clients , d autres les serveurs et enfin  contre pour les deux.
mon avis c est qu un serveur n evolue que tres peu sur sa config (pas d ajout de logiciel ), c est surtout mise a niveau et correctif de securité.

kawer a écrit :

sv0t a écrit :

Pas très prudent une mise à jour automatique de serveur...

==>[]



Etant donné qu'il est sur jessie, qui est en période de freeze depuis un moment et qui deviendras bientôt stable, il n'y a donc aucun risque à accepter automatiquement les mise à jours, surtout que sur un serveur sans x tu aura généralement que des mises à jours de sécurité.

De plus cron-apt envoi un mail en mode --verbose donc toutes les lignes aptitude généré sont présente dans le mail, ainsi que les problèmes de configuation, qui sont envoyé par default après chaque mise à jour à 4h du matin.



oui c est ce que je pense , d ailleurs pour test j ai mit 1 et 2 jours mais ce sera surement en semaine voir en mois (il parle de 2 mois environ pour mise a niveau et securité c est aléatoire).
4 semaines me semble raisonnable , pour la securité il y a des alertes debian sur leur site.

j ai la possibilité d utiliser une liste noire pour verrouiller la mise a jour de certains paquets .

Dernière modification par anonyme (15-02-2015 01:25:23)

#15 15-02-2015 04:15:40

anonyme
Invité

Re : [resolu]mise a jour auto serveur

j ai installé aussi openbsd-inetd et approx pour avoir un cache des paquets pour la mise a jour client. (pas utilisé apt  smile  )
tres simple a utiliser , juste a a penser de renseigner par un CNAME les clients (apt.domaine.com)

j ai un petit bug general sur toutes les machines .
sur bureau de gnome => application => outils systeme => outil de mise a jour de paquet
sur un client en ip fixe  erreur pas de reseau alors que "gestionnaire de paquet synaptic" fonctionne tres bien (le reseau aussi lol )
sur un client en dhcp  (avec le manager reseau de gnome), pas de mise a jour disponible alors que synaptic m en trouve 48  tongue
je pense que ce logiciel a un soucis de configuration. roll

#16 15-02-2015 14:20:00

anonyme
Invité

Re : [resolu]mise a jour auto serveur

un petit mail aujourd hui MDR   lol
je vai passer le verbose a 2 tongue et le delais de recherche de MAJ a 3 ......;)


 /etc/cron.daily/apt:
verbose level 3
+ check_power
+ which on_ac_power
+ return 0
+ which apt-get
+ eval apt-get check
+ apt-get check
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'
état…
+ date +%s
+ now=1423977902
+ UpdateInterval=0
+ apt-config shell UpdateInterval APT::Periodic::Update-Package-Lists
+ eval UpdateInterval='2'
+ UpdateInterval=2
+ DownloadUpgradeableInterval=0
+ apt-config shell DownloadUpgradeableInterval APT::Periodic::Download-Upgradeable-Packages
+ eval DownloadUpgradeableInterval='1'
+ DownloadUpgradeableInterval=1
+ UnattendedUpgradeInterval=0
+ apt-config shell UnattendedUpgradeInterval APT::Periodic::Unattended-Upgrade
+ eval UnattendedUpgradeInterval='1'
+ UnattendedUpgradeInterval=1
+ AutocleanInterval=0
+ apt-config shell AutocleanInterval APT::Periodic::AutocleanInterval
+ eval AutocleanInterval='30'
+ AutocleanInterval=30
+ BackupArchiveInterval=0
+ apt-config shell BackupArchiveInterval APT::Periodic::BackupArchiveInterval
+ eval BackupArchiveInterval='20'
+ BackupArchiveInterval=20
+ Debdelta=1
+ apt-config shell Debdelta APT::Periodic::Download-Upgradeable-Packages-Debdelta
+ eval Debdelta='0'
+ Debdelta=0
+ [ 2 -eq 0 ]
+ do_cache_backup 20
+ BackupArchiveInterval=20
+ [ 20 -eq 0 ]
+ CacheDir=/var/cache/apt
+ apt-config shell CacheDir Dir::Cache/d
+ eval CacheDir='/var/cache/apt/'
+ CacheDir=/var/cache/apt/
+ CacheDir=/var/cache/apt
+ [ -z /var/cache/apt ]
+ Cache=/var/cache/apt/archives/
+ apt-config shell Cache Dir::Cache::Archives/d
+ eval Cache='/var/cache/apt/archives/'
+ Cache=/var/cache/apt/archives/
+ [ -z /var/cache/apt/archives/ ]
+ BackupLevel=3
+ apt-config shell BackupLevel APT::Periodic::BackupLevel
+ eval BackupLevel='2'
+ BackupLevel=2
+ [ 2 -le 1 ]
+ Back=/var/cache/apt/backup/
+ apt-config shell Back Dir::Cache::Backup/d
+ eval Back='/var/cache/apt/backup/'
+ Back=/var/cache/apt/backup/
+ [ -z /var/cache/apt/backup/ ]
+ basename /var/cache/apt/archives/
+ CacheArchive=archives
+ test -n archives
+ BackX=/var/cache/apt/backup/archives/
+ seq 0 1 1
+ eval Back0=/var/cache/apt/backup/0/
+ Back0=/var/cache/apt/backup/0/
+ eval Back1=/var/cache/apt/backup/1/
+ Back1=/var/cache/apt/backup/1/
+ BACKUP_ARCHIVE_STAMP=/var/lib/apt/periodic/backup-archive-stamp
+ check_stamp /var/lib/apt/periodic/backup-archive-stamp 20
+ stamp=/var/lib/apt/periodic/backup-archive-stamp
+ interval=20
+ [ 20 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/backup-archive-stamp ]
+ stamp_file=/var/lib/apt/periodic/backup-archive-stamp
+ date -r /var/lib/apt/periodic/backup-archive-stamp --iso-8601
+ date --date=2015-02-14 +%s
+ stamp=1423868400
+ [ 0 != 0 ]
+ date --iso-8601
+ date --date=2015-02-15 +%s
+ now=1423954800
+ [ 0 != 0 ]
+ delta=86400
+ interval=1728000
+ debug_echo check_stamp: interval=1728000, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 3 -ge 1 ]
+ echo check_stamp: interval=1728000, now=1423954800, stamp=1423868400, delta=86400 (sec)
check_stamp: interval=1728000, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 1423868400 -gt 1424041200 ]
+ [ 86400 -ge 1728000 ]
+ return 1
+ debug_echo skip backup since too new.
+ [ 3 -ge 1 ]
+ echo skip backup since too new.
skip backup since too new.
+ random_sleep
+ RandomSleep=1800
+ apt-config shell RandomSleep APT::Periodic::RandomSleep
+ eval
+ [ 1800 -eq 0 ]
+ [ -z  ]
+ cut -d  -f1
+ cksum
+ dd if=/dev/urandom bs=2 count=1
+ RANDOM=26561
+ TIME=1361
+ debug_echo sleeping for 1361 seconds
+ [ 3 -ge 1 ]
+ echo sleeping for 1361 seconds
sleeping for 1361 seconds
+ sleep 1361
+ check_power
+ which on_ac_power
+ return 0
+ [ -r /etc/default/locale ]
+ . /etc/default/locale
+ LANG=fr_FR.UTF-8
+ export LANG LANGUAGE LC_MESSAGES LC_ALL
+ UPDATED=0
+ UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
+ check_stamp /var/lib/apt/periodic/update-stamp 2
+ stamp=/var/lib/apt/periodic/update-stamp
+ interval=2
+ [ 2 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/update-stamp ]
+ stamp_file=/var/lib/apt/periodic/update-stamp
+ date -r /var/lib/apt/periodic/update-stamp --iso-8601
+ date --date=2015-02-14 +%s
+ stamp=1423868400
+ [ 0 != 0 ]
+ date --iso-8601
+ date --date=2015-02-15 +%s
+ now=1423954800
+ [ 0 != 0 ]
+ delta=86400
+ interval=172800
+ debug_echo check_stamp: interval=172800, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 3 -ge 1 ]
+ echo check_stamp: interval=172800, now=1423954800, stamp=1423868400, delta=86400 (sec)
check_stamp: interval=172800, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 1423868400 -gt 1424041200 ]
+ [ 86400 -ge 172800 ]
+ return 1
+ debug_echo download updated metadata (not run).
+ [ 3 -ge 1 ]
+ echo download updated metadata (not run).
download updated metadata (not run).
+ DOWNLOAD_UPGRADEABLE_STAMP=/var/lib/apt/periodic/download-upgradeable-stamp
+ [ 0 -eq 1 ]
+ debug_echo download upgradable (not run)
+ [ 3 -ge 1 ]
+ echo download upgradable (not run)
download upgradable (not run)
+ UPGRADE_STAMP=/var/lib/apt/periodic/upgrade-stamp
+ which unattended-upgrade
+ check_stamp /var/lib/apt/periodic/upgrade-stamp 1
+ stamp=/var/lib/apt/periodic/upgrade-stamp
+ interval=1
+ [ 1 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/upgrade-stamp ]
+ stamp_file=/var/lib/apt/periodic/upgrade-stamp
+ date -r /var/lib/apt/periodic/upgrade-stamp --iso-8601
+ date --date=2015-02-14 +%s
+ stamp=1423868400
+ [ 0 != 0 ]
+ date --iso-8601
+ date --date=2015-02-15 +%s
+ now=1423954800
+ [ 0 != 0 ]
+ delta=86400
+ interval=86400
+ debug_echo check_stamp: interval=86400, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 3 -ge 1 ]
+ echo check_stamp: interval=86400, now=1423954800, stamp=1423868400, delta=86400 (sec)
check_stamp: interval=86400, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 1423868400 -gt 1424041200 ]
+ [ 86400 -ge 86400 ]
+ return 0
+ unattended-upgrade -d
Paquets initialement sur la liste noire :
Initial whitelisted packages:
Démarrage du script de mise à niveau automatique
Les origines permises sont : ['o=Debian,n=jessie', 'o=Debian,n=jessie-updates', 'o=Debian,n=jessie,l=Debian-Security', 'origin=Debian,archive=jessie,label=Debian-Security']
pkgs that look like they should be upgraded:

Fetched 0 B in 0s (0 B/s)                                                      
fetch.run() result: 0
blacklist: []
whitelist: []
InstCount=0 DelCount=0 BrokenCount=0
Aucun paquet à mettre à niveau automatiquement
+ update_stamp /var/lib/apt/periodic/upgrade-stamp
+ stamp=/var/lib/apt/periodic/upgrade-stamp
+ touch /var/lib/apt/periodic/upgrade-stamp
+ debug_echo unattended-upgrade (success)
+ [ 3 -ge 1 ]
+ echo unattended-upgrade (success)
unattended-upgrade (success)
+ AUTOCLEAN_STAMP=/var/lib/apt/periodic/autoclean-stamp
+ check_stamp /var/lib/apt/periodic/autoclean-stamp 30
+ stamp=/var/lib/apt/periodic/autoclean-stamp
+ interval=30
+ [ 30 -eq 0 ]
+ [ ! -f /var/lib/apt/periodic/autoclean-stamp ]
+ stamp_file=/var/lib/apt/periodic/autoclean-stamp
+ date -r /var/lib/apt/periodic/autoclean-stamp --iso-8601
+ date --date=2015-02-14 +%s
+ stamp=1423868400
+ [ 0 != 0 ]
+ date --iso-8601
+ date --date=2015-02-15 +%s
+ now=1423954800
+ [ 0 != 0 ]
+ delta=86400
+ interval=2592000
+ debug_echo check_stamp: interval=2592000, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 3 -ge 1 ]
+ echo check_stamp: interval=2592000, now=1423954800, stamp=1423868400, delta=86400 (sec)
check_stamp: interval=2592000, now=1423954800, stamp=1423868400, delta=86400 (sec)
+ [ 1423868400 -gt 1424041200 ]
+ [ 86400 -ge 2592000 ]
+ return 1
+ debug_echo autoclean (not run)
+ [ 3 -ge 1 ]
+ echo autoclean (not run)
autoclean (not run)
+ check_size_constraints
+ MaxAge=0
+ apt-config shell MaxAge APT::Archives::MaxAge
+ eval
+ apt-config shell MaxAge APT::Periodic::MaxAge
+ eval MaxAge='365'
+ MaxAge=365
+ MinAge=2
+ apt-config shell MinAge APT::Archives::MinAge
+ eval
+ apt-config shell MinAge APT::Periodic::MinAge
+ eval MinAge='180'
+ MinAge=180
+ MaxSize=0
+ apt-config shell MaxSize APT::Archives::MaxSize
+ eval
+ apt-config shell MaxSize APT::Periodic::MaxSize
+ eval MaxSize='4000'
+ MaxSize=4000
+ Cache=/var/cache/apt/archives/
+ apt-config shell Cache Dir::Cache::archives/d
+ eval Cache='/var/cache/apt/archives/'
+ Cache=/var/cache/apt/archives/
+ [ -z /var/cache/apt/archives/ ]
+ [ ! 365 -eq 0 ]
+ [ ! 180 -eq 0 ]
+ debug_echo aged: ctime <365 and mtime <365 and ctime>180 and mtime>180
+ [ 3 -ge 1 ]
+ echo aged: ctime <365 and mtime <365 and ctime>180 and mtime>180
aged: ctime <365 and mtime <365 and ctime>180 and mtime>180
+ xargs -r -0 rm -f
+ find /var/cache/apt/archives/ -name *.deb ( -mtime +365 -and -ctime +365 ) -and -not ( -mtime -180 -or -ctime -180 ) -print0
+ [ ! 4000 -eq 0 ]
+ MaxSize=4096000
+ date --iso-8601
+ date --date=2015-02-15 +%s
+ now=1423954800
+ MinAge=15552000
+ ls -rt /var/cache/apt/archives//approx_5.5-1_amd64.deb (..............)/var/cache/apt/archives//wondershaper_1.1a-6_all.deb
+ du -s /var/cache/apt/archives/
+ du=66144 /var/cache/apt/archives/
+ size=66144
+ [ 66144 -lt 4096000 ]
+ debug_echo end remove by archive size:  size=66144 < 4096000
+ [ 3 -ge 1 ]
+ echo end remove by archive size: size=66144 < 4096000
end remove by archive size: size=66144 < 4096000
+ break
 

Dernière modification par anonyme (15-02-2015 14:22:58)

#17 17-02-2015 15:28:14

anonyme
Invité

Re : [resolu]mise a jour auto serveur

bonjour

le retour est positif pour la mise a jour auto (pas comme les cartes videos ........ wink )

mail de cette nuit:



premier message par mail de cron (apt)


Cron <root@debian10> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

/etc/cron.daily/apt:
verbose level 2
check_stamp: interval=1728000, now=1424127600, stamp=1423868400, delta=259200 (sec)
skip backup since too new.
sleeping for 1608 seconds
check_stamp: interval=259200, now=1424127600, stamp=1423868400, delta=259200 (sec)
download updated metadata (success).
send dbus signal (success)
check_stamp: interval=259200, now=1424127600, stamp=1423868400, delta=259200 (sec)
download upgradable (success)
check_stamp: interval=86400, now=1424127600, stamp=1424041200, delta=86400 (sec)
unattended-upgrade (success)
check_stamp: interval=2592000, now=1424127600, stamp=1423868400, delta=259200 (sec)
autoclean (not run)
aged: ctime <365 and mtime <365 and ctime>180 and mtime>180
end remove by archive size: size=259060 < 4096000

second message par mail de unattended-upgrades

unattended-upgrades result for 'debian10': 'True'


La mise à niveau automatique a renvoyé : True

Packages that were upgraded:
grep libldap-2.4-2

Journal de unattended-upgrades :
Paquets initialement sur la liste noire :
Initial whitelisted packages:
Démarrage du script de mise à niveau automatique
Les origines permises sont : ['o=Debian,n=jessie', 'o=Debian,n=jessie-updates', 'o=Debian,n=jessie,l=Debian-Security', 'origin=Debian,archive=jessie,label=Debian-Security']
Packages that will be upgraded: grep libldap-2.4-2
Écriture du journal de dpkg dans « /var/log/unattended-upgrades/unattended-upgrades-dpkg.log »
Toutes les mises à niveau ont été installées

 



reste a affiner les reglages mais tout est correct
@++

Pied de page des forums