Aptitude ne se ferme pas correctement après son taf!

Salut,

(Cf.Checkrestart, étrange non ?) Autre fil me semble t-il … :083

ps: je cumule ces jours derniers … :mrgreen:

Bon pour cette fois, en tuant ce processus avec htop.

These processes do not seem to have an associated init script to restart them: aptitude: 23520 /usr/bin/aptitude-curses 24522 /usr/bin/aptitude-curses root@machine1:~# uptime 09:36:21 up 15:17, 4 users, load average: 2.50, 2.48, 2.51

root@machine1:~# checkrestart Found 0 processes using old versions of upgraded files root@machine1:~# uptime 09:37:46 up 15:18, 4 users, load average: 1.73, 2.32, 2.46 root@machine1:~#

Ce même processus qui revient au quotidien :mrgreen: depuis quelques jours et que je dois killer, sinon j’ai droits à ceci, aptitude qui coince.

Et pour raisons :

[quote]root@machine1:~# aptitude update
E: Impossible d’obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d’administration (/var/lib/dpkg/). Il est possible qu’un autre processus l’utilise.
W: Impossible de verrouiller le fichier cache : cela est en général dû à une installation simultanée de paquets avec dpkg ou un autre outil comme APT. Ouverture en mode lecture seule : AUCUNE des modifications de l’état des paquets que vous pourrez faire ne sera conservée.
Atteint ftp.fr.debian.org lenny Release.gpg
Ign ftp.fr.debian.org/debian/ lenny/contrib Translation-fr

Atteint ftp.fr.debian.org experimental/non-free amd64 Packages
E: Impossible d’obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d’administration (/var/lib/dpkg/). Il est possible qu’un autre processus l’utilise.
E: Impossible de reconstruire le cache des paquets
E: Impossible d’obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d’administration (/var/lib/dpkg/). Il est possible qu’un autre processus l’utilise.

W: Impossible de verrouiller le fichier cache : cela est en général dû à une installation simultanée de paquets avec dpkg ou un autre outil comme APT. Ouverture en mode lecture seule : AUCUNE des modifications de l’état des paquets que vous pourrez faire ne sera conservée.
root@machine1:~#[/quote]

Une fois ce processus killé (/usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true) je peux lancer update …

En recherchant cette expression “APT::Get::Show-Upgraded=true

[code]/var/lib/cron-apt/-etc-cron-apt-config/mailchanges/3-download-dist-upgrade-d-y_-o_APT::Get::Show-Upgraded=true

/var/lib/cron-apt/-etc-cron-apt-config/mailchanges/5-install-dist-upgrade-q-y_-o_APT::Get::Show-Upgraded=true_-o_Dir::Etc::sourceslist=-etc-apt-sources.list.d-sources.list_cron-apt_-o_Dir::Etc::sourceparts=noexistent_-o_DPkg::Options::=–force-confdef_-o_DPkg::Options::=–force-confold
[/code]

Se ne sont pas mes petits doigts velus qui ont trifouillés la dedans! :snooty:

[quote]$ cat /var/lib/cron-apt/-etc-cron-apt-config/mailchanges/3-download-dist-upgrade-d-y_-o_APT::Get::Show-Upgraded=true

CRON-APT LINE: /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Running prelink, please wait…
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

Running prelink, please wait…
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

Running prelink, please wait…

…[/quote]

68481 lignes comme celles-ci … ???

Ce qui me ramène peut être au fichier /etc/cron-apt/config ?

Mon mien :laughing: de /etc/cron-apt/config sur lequel je n’ai pas mis les mains depuis des lustres! :033

:116 tout compte fait, je ne sais pas trop, si seulement j’y ai touché une seule fois. :think:

[code]# Configuration for cron-apt.

The cron config is located in /etc/cron.d/cron-apt

This shows the defaults.

The command used to execute all actions. By default, apt-get is used.

Change this to /usr/bin/aptitude to use aptitude instead, which will

resolve changed Recommends (and Suggests as well, if aptitude is so

configured). You can also set other utilities (especially useful in the

config.d directory) so set some completely different tool.

OBSERVE that this tool is indended for apt-get and tools like aptitude do not

have full support for noninteractive upgrades. You may have to tune options

to not create infinit logfiles for example.

APTCOMMAND=/usr/bin/apt-get

APTCOMMAND=/usr/bin/aptitude

APTCOMMAND=/usr/bin/apt-file

A path is needed for this to work. This is the default PATH.

export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

The random sleep time in seconds. This is used to prevent clients from

accessing the APT sources all at the same time and overwhelming them.

Default is 3600 seconds which means one hour.

RUNSLEEP=3600

The minimum amount of disc space (in kB) that need to exist on the

device where temporary files are created (mktemp) to allow cron-apt

to run. If set to 0 it will always continue even if empty.

MINTMPDIRSIZE=10

The directory where the actions is stored.

ACTIONDIR="/etc/cron-apt/action.d"

The directory where configuration per action is stored. The message file

must have the same name as the action file.

ACTIONCONFDIR="/etc/cron-apt/config.d"

The directory where messages that will be prepended to the email that is

sent (per action) is stored. The message file must have the same name as

the action file.

MAILMSGDIR="/etc/cron-apt/mailmsg.d"

The directory where messages that will be prepended to text that is

sent (per action) to syslog. The message file must have the same name as

the action file.

SYSLOGMSGDIR="/etc/cron-apt/syslogmsg.d"

The directory where messages that will be prepended to the error message

(per action) is stored. The message file must have the same name as

the action file.

ERRORMSGDIR="/etc/cron-apt/errormsg.d"

The directory where messages that will be prepended to the log (debug)

message (per action) is stored. The message file must have the same name as

the action file.

LOGMSGDIR="/etc/cron-apt/logmsg.d"

The directory where messages that will be prepended to the mail message

(per MAILON type) is stored. The message file must have the same name as

the $MAILON directive.

MAILONMSGSDIR="/etc/cron-apt/mailonmsgs"

The directory where messages that will be prepended to the syslog message

(per SYSLOGON type) is stored. The message file must have the same name as

the $SYSLOGON directive.

SYSLOGONMSGSDIR="/etc/cron-apt/syslogonmsgs"

Value: “” (warn if dotlockfile not installed)

“nowarn” (don’t give warning if dotlockfile not installed)

NOLOCKWARN=""

The file that contains error messages.

ERROR="/var/log/cron-apt/error"

The file that contains current run information

when still running the script.

TEMP="/var/log/cron-apt/temp"

The logfile (for debugging). Use syslog for normal logging.

LOG="/var/log/cron-apt/log"

The mail file.

MAIL="/var/log/cron-apt/mail"

The email address to send mail to.

MAILTO=“root”

When to send email about the cron-apt results.

Value: error (send mail on error runs)

upgrade (when packages are upgraded)

changes (mail when change in output from an action)

output (send mail when output is generated)

always (always send mail)

(else never send mail)

MAILON=“error”

Value: error (syslog on error runs)

upgrade (when packages is upgraded)

changes (syslog when change in output from an action)

output (syslog when output is generated)

always (always syslog)

(else never syslog)

SYSLOGON=“upgrade”

Value: error (exit on error only)

(else never exit)

EXITON=“error”

Value: verbose (log everything)

always (always log)

upgrade (when packages is upgraded)

changes (log when change in output from an action)

output (log when output is generated)

error (log error runs only)

(else log nothing)

DEBUG=“output”

What to do with the diff when *ON=changes.

Value: prepend (prepend to the output)

append (append to the output)

only (only show the diff, not the output itself)

(else do nothing)

DIFFONCHANGES=prepend

General apt options that will be passed to all APTCOMMAND calls.

Use “-o quiet” instead of “-q” for aptitude compatibility.

OPTIONS="-o quiet=1"

You can for example add an additional sources.list file here.

OPTIONS="-o quiet=1 -o Dir::Etc::SourceList=/etc/apt/security.sources.list"

You can also set an alternative sources.list file here.

OPTIONS="-o quiet=1 -o Dir::Etc::SourceList=/etc/apt/security.sources.list -o Dir::Etc::SourceParts="/dev/null""

If you want to allow unauthenticated and untrusted packages add the

following to your options directive.

OPTIONS="-o quiet=1 -o APT::Get::AllowUnauthenticated=true -o aptitude::Cmdline::ignore-trust-violations=yes"

To limit the bandwidth used use the following line. This example limit the

bandwidth usage to 25 kB/s.

OPTIONS="-o Acquire::http::Dl-Limit=25"

additional APT configuration file that is loaded first. This can be set in

order to use a completely different APT configuration for cron-apt. See the

/usr/share/doc/cron-apt/README and apt.conf(5) for details

export APT_CONFIG=/etc/apt/cron.apt.paths

Do not run the command, if there is an error in the previous run (default).

Value: error (do not run if there is an error on last run)

(else always run, remove previous error file and run)

DONTRUN=""

If this file exist cron-apt will silently exit.

REFRAINFILE=/etc/cron-apt/refrain

If this is non-empty, it will be used as the host name in subjects of

generated e-mail messages. If this is empty, the output of uname -n

will be used.

HOSTNAME=“machine1”

Ignore lines matching this regexp to determine whether changes occurred

for MAILON=“changes”. If empty no lines will be ignored.

Suggested value for aptitude:

DIFFIGNORE="^(Get:[[:digit:]]+|Hit|Ign|Del|Fetched|Freed|Reading)[[:space:]]"

Suggested value for apt-get:

DIFFIGNORE="^(Get:[[:digit:]]+|Hit|Ign)[[:space:]]"

Default:

DIFFIGNORE=""

Support for mail headers. You can add up to 9 headers to the mail sent.

This below example can be used for OTRS.

The default is no headers added.

XHEADER1=“X-OTRS-Queue: updates”

XHEADER2=“X-OTRS-Loop: true”

Umask for the files created by the APT command used. In all other cases

umask 077 will be used.

UMASK_APT=“022”

APTCOMMAND=/usr/bin/aptitude
MAILTO="mon_adresse_labas@mail.com"
MAILON=“upgrade”
[/code]
Cela vous parle t’il ? :033

* edit *

Précisions.

rm /var/lib/dpkg/lock 

Pas mieux, il me faut à chaque fois (quotidien pour ainsi dire) tuer le processus /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true

Et aucune session root/user en cours bien sûr! :033
Pas de synaptic et compagnie (non installé)

root@machine1:~# ls -l /var/lib/dpkg/lock -rw-r----- 1 root root 0 13 mars 11:09 /var/lib/dpkg/lock root@machine1:~# root@machine1:~# lsof | grep "/var/lib/dpkg/lock" root@machine1:~#

* edit1 *

impossible-d-ouvrir-le-fichier-verrou-var-lib-dpkg-lock-t6023.html#p55807

J’ignore si ma démarche est la bonne … :think:

Mais bon … :033

Serait ce cron /etc/cron-apt/action.d/3-download qui est en cause ?

Son contenu.

autoclean -y dist-upgrade -d -y -o APT::Get::Show-Upgraded=true

Si oui, comment provoqué de nouveau cette tâche cron pour lancer sur ce processus, un ps.

:~# ps aux | grep aptitude

Histoire de recréer cette situation et de voir ce qui en découle.

Je ne la trouve pô cette tâche cron … :mrgreen:

* edit *

Il me semble avoir trouver …

loreleil@machine1:~$ aptitude -s dist-upgrade -d -y -o APT::Get::Show-Upgraded=true Aucun paquet ne va être installé, mis à jour ou enlevé. 0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour. Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 0 o seront utilisés. Charger/installer/enlever des paquets. loreleil@machine1:~$
Dans le même temps …

root@machine1:~# ps aux | grep aptitude loreleil 8059 71.0 2.2 87032 23164 pts/2 R+ 13:10 0:01 aptitude -s dist-upgrade -d -y -o APT::Get::Show-Upgraded=true root 8061 0.0 0.0 10100 884 pts/0 S+ 13:10 0:00 grep aptitude root@machine1:~#

* edit1 *

Je n’ai pas réussi à reproduire cette situation. :mrgreen:

[code]root@machine1:~# aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Aucun paquet ne va être installé, mis à jour ou enlevé.
0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 0 o d’archives. Après dépaquetage, 0 o seront utilisés.
Running prelink, please wait…
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

root@machine1:~#
[/code]

:~# ps aux | grep aptitude root 8166 11.6 2.1 118572 22448 pts/0 D+ 13:14 0:01 aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true root 8753 0.0 0.0 10100 880 pts/2 S+ 13:15 0:00 grep aptitude root@machine1:~#

root@machine1:~# aptitude update Atteint http://security.debian.org squeeze/updates Release.gpg Ign http://security.debian.org/ squeeze/updates/contrib Translation-fr Ign http://security.debian.org/ squeeze/updates/main Translation-fr Prendre : 1 http://www.debian-multimedia.org wheezy Release.gpg [198 B] Ign http://www.debian-multimedia.org/ wheezy/main Translation-fr

Je viens de terminer cette lecture (fils and posts) google.com/cse?cx=0030367373 … gsc.page=1

Mon souci, aptitude lancé en tâche cron (nocturne, me semble) et au petit matin, je ne peux que constater le blocage lors update.

Pour y remédier, deal of the day … Kill :laughing:

Je passe à seeks … :whistle:

Ce n’est pas toi qui a créé la tâche cron ?
Ou as-tu trouvé cette commande ? Qu’est-elle censée faire exactement ?

J’ai un dist-upgrade avec apt-get (-dy) qui se lance et qui ne plante jamais…

Salut,

[/quote]

C’était bien ça. À 04H00 tapante!

En bref, j’avais lâché la configuration (à l’install … d’autres priorités) de cron-apt.
J’ai repris, et là, je peaufine … :083

Non! Mais je l’ai modifié il y a un peu plus de cinq heures.

[code]# cat /etc/cron.d/cron-apt

Regular cron jobs for the cron-apt package

Every night at 4 o’clock.

*/5 * * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
[/code]

aptitude install cron-apt

ps: La bonne commande à inclure était celle-ci.

:/etc/cron-apt/action.d# cat 5-install autoclean -q -y dist-upgrade -q -y -o APT::Get::Show-Upgraded=true

  • Mise à jour de sécurité automatique.

La dernière (cron tous les cinq minutes)

[quote=“CRON-APT completed on machine1 [/etc/cron-apt/config]”]CRON-APT RUN [/etc/cron-apt/config]: Thu Mar 15 13:00:01 CET 2012
CRON-APT SLEEP: 3256, Thu Mar 15 13:54:17 CET 2012
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Running prelink, please wait…
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
A package failed to install. Trying to recover:
dpkg: status database area is locked by another process
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…[/quote]
J’entrevois déjà nombre de barbus crier au loup. :laughing:

Quoi ? :118 Des MAJ de sécurité automatique ? :118 Non! Jamais! :astonished: À exclure catégoriquement! :108

Et ben SI!!

Notes:

J’ai des sauvegardes. Fiables et Viables! :whistle:

Local >> dd internes/externes (nombreux les dd :wink: de marques et références différentes, dans des lieux différents)
Dernière restauration local en date du 25/02/2012 (j’avais morflé avec mysql et pas le temps de chercher, alors … :whistle: )

Distant >> local >> dd internes/externes (nombreux les dd :wink: …)

Il y a trois jours, j’ai mis en pratique une restauration, sur une nouvelle location. kimsufi pour un mois.

  • Partitionnement à l’identique (source)

  • Installation basique: Debian 6.0

  • Install complémentaires:

_ ssh
_ sudo
_ rsync

  • Restauration (ma source, premier dédié) sur nouveau kimsufi.

Les doigts dans le nez!! :dance:

J’y ai retrouvé toutes mes billes, sans aucune exceptions! :violin:

Voilà, vous avez l’essence. Z’avez bien un silex … :slightly_smiling:

En quoi prendrais-je plus de risque à opter pour une mise à jour de sécurité (et je parle uniquement et seulement du dépôt deb security.debian.org/ squeeze/updates main contrib non-free inclus dans ma config cron-apt) automatique dans de tels conditions plus que favorables.

Sachant que je ne suis pas toujours et constamment au clavier pour gérer cela, à la mano!

Mieux vaudrait passer outre, la maj de sécu automatique, et/ou ne pas avoir la possibilité de le faire à la mano en veillant à son bon déroulement.

N’est ce pas … :033

Et ne pouvant le faire à la mano, il est très certainement plus approprié de prendre le risque de ce faire baiser par un hacker (un vrai, pas un kiddie) qui profiterai des failles de sécurité de je n’aurai pu combler manuellement avec update/upgrade.

Bien sûr … :033

ps: encore deux/trois heures, et la coche verte, si tout va bien, apparemment y a pas de raison!

Comme dirait mon ami Hubert …

Alligator(427) je vous attend … :005 :005

* edit *

Correction.

J’attendrai de voir passer la prochaine maj de sécurité pour le vert … :wink:

Je suis les événements, :083 j’ai modifié la tâche, pour chaque heure.

J’ai pas saisi là!

[quote]:~# tail -n 200 /var/log/cron-apt/log

CRON-APT RUN [/etc/cron-apt/config]: Thu Mar 15 20:00:02 CET 2012
CRON-APT SLEEP: 438, Thu Mar 15 20:07:20 CET 2012
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/aptitude update -o quiet=2
Reading package lists…
W: Duplicate sources.list entry security.debian.org/ squeeze/updates/main amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_main_binary-amd64kages)
W: Duplicate sources.list entry security.debian.org/ squeeze/updates/contrib amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_contrib_binary64_Packages)
W: Duplicate sources.list entry security.debian.org/ squeeze/updates/non-free amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_non-free_binamd64_Packages)
W: You may want to run apt-get update to correct these problems
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude autoclean -y
Reading package lists…
[/quote]
Mon source ne comprend que ce dépôt sécurity!

[quote]# squeeze security
deb security.debian.org/ squeeze/updates main contrib non-free
#deb-src security.debian.org/ squeeze/updates main contrib non-free
[/quote]
Cron interprète cela comme une duplication. :118

  • main

  • contrib

  • non-free

    :think::017

J’avance … :083

Après coup! :mrgreen:

Dans les premiers prémices de conf de cron-apt (il y a quelques semaines), mise en stand-bye pour d’autres priorités, j’ai retrouvé un fichier créer que je viens de commenter.

Dans un premier temps, j’ai cru que c’était lui qui faisais doublon.

[code]:~# cat /etc/apt/sources.list.cron-apt
#deb http://security.debian.org/ squeeze/updates main contrib non-free

root@machine1:~# [/code]

Ben il n’en est rien! :astonished:

[code]Reading task descriptions…
CRON-APT RUN [/etc/cron-apt/config]: Thu Mar 15 21:00:01 CET 2012
CRON-APT SLEEP: 1607, Thu Mar 15 21:26:48 CET 2012
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/aptitude update -o quiet=2
Reading package lists…
W: Duplicate sources.list entry http://security.debian.org/ squeeze/updates/main amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ squeeze/updates/contrib amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_contrib_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ squeeze/updates/non-free amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_non-free_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude autoclean -y
Reading package lists…

Reading task descriptions…
The following packages will be upgraded:
libcairo2
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/947 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
grave bugs of libcairo2 (1.10.2-6.1 -> 1.10.2-7~bpo60+1)
#658252 - libcairo2: Text quickly becomes rectangles
#657097 - libcairo2: Evolution crash at startup (core dumped)
Summary:
libcairo2(2 bugs)


****** Exit with an error by force in order to stop the installation. ******


E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
A package failed to install. Trying to recover:
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
root@machine1:~# [/code]

Commenté le dépôt security dans le sources.list ? on verra … :think:
ps: c’est fait.

apt-listbugs également, à voir … :confused:

libcairo2 est installé, mais non pinné dans mon preferences, je vois pas ce qu’il vient foutre là!

Et l’error code (10) :017

Un Cht’i coup de pouce ? nan … :033

Bon, je n’ai pas tout lu, mais j’ai apt-cron qui se lance chaque jour avec anacron: apt-get update, upgrade, avec dépôts de sécu, principaux, update, iceweasel en release des dépôts mozilla, libreoffice en backports, et jusqu’au mois dernier les dépôts multimédia. Je n’ai pas eu un plantage depuis octobre…Ca ne vient pas des dépôts.

l’erreur avec cairo2 date de ce matin, ça va passer.

Pour info

/etc/cron.d/cron-apt

[code]#

Regular cron jobs for the cron-apt package

Every night at 4 o’clock.

0 4 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt

Every hour.

0 * * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2

Every five minutes.

*/5 * * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2[/code]

/etc/cron.d/anacron

[code]# /etc/cron.d/anacron: crontab entries for the anacron package

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

30 7 * * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null[/code]

Commandes actives en /etc/cron-apt/config

APTCOMMAND=/usr/bin/apt-get RUNSLEEP=60 OPTIONS="-o quiet=1 -o Dir::Etc::SourceList=/etc/apt/sources.list" MAILTO="root" MAILON="always" LOG="/var/log/cron-apt/log"

liste des fichiers de tâches présents en /etc/cron.daily

0anacron apt-listbugs dpkg man-db popularity-contest apt bsdmainutils exim4-base mlocate standard aptitude cron-apt logrotate passwd

Et vogue le navire.

Stef

Une chose, Merci michel, voici de l’eau pour mon moulin … :023

Je vais scruter tous ceci au peigne fin … :wink:

J’ai enraillé l’erreur de duplication … :wink:

[code]Reading task descriptions…
CRON-APT RUN [/etc/cron-apt/config]: Thu Mar 15 23:00:01 CET 2012
CRON-APT SLEEP: 46, Thu Mar 15 23:00:47 CET 2012
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/aptitude update -o quiet=2
Reading package lists…
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude autoclean -y
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Freed 0 B of disk space
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
The following packages will be upgraded:
libcairo2 libmozjs2d xulrunner-1.9.1
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8893 kB/9840 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
Get:1 http://security.debian.org/ squeeze/updates/main libmozjs2d amd64 1.9.1.16-13 [435 kB]
Get:2 http://security.debian.org/ squeeze/updates/main xulrunner-1.9.1 amd64 1.9.1.16-13 [8457 kB]
Running prelink, please wait…
Fetched 8893 kB in 9s (899 kB/s)
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
CRON-APT ACTION: 5-install
CRON-APT LINE: /usr/bin/aptitude autoclean -q -y
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Freed 0 B of disk space
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -q -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
The following packages will be upgraded:
libcairo2 libmozjs2d xulrunner-1.9.1
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9840 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
grave bugs of libcairo2 (1.10.2-6.1 -> 1.10.2-7~bpo60+1)
#658252 - libcairo2: Text quickly becomes rectangles
#657097 - libcairo2: Evolution crash at startup (core dumped)
Summary:
libcairo2(2 bugs)


****** Exit with an error by force in order to stop the installation. ******


E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
A package failed to install. Trying to recover:
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
root@machine1:~#
[/code]
Au tour d’apt-listbugs à présent … :033

Je m’en-tête … :033

Vois toujours pas le rapport avec cette avertissement de bug, incompréhensible! :mrgreen:

[quote]Reading task descriptions…
The following packages will be upgraded:
libcairo2 libmozjs2d xulrunner-1.9.1
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9840 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
grave bugs of libcairo2 (1.10.2-6.1 -> 1.10.2-7~bpo60+1)
#658252 - libcairo2: Text quickly becomes rectangles
#657097 - libcairo2: Evolution crash at startup (core dumped)
Summary:
libcairo2(2 bugs)[/quote]

loreleil@machine1:~$ apt-listbugs list squeeze libcairo2 Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done loreleil@machine1:~$ apt-listbugs list wheezy libcairo2 Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done loreleil@machine1:~$ apt-listbugs list sid libcairo2 Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done loreleil@machine1:~$ loreleil@machine1:~$ apt-listbugs list debian-backports libcairo2 Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done loreleil@machine1:~$ loreleil@machine1:~$ apt-listbugs list squeeze-backports libcairo2 Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done loreleil@machine1:~$
Ces bugs sont sur les backports ? Comprend pas là! :mrgreen:

loreleil@machine1:~$ acp libcairo2 libcairo2: Installé : 1.10.2-6.1 Candidat : 1.10.2-7~bpo60+1 Table de version : 1.10.2-7 0 50 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages 1.10.2-7~bpo60+1 0 100 http://backports.debian.org/debian-backports/ squeeze-backports/main amd64 Packages 1.10.2-6.2 0 90 http://ftp.fr.debian.org/debian/ wheezy/main amd64 Packages *** 1.10.2-6.1 0 100 /var/lib/dpkg/status 1.8.10-6 0 990 http://ftp.fr.debian.org/debian/ squeeze/main amd64 Packages loreleil@machine1:~$
Et encore moins celui-ci!

[quote]E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
A package failed to install.[/quote]
:017 Sinon …

[quote]CRON-APT RUN [/etc/cron-apt/config]: Fri Mar 16 00:00:01 CET 2012
CRON-APT SLEEP: 53, Fri Mar 16 00:00:54 CET 2012
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/aptitude update -o quiet=2
Reading package lists…
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude autoclean -y
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Freed 0 B of disk space
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
The following packages will be upgraded:
libcairo2 libmozjs2d xulrunner-1.9.1
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 9840 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
Get:1 security.debian.org/ squeeze/updates/main libmozjs2d amd64 1.9.1.16-13 [435 kB]
Get:2 backports.debian.org/debian-backports/ squeeze-backports/main libcairo2 amd64 1.10.2-7~bpo60+1 [947 kB]
Get:3 security.debian.org/ squeeze/updates/main xulrunner-1.9.1 amd64 1.9.1.16-13 [8457 kB]
Running prelink, please wait…
Fetched 9840 kB in 8s (1097 kB/s)
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
CRON-APT ACTION: 5-install
CRON-APT LINE: /usr/bin/aptitude autoclean -q -y
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Freed 0 B of disk space
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -q -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
The following packages will be upgraded:
libcairo2 libmozjs2d xulrunner-1.9.1
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9840 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
grave bugs of libcairo2 (1.10.2-6.1 -> 1.10.2-7~bpo60+1)
#658252 - libcairo2: Text quickly becomes rectangles
#657097 - libcairo2: Evolution crash at startup (core dumped)
Summary:

libcairo2(2 bugs)


****** Exit with an error by force in order to stop the installation. ******


E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
A package failed to install.
Trying to recover:
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
root@machine1:~#
[/quote]
:think: :017

Rhôoo lala, la fatigue ne doit pas arranger les choses non plus … :033 allez … :arrow_right:

* edit *

Allez juste avant la fée du sommeil … :115

J’ai commenté les backports, clean and compagnie … maintenant :shhh:

Salut,

De bonne augure … :dance:

[code]CRON-APT RUN [/etc/cron-apt/config]: Fri Mar 16 01:00:02 CET 2012
CRON-APT SLEEP: 55, Fri Mar 16 01:00:57 CET 2012
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/aptitude update -o quiet=2
Reading package lists…
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude autoclean -y
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Freed 0 B of disk space
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
The following packages will be upgraded:
libmozjs2d xulrunner-1.9.1
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8893 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
Get:1 http://security.debian.org/ squeeze/updates/main libmozjs2d amd64 1.9.1.16-13 [435 kB]
Get:2 http://security.debian.org/ squeeze/updates/main xulrunner-1.9.1 amd64 1.9.1.16-13 [8457 kB]
Running prelink, please wait…
Fetched 8893 kB in 7s (1119 kB/s)
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
CRON-APT ACTION: 5-install
CRON-APT LINE: /usr/bin/aptitude autoclean -q -y
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Freed 0 B of disk space
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -q -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
The following packages will be upgraded:
libmozjs2d xulrunner-1.9.1
2 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/8893 kB of archives. After unpacking 0 B will be used.
Writing extended state information…
Reading changelogs…
iceweasel (3.5.16-13) stable-security; urgency=low

  • Fixes for mfsa2012-{13-14,16,19}, also known as
    CVE-2012-0455, CVE-2012-0456, CVE-2012-0458, CVE-2012-0461.

– Mike Hommey glandium@debian.org Thu, 15 Mar 2012 08:52:09 +0100

apt-listchanges: Mailing loreleil.747@gmail.com: apt-listchanges: changelogs for machine1
(Reading database … 125464 files and directories currently installed.)
Preparing to replace libmozjs2d 1.9.1.16-12 (using …/libmozjs2d_1.9.1.16-13_amd64.deb) …
Unpacking replacement libmozjs2d …
Preparing to replace xulrunner-1.9.1 1.9.1.16-12 (using …/xulrunner-1.9.1_1.9.1.16-13_amd64.deb) …
Unpacking replacement xulrunner-1.9.1 …
Processing triggers for man-db …
Setting up libmozjs2d (1.9.1.16-13) …
Setting up xulrunner-1.9.1 (1.9.1.16-13) …
Running prelink, please wait…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
[/code]

* edit *

[quote]Writing extended state information…
Get:1 security.debian.org/ squeeze/updates/main libmozjs2d amd64 1.9.1.16-13 [435 kB]
Get:2 security.debian.org/ squeeze/updates/main xulrunner-1.9.1 amd64 1.9.1.16-13 [8457 kB]
Running prelink, please wait…
Fetched 8893 kB in 7s (1119 kB/s)[/quote]
:smiley::whistle:

[quote=“logwatch”] --------------------- dpkg status changes Begin ------------------------

Upgraded:
libmozjs2d 1.9.1.16-12 => 1.9.1.16-13
xulrunner-1.9.1 1.9.1.16-12 => 1.9.1.16-13

---------------------- dpkg status changes End -------------------------
[/quote]

[quote=“apt-listchanges: changelogs for machine1”]iceweasel (3.5.16-13) stable-security; urgency=low

  • Fixes for mfsa2012-{13-14,16,19}, also known as
    CVE-2012-0455, CVE-2012-0456, CVE-2012-0458, CVE-2012-0461.

– Mike Hommey glandium@debian.org Thu, 15 Mar 2012 08:52:09 +0100
[/quote]
:dance:

De retour à mes moutons, Temporairement … :wink:

[quote=“CRON-APT completed on machine1 [/etc/cron-apt/config]”]CRON-APT RUN [/etc/cron-apt/config]: Fri Mar 16 18:00:02 CET 2012
CRON-APT SLEEP: 14, Fri Mar 16 18:00:16 CET 2012
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
Running prelink, please wait…
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
A package failed to install. Trying to recover:
dpkg: status database area is locked by another process
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading task descriptions…
[/quote]
Je teste quelques modif de configuration, entre autre, j’y garde un z’œil … 8)

APTCOMMAND=/usr/bin/aptitude MAILTO="mon_adresse_labas@mail.com" MAILON="upgrade" EXITON="error" DEBUG="error" DIFFONCHANGES=only