Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/03/2024, à 12:49

Mhady

[Résolu] cp: erreur de lecture dans '/bin/btrfs

Bonjour tout le monde j'ai un ubuntu server 22.04.04 LTS, Kernel 5.15.0-86-generic, et depuis quelques temps j'ai un problème de mise à jour du noyau.
quand je lance une apt update tout se passe bien jusqu'au niveau de la mise à jour du noyau et dpkg renvoie une erreur

Paramétrage de initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Paramétrage de linux-firmware (20220329.git681281e4-0ubuntu3.26) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-86-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1.
dpkg: erreur de traitement du paquet linux-firmware (--configure) :
 le sous-processus paquet linux-firmware script post-installation installé a renvoyé un état de sortie d'erreur 1
Paramétrage de linux-image-5.15.0-97-generic (5.15.0-97.107) ...
dpkg: des problèmes de dépendances empêchent la configuration de linux-image-generic :
 linux-image-generic dépend de linux-firmware ; cependant :
 Le paquet linux-firmware n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-image-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de linux-generic :
 linux-generic dépend de linux-image-generic (= 5.15.0.97.92) ; cependant :
 Le paquet linux-image-generic n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-generic (--configure) :
 problèmes de dépendances - laissé non configuré
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                                                  Aucun rapport « apport » n'a été créé 
car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                            Traitement des actions différées (« triggers ») pour initramfs-tools (0.140u
buntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-86-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
 le sous-processus paquet initramfs-tools script post-installation installé a renvoyé un état de sortie d'erreur 1
Aucun rapport « apport » écrit car MaxReports a déjà été atteint
                                                                Traitement des actions différées (« triggers ») pour linux-image-5.15.0-97-generic (5.15
.0-97.107) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-97-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-97-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: erreur de traitement du paquet linux-image-5.15.0-97-generic (--configure) :
 le sous-processus paquet linux-image-5.15.0-97-generic script post-installation installé a renvoyé un état de sortie d'erreur 1
Aucun rapport « apport » écrit car MaxReports a déjà été atteint
                                                                Des erreurs ont été rencontrées pendant l'exécution :
 linux-firmware
 linux-image-generic
 linux-generic
 initramfs-tools
 linux-image-5.15.0-97-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Dernière modification par Mhady (Le 06/03/2024, à 14:01)


Hadysydney

Hors ligne

#2 Le 06/03/2024, à 12:55

xubu1957

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Bonjour,

Fournis les retours de :

sudo apt update

les noyaux présents :

echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"
df -Th
dpkg -l | grep -v ^ii

en te servant du Retour utilisable de commande.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#3 Le 06/03/2024, à 13:00

iznobe

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Bonjour , et aussi :

sudo dpkg --configure -a

retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#4 Le 06/03/2024, à 13:14

Mhady

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

soft224@soft224:~$ sudo apt update 
Atteint :1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu jammy InRelease                   
Atteint :3 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease           
Atteint :4 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease         
Réception de :5 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease [7450 B]
Réception de :6 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7449 B]
14,9 ko réceptionnés en 1s (11,1 ko/s)   
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
2 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
soft224@soft224:~$ 

les noyaux présents :

soft224@soft224:~$ echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"

ii  linux-headers-5.15.0-86                5.15.0-86.96   all
ii  linux-headers-5.15.0-86-generic        5.15.0-86.96   amd64
ii  linux-image-5.15.0-86-generic          5.15.0-86.96   amd64
ii  linux-modules-5.15.0-86-generic        5.15.0-86.96   amd64
ii  linux-modules-extra-5.15.0-86-generic  5.15.0-86.96   amd64
ii  linux-headers-5.15.0-87                5.15.0-87.97   all
ii  linux-headers-5.15.0-91                5.15.0-91.101  all
ii  linux-headers-5.15.0-91-generic        5.15.0-91.101  amd64
ii  linux-headers-5.15.0-97                5.15.0-97.107  all
iF  linux-image-5.15.0-97-generic          5.15.0-97.107  amd64
ii  linux-headers-5.15.0-97-generic        5.15.0-97.107  amd64
ii  linux-modules-5.15.0-97-generic        5.15.0-97.107  amd64
ii  linux-modules-extra-5.15.0-97-generic  5.15.0-97.107  amd64
ii  linux-headers-generic                  5.15.0.97.92   amd64
iU  linux-generic                          5.15.0.97.92   amd64
iU  linux-image-generic                    5.15.0.97.92   amd64

Noyau courant : 5.15.0-86-generic x86_64
soft224@soft224:~$ 
soft224@soft224:~$ df -Th
Sys. de fichiers Type  Taille Utilisé Dispo Uti% Monté sur
tmpfs            tmpfs   1,2G    3,1M  1,2G   1% /run
/dev/sda1        ext4    228G     21G  196G  10% /
tmpfs            tmpfs   5,8G       0  5,8G   0% /dev/shm
tmpfs            tmpfs   5,0M       0  5,0M   0% /run/lock
tmpfs            tmpfs   5,8G       0  5,8G   0% /run/qemu
tmpfs            tmpfs   1,2G    4,0K  1,2G   1% /run/user/1000
soft224@soft224:~$ 
soft224@soft224:~$ dpkg -l | grep -v ^ii
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                                    Version                                 Architecture Description
+++-======================================-=======================================-============-================================================================================
rc  fuse                                   2.9.9-3                                 amd64        Filesystem in Userspace
iF  initramfs-tools                        0.140ubuntu13.4                         all          generic modular initramfs generator (automation)
rc  installation-report                    2.62ubuntu1                             all          system installation report
rc  libapache2-mod-php7.0                  7.0.13-0ubuntu0.16.04.1                 amd64        server-side, HTML-embedded scripting language (Apache 2 module)
rc  libapache2-mod-php7.2                  7.2.24-0ubuntu0.18.04.7                 amd64        server-side, HTML-embedded scripting language (Apache 2 module)
rc  libapache2-mod-php7.4                  8.1.2-1ubuntu2.14                       amd64        Transitional package
rc  libgdbm3:amd64                         1.8.3-13.1                              amd64        GNU dbm database routines (runtime version)
rc  libperl5.22:amd64                      5.22.1-9                                amd64        shared Perl library
rc  libpython3.6-minimal:amd64             3.6.9-1~18.04ubuntu1.4                  amd64        Minimal subset of the Python language (version 3.6)
rc  libpython3.8-minimal:amd64             3.8.10-0ubuntu1~20.04.8                 amd64        Minimal subset of the Python language (version 3.8)
rc  libssl1.1:amd64                        1.1.1f-1ubuntu2.19                      amd64        Secure Sockets Layer toolkit - shared libraries
iF  linux-firmware                         20220329.git681281e4-0ubuntu3.26        all          Firmware for Linux kernel drivers
iU  linux-generic                          5.15.0.97.92                            amd64        Complete Generic Linux kernel and headers
rc  linux-image-4.15.0-142-generic         4.15.0-142.146                          amd64        Signed kernel image generic
rc  linux-image-4.4.0-62-generic           4.4.0-62.83                             amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-5.15.0-87-generic          5.15.0-87.97                            amd64        Signed kernel image generic
rc  linux-image-5.15.0-88-generic          5.15.0-88.98                            amd64        Signed kernel image generic
rc  linux-image-5.15.0-91-generic          5.15.0-91.101                           amd64        Signed kernel image generic
iF  linux-image-5.15.0-97-generic          5.15.0-97.107                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-100-generic          5.4.0-100.113                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-104-generic          5.4.0-104.118                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-105-generic          5.4.0-105.119                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-107-generic          5.4.0-107.121                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-109-generic          5.4.0-109.123                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-110-generic          5.4.0-110.124                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-113-generic          5.4.0-113.127                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-117-generic          5.4.0-117.132                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-120-generic          5.4.0-120.136                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-121-generic          5.4.0-121.137                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-124-generic          5.4.0-124.140                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-164-generic          5.4.0-164.181                           amd64        Signed kernel image generic
rc  linux-image-5.4.0-72-generic           5.4.0-72.80                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-73-generic           5.4.0-73.82                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-74-generic           5.4.0-74.83                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-77-generic           5.4.0-77.86                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-80-generic           5.4.0-80.90                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-81-generic           5.4.0-81.91                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-84-generic           5.4.0-84.94                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-86-generic           5.4.0-86.97                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-88-generic           5.4.0-88.99                             amd64        Signed kernel image generic
rc  linux-image-5.4.0-89-generic           5.4.0-89.100                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-90-generic           5.4.0-90.101                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-91-generic           5.4.0-91.102                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-92-generic           5.4.0-92.103                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-94-generic           5.4.0-94.106                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-96-generic           5.4.0-96.109                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-97-generic           5.4.0-97.110                            amd64        Signed kernel image generic
rc  linux-image-5.4.0-99-generic           5.4.0-99.112                            amd64        Signed kernel image generic
rc  linux-image-extra-4.4.0-62-generic     4.4.0-62.83                             amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU  linux-image-generic                    5.15.0.97.92                            amd64        Generic Linux kernel image
rc  linux-modules-4.15.0-141-generic       4.15.0-141.145                          amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-4.15.0-142-generic       4.15.0-142.146                          amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-5.15.0-87-generic        5.15.0-87.97                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-5.15.0-88-generic        5.15.0-88.98                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-5.15.0-91-generic        5.15.0-91.101                           amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-100-generic        5.4.0-100.113                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-104-generic        5.4.0-104.118                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-105-generic        5.4.0-105.119                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-107-generic        5.4.0-107.121                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-109-generic        5.4.0-109.123                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-110-generic        5.4.0-110.124                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-113-generic        5.4.0-113.127                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-117-generic        5.4.0-117.132                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-120-generic        5.4.0-120.136                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-121-generic        5.4.0-121.137                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-122-generic        5.4.0-122.138                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-124-generic        5.4.0-124.140                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-164-generic        5.4.0-164.181                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-72-generic         5.4.0-72.80                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-73-generic         5.4.0-73.82                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-74-generic         5.4.0-74.83                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-77-generic         5.4.0-77.86                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-80-generic         5.4.0-80.90                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-81-generic         5.4.0-81.91                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-84-generic         5.4.0-84.94                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-86-generic         5.4.0-86.97                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-88-generic         5.4.0-88.99                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-89-generic         5.4.0-89.100                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-90-generic         5.4.0-90.101                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-91-generic         5.4.0-91.102                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-92-generic         5.4.0-92.103                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-94-generic         5.4.0-94.106                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-96-generic         5.4.0-96.109                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-97-generic         5.4.0-97.110                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-99-generic         5.4.0-99.112                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-141-generic 4.15.0-141.145                          amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-142-generic 4.15.0-142.146                          amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.15.0-87-generic  5.15.0-87.97                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.15.0-88-generic  5.15.0-88.98                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.15.0-91-generic  5.15.0-91.101                           amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-100-generic  5.4.0-100.113                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-104-generic  5.4.0-104.118                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-105-generic  5.4.0-105.119                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-107-generic  5.4.0-107.121                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-109-generic  5.4.0-109.123                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-110-generic  5.4.0-110.124                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-113-generic  5.4.0-113.127                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-117-generic  5.4.0-117.132                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-120-generic  5.4.0-120.136                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-121-generic  5.4.0-121.137                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-124-generic  5.4.0-124.140                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-164-generic  5.4.0-164.181                           amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-72-generic   5.4.0-72.80                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-73-generic   5.4.0-73.82                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-74-generic   5.4.0-74.83                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-77-generic   5.4.0-77.86                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-80-generic   5.4.0-80.90                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-81-generic   5.4.0-81.91                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-84-generic   5.4.0-84.94                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-86-generic   5.4.0-86.97                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-88-generic   5.4.0-88.99                             amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-89-generic   5.4.0-89.100                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-90-generic   5.4.0-90.101                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-91-generic   5.4.0-91.102                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-92-generic   5.4.0-92.103                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-94-generic   5.4.0-94.106                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-96-generic   5.4.0-96.109                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-97-generic   5.4.0-97.110                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-99-generic   5.4.0-99.112                            amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  lxc-common                             2.0.7-0ubuntu1~16.04.1                  amd64        Linux Containers userspace tools (common tools)
rc  php7.0-cli                             7.0.13-0ubuntu0.16.04.1                 amd64        command-line interpreter for the PHP scripting language
rc  php7.0-common                          7.0.13-0ubuntu0.16.04.1                 amd64        documentation, examples and common module for PHP
rc  php7.0-json                            7.0.13-0ubuntu0.16.04.1                 amd64        JSON module for PHP
rc  php7.0-mysql                           7.0.13-0ubuntu0.16.04.1                 amd64        MySQL module for PHP
rc  php7.0-opcache                         7.0.13-0ubuntu0.16.04.1                 amd64        Zend OpCache module for PHP
rc  php7.0-readline                        7.0.13-0ubuntu0.16.04.1                 amd64        readline module for PHP
rc  php7.2-common                          7.2.24-0ubuntu0.18.04.7                 amd64        documentation, examples and common module for PHP
rc  php7.2-json                            7.2.24-0ubuntu0.18.04.7                 amd64        JSON module for PHP
rc  php7.2-mysql                           7.2.24-0ubuntu0.18.04.7                 amd64        MySQL module for PHP
rc  php7.2-opcache                         7.2.24-0ubuntu0.18.04.7                 amd64        Zend OpCache module for PHP
rc  php7.2-readline                        7.2.24-0ubuntu0.18.04.7                 amd64        readline module for PHP
rc  php7.4-cli                             7.4.3-4ubuntu2.19                       amd64        command-line interpreter for the PHP scripting language
rc  php7.4-common                          7.4.3-4ubuntu2.19                       amd64        documentation, examples and common module for PHP
rc  php7.4-json                            7.4.3-4ubuntu2.19                       amd64        JSON module for PHP
rc  php7.4-mysql                           7.4.3-4ubuntu2.19                       amd64        MySQL module for PHP
rc  php7.4-opcache                         7.4.3-4ubuntu2.19                       amd64        Zend OpCache module for PHP
rc  php7.4-readline                        7.4.3-4ubuntu2.19                       amd64        readline module for PHP
rc  python                                 2.7.15~rc1-1                            amd64        interactive high-level object-oriented language (default version)
rc  python-pbr                             5.4.5-0ubuntu1                          all          inject useful and sensible default behaviors into setuptools - Python 2.x
rc  qemu-kvm                               1:4.2-3ubuntu6.27                       amd64        QEMU Full virtualization on x86 hardware
soft224@soft224:~$ 
soft224@soft224:~$ sudo dpkg --configure -a
Paramétrage de initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Paramétrage de linux-firmware (20220329.git681281e4-0ubuntu3.26) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-86-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1.
dpkg: erreur de traitement du paquet linux-firmware (--configure) :
 le sous-processus paquet linux-firmware script post-installation installé a renvoyé un état de sortie d'erreur 1
Paramétrage de linux-image-5.15.0-97-generic (5.15.0-97.107) ...
dpkg: des problèmes de dépendances empêchent la configuration de linux-image-generic :
 linux-image-generic dépend de linux-firmware ; cependant :
 Le paquet linux-firmware n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-image-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de linux-generic :
 linux-generic dépend de linux-image-generic (= 5.15.0.97.92) ; cependant :
 Le paquet linux-image-generic n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-generic (--configure) :
 problèmes de dépendances - laissé non configuré
Traitement des actions différées (« triggers ») pour initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-86-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
 le sous-processus paquet initramfs-tools script post-installation installé a renvoyé un état de sortie d'erreur 1
Traitement des actions différées (« triggers ») pour linux-image-5.15.0-97-generic (5.15.0-97.107) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-97-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-97-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: erreur de traitement du paquet linux-image-5.15.0-97-generic (--configure) :
 le sous-processus paquet linux-image-5.15.0-97-generic script post-installation installé a renvoyé un état de sortie d'erreur 1
Des erreurs ont été rencontrées pendant l'exécution :
 linux-firmware
 linux-image-generic
 linux-generic
 initramfs-tools
 linux-image-5.15.0-97-generic
soft224@soft224:~$ 

Hadysydney

Hors ligne

#5 Le 06/03/2024, à 13:15

bruno

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Bonjour,

cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie

Visiblement le système de fichiers et corrompu, il faut le vérifier. Il faudra aussi vérifier les disques.

Hors ligne

#6 Le 06/03/2024, à 13:20

xubu1957

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Tente :

sudo apt install --reinstall initramfs-tools 

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#7 Le 06/03/2024, à 13:26

Mhady

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

soft224@soft224:~$ sudo apt install --reinstall initramfs-tools
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  linux-headers-5.15.0-87 linux-headers-5.15.0-91 linux-headers-5.15.0-91-generic
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 2 non mis à jour.
5 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
E: Internal Error, No file name for initramfs-tools:amd64
soft224@soft224:~$ sudo apt autoremove
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets suivants seront ENLEVÉS :
  linux-headers-5.15.0-87 linux-headers-5.15.0-91 linux-headers-5.15.0-91-generic
0 mis à jour, 0 nouvellement installés, 3 à enlever et 2 non mis à jour.
5 partiellement installés ou enlevés.
Après cette opération, 180 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] 
(Lecture de la base de données... 190184 fichiers et répertoires déjà installés.)
Suppression de linux-headers-5.15.0-87 (5.15.0-87.97) ...
Suppression de linux-headers-5.15.0-91-generic (5.15.0-91.101) ...
dpkg: avertissement: lors de la suppression de linux-headers-5.15.0-91-generic, le répertoire « /lib/modules/5.15.0-91-generic » n'était pas vide, donc il n'a pas été supprimé
Suppression de linux-headers-5.15.0-91 (5.15.0-91.101) ...
Paramétrage de initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Paramétrage de linux-firmware (20220329.git681281e4-0ubuntu3.26) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-86-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1.
dpkg: erreur de traitement du paquet linux-firmware (--configure) :
 le sous-processus paquet linux-firmware script post-installation installé a renvoyé un état de sortie d'erreur 1
Paramétrage de linux-image-5.15.0-97-generic (5.15.0-97.107) ...
dpkg: des problèmes de dépendances empêchent la configuration de linux-image-generic :
 linux-image-generic dépend de linux-firmware ; cependant :
 Le paquet linux-firmware n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-image-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de linux-generic :
 linux-generic dépend de linux-image-generic (= 5.15.0.97.92) ; cependant :
 Le paquet linux-image-generic n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-generic (--configure) :
 problèmes de dépendances - laissé non configuré
Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent.
                                                                                                                  Aucun rapport « apport » n'a été créé car le message d'erreur indique un
e erreur consécutive à un échec précédent.
                                          Traitement des actions différées (« triggers ») pour initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-86-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
 le sous-processus paquet initramfs-tools script post-installation installé a renvoyé un état de sortie d'erreur 1
Aucun rapport « apport » écrit car MaxReports a déjà été atteint
                                                                Traitement des actions différées (« triggers ») pour linux-image-5.15.0-97-generic (5.15.0-97.107) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-97-generic
cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15.0-97-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: erreur de traitement du paquet linux-image-5.15.0-97-generic (--configure) :
 le sous-processus paquet linux-image-5.15.0-97-generic script post-installation installé a renvoyé un état de sortie d'erreur 1
Aucun rapport « apport » écrit car MaxReports a déjà été atteint
                                                                Des erreurs ont été rencontrées pendant l'exécution :
 linux-firmware
 linux-image-generic
 linux-generic
 initramfs-tools
 linux-image-5.15.0-97-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
soft224@soft224:~$ 

Hadysydney

Hors ligne

#8 Le 06/03/2024, à 13:31

bruno

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Cela ne sert à rien de s'acharner, il faut vérifier le système de fichiers (btrfs ?) comme indiqué au #5.

Hors ligne

#9 Le 06/03/2024, à 13:33

xubu1957

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

sudo apt install -fy

donne quoi ?

repris dans [Résolu] Problème de mise à jour

Dernière modification par xubu1957 (Le 06/03/2024, à 13:35)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#10 Le 06/03/2024, à 13:35

Mhady

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Ca donne la meme erreur/sortie


Hadysydney

Hors ligne

#11 Le 06/03/2024, à 13:36

bruno

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

@Xubu1957 : ça va redonner une erreur d'entré/sortie…

Il faut commencer par nous montrer tes systèmes de fichiers :

lsblk -f

Hors ligne

#12 Le 06/03/2024, à 13:38

Mhady

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

soft224@soft224:~$ sudo lsblk -f
NAME   FSTYPE   FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                    0   100% /snap/canonical-livepatch/264
loop1  squashfs 4.0                                                    0   100% /snap/canonical-livepatch/246
loop2  squashfs 4.0                                                    0   100% /snap/core/16202
loop3  squashfs 4.0                                                    0   100% /snap/core/16574
loop4  squashfs 4.0                                                    0   100% /snap/core18/2796
loop5  squashfs 4.0                                                    0   100% /snap/core18/2812
loop6  squashfs 4.0                                                    0   100% /snap/core20/2105
loop7  squashfs 4.0                                                    0   100% /snap/core20/2182
loop8  squashfs 4.0                                                    0   100% /snap/core22/1033
loop9  squashfs 4.0                                                    0   100% /snap/core22/864
loop10 squashfs 4.0                                                    0   100% /snap/lxd/22753
loop11 squashfs 4.0                                                    0   100% /snap/lxd/24061
loop12 squashfs 4.0                                                    0   100% /snap/snapd/20290
loop13 squashfs 4.0                                                    0   100% /snap/snapd/20671
sda                                                                             
├─sda1 ext4     1.0         eaf31aea-b85b-4e23-8a52-6f3fa179499f  195,7G     9% /
├─sda2                                                                          
└─sda5 swap     1           55f4c352-152e-432f-b274-53b5a48096bb                [SWAP]
sr0                                                                             
soft224@soft224:~$ 

Hadysydney

Hors ligne

#13 Le 06/03/2024, à 13:42

bruno

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Bon il n'y a pas de btrfs, c'est une bonne nouvelle…
Tu peux déjà essayer de virer ce qui concerne btrfs :

sudo apt purge btrfs*

Mais idéalement il faudrait démarrer sur un système « Live » pour vérifier la partition racine (eaf31aea-b85b-4e23-8a52-6f3fa179499f) avec fsck

Hors ligne

#14 Le 06/03/2024, à 13:55

Mhady

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

sudo apt purge btrfs*

C'est reglé en tapant cette commande.
Merci beaucoup à vous tous.


Hadysydney

Hors ligne

#15 Le 06/03/2024, à 13:58

Mhady

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

[Résolue cp: erreur de lecture dans '/bin/btrfs': Erreur d'entrée/sortie]


Hadysydney

Hors ligne

#16 Le 06/03/2024, à 13:59

xubu1957

Re : [Résolu] cp: erreur de lecture dans '/bin/btrfs

Pour purger les résidus de configuration marqués "rc" :

sudo apt purge ~c

comme expliqué à la machine à café et rajouté dans ce message


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne