Outils pour utilisateurs

Outils du site


blog

Apt dpkg postinst debug

LANG=C apt-get -f install                                                                                                                                                          Err 100
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-31-generic linux-headers-3.2.0-31 linux-headers-3.2.0-27 libclamav6 linux-headers-3.2.0-27-generic libtommath0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-pc (1.99-21ubuntu3.20) ...
Killed
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 137
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
/var/lib/dpkg/info/grub-pc.postinst
/var/lib/dpkg/info/grub-pc.postrm
/var/lib/dpkg/info/grub-pc-bin.md5sums
/var/lib/dpkg/info/grub-pc-bin.list
/var/lib/dpkg/info/grub-pc.prerm
/var/lib/dpkg/info/grub-pc.config
/var/lib/dpkg/info/grub-pc.templates
/var/lib/dpkg/info/grub-pc.conffiles
/var/lib/dpkg/info/grub-pc.preinst
/var/lib/dpkg/info/grub-pc.md5sums
/var/lib/dpkg/info/grub-pc.list

/var/lib/dpkg/info/grub-pc.postinst

#!/bin/bash -x
2025/03/24 15:06

Notes Ansible - callback plugins

ansible/plugins/callback/

ansible.cfg

[defaults]
 
# change the default callback, you can only have one 'stdout' type  enabled at a time.
#stdout_callback = skippy
stdout_callback = kafka_logger
 
# Callback pluging activated for /usr/bin/ansible too
bin_ansible_callbacks = true
 
# enable callback plugins, they can output to stdout but cannot be 'stdout' type.
#callback_whitelist = timer, mail
callback_whitelist = timer, mail
 
# callback plugin path
# cp -p /usr/lib/python3.6/site-packages/ansible/plugins/callback/timer.py ansible/plugins/callback/
callback_plugins   = $PWD/ansible/plugins/callback
ansible-doc -t callback -l
2025/03/24 15:06

Notes analyse de paquets réseau avec Wireshark

Wireshark - filtres

Paquets en erreurs ?

!_ws.expert.message == "Retransmission (suspected)" && !_ws.expert.message == "Duplicate ACK (#1)" && !_ws.expert.message == "Out-Of-Order segment"
TZ="Europe/Paris" tshark -n -tad -r tcpdump_client.pcap -Y "smb2.cmd == 5"
$ TZ="Europe/Paris" capinfos -aeuc tcpdump_client.pcap 
File name:           0050-nonworking_cp_tcpdump_client.pcap
Number of packets:   2,720 k
Capture duration:    111.092169 seconds
First packet time:   2022-08-19 14:43:44.519951
Last packet time:    2022-08-19 14:45:35.612120

FIXME

2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki