Checkrestart, étrange non ?

Salut,

Allez, après quelques péripéties (Cf.) :wink: je me jette à l’eau.

Cela fait quelque temps que ceci me turlupine. :mrgreen:

Pas de init.d restart/start proposé, mais pratiquement toujours les mêmes traînards, je crois …

Exemples:

:~# checkrestart Found 32 processes using old versions of upgraded files (23 distinct programs) dpkg: /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1.#prelink#.Vs653M not found. dpkg: /usr/lib/kde4/libexec/kio_http_cache_cleaner.#prelink#.pkOMnu not found. dpkg: /usr/bin/gnome-keyring-daemon.#prelink#.ZaBPpj not found. dpkg: /usr/sbin/console-kit-daemon.#prelink#.e32q8M not found. dpkg: /usr/bin/kerneloops-applet.#prelink#.hZt5wO not found. dpkg: /usr/bin/nepomukservicestub.#prelink#.mz5G0Q not found. (13 distinct packages) These processes do not seem to have an associated init script to restart them: kdebase-workspace-bin: 27751 /usr/bin/krunner 27733 /usr/bin/kaccess kdelibs-bin: 31117 /usr/bin/kdeinit4 27673 /usr/bin/kdeinit4 27672 /usr/bin/kdeinit4 27675 /usr/bin/kdeinit4 27721 /usr/bin/kdeinit4 27741 /usr/bin/kdeinit4 python2.6-minimal: 27797 /usr/bin/python2.6 policykit-1: 4214 /usr/lib/policykit-1/polkitd xserver-xorg-core: 27498 /usr/bin/Xorg klipper: 27800 /usr/bin/klipper knotes: 27769 /usr/bin/knotes plasma-desktop: 27729 /usr/bin/plasma-desktop kde-window-manager: 27723 /usr/bin/kwin kdebase-runtime: 32500 /usr/bin/kwalletd 27746 /usr/bin/nepomukserver 27728 /usr/bin/knotify4 27725 /usr/bin/kglobalaccel kmix: 27767 /usr/bin/kmix xulrunner-9.0: 4224 /usr/lib/xulrunner-9.0/xulrunner-stub udisks: 26779 /usr/lib/udisks/udisks-daemon :~#
Pourquoi ? :017

Processus en stand-bye ? en attente ? attente de quoi ? de qui ? autre ?

Un os … please … :083

Salut,

[quote]gerard@glu:/home/users$ sudo checkrestart
[sudo] password for gerard:
Found 0 processes using old versions of upgraded files
gerard@glu:/home/users$
[/quote]

“Peut mieux faire” comme disaient mes profs sur mes bulletins :slightly_smiling:
Tout dépend de ton sources.list !

Ces processus semblent liés à l’environnement graphique. Si tu n’as pas redémarré X après la mise à jour, il faudrait le faire.

Quelle est l’utilité de Checkrestart?

RE,

Aucune idée, je l’ai juste installé pour voir et effacé immédiatement :laughing:

man checkrestart est ton ami.
Il permet notamment de voir quels processus utilisent encore les anciennes versions de bibliothèques partagées qui ont été mises à jour, et sont donc potentiellement vulnérables si la mise à jour concerne une faille de sécurité.

Salut,

Conclusion, je devais avoir loupé l’installation puisque j’ai eu comme réponse que man n’existait pas :blush:

Salut,

@Gérard

[quote=“ggoodluck47”]Salut,

Tout dépend de ton sources.list ![/quote]
?
Tu me poses vraiment un os! Et de taille … :smiley:

Pas de graphique sur mon dédié.
Souces.list et preferences identiques.

root@ksxxx:/usr/bin# checkrestart Found 0 processes using old versions of upgraded files root@ksxxx:/usr/bin#

@Pascal

Ce souci réapparaît quelques heures (+ ou - 4h max.) après redémarrage, le dernier en date.

root@machine1:~# uptime 13:10:46 up 16 days, 22:21, 5 users, load average: 0.02, 0.07, 0.07 root@machine1:~#

@M3t4linux

Pascal à résumais très clairement.

Pour lancer checkrestart en root ou sudo …

Préalablement.

Re,

Bien sûr j’avais installé Debian-goodies c’est man checkrestart qui m’a répondu qu’il n’y avait pas de page man le concernant.

C’est vrai ce que dit Pascal, mais comme je ne fait jamais de mise à jour avec kde lancé, ceci ne m’était pas venu à l’esprit !

Confirmation, un problème existe au niveau de KDE ! SMXI met en hold sans qu’ils soient dans preferences plusieurs paquets majeurs de KDE et j’ai donc 22 paquets à la traine en mise à jour :slightly_smiling:

En même temps, c’est le 4.7 qui vient tout juste d’arriver dans unstable (enfin ! depuis le temps qu’il est dans experimental et que je le surveille du coin de l’œil… :mrgreen:) donc rien de très étonnant à ce qu’il soit buggé pour le moment. :slightly_smiling:

root@machine1:~# checkrestart Found 0 processes using old versions of upgraded files root@machine1:~# uptime 18:30:42 up 11 min, 3 users, load average: 0.53, 0.40, 0.30 root@machine1:~#
Pour combien d’heures … :think:

Correction. :033

Comme le faisais remarquer Pascal … :wink:

Jusqu’à la prochaine mise à jour. :doh:

root@machine1:~# checkrestart
Found 0 processes using old versions of upgraded files
root@machine1:~# uptime
 19:30:14 up  1:11,  3 users,  load average: 0.21, 0.26, 0.29
root@machine1:~# 

Merci pour le nom du paquet!!

Salut,

De rien. :wink:

Bon, ben … :017

root@machine1:~# checkrestart Found 0 processes using old versions of upgraded files root@machine1:~# root@machine1:~# root@machine1:~# uptime 07:10:00 up 12:51, 2 users, load average: 2.20, 2.13, 2.07 root@machine1:~#

:doh:

root@machine1:~# checkrestart Found 1 processes using old versions of upgraded files (1 distinct program) (1 distinct packages) These processes do not seem to have an associated init script to restart them: aptitude: 23520 /usr/bin/aptitude-curses root@machine1:~# root@machine1:~# uptime 09:07:54 up 14:49, 4 users, load average: 2.68, 2.60, 2.48 root@machine1:~#

J’épluche mes log, sans trop savoir quoi chercher … :mrgreen:

  • edit *

Je n’ai lancer aucun update/upgrade peut être du côté de cron :think:

Bon pour cette fois, :mrgreen:

root@machine1:~# checkrestart Found 2 processes using old versions of upgraded files (1 distinct program) (1 distinct packages) 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:~#
En tuant ce processus avec htop.

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 depuis quelques jours et que je dois killer.

Et pour raison :

[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 … :think:

Où est je mis les mains ? :doh:

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

/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

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

[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

[b]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
[/b]
Running prelink, please wait…


[/quote]
68481 lignes comme celles-ci … ??? :118

:think:

S’agit il du fichier /etc/cron-apt/config ?

Mon mien :laughing: /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é un 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 ?

Non

# cat /etc/cron-apt/config cat: /etc/cron-apt/config: Aucun fichier ou dossier de ce type

cat ne m’a jamais parlé mais je vois que je ne suis pas seul dans ce cas là!!

Salut,

@lol

C’est normal …

@M3t4linux

Même punition … :laughing:

aptitude install cron-apt

Par mail dans les deux cas.

  • Être informer des mises à jours de sécurité.

Et/ou

  • Mise à jour de sécurité automatique. # je précise en stable

ps: en plus de update-notifier
ps: apt-watch (applet gnome) suis sous kde pas de bol, mais je trouverai (j’ai une piste :wink: )

(Cf. Aptitude ne se ferme pas correctement après son taf!) because >> configuration (sommaire) de cron-apt.

Suis sur le point de solutionner ce dernier. :whistle: :dance: