#1 Le 10/12/2020, à 13:57
- philouzain
mise à niveau partielle qui n'aboutit pas [résolu]
bonjour,
Le gestionaire de mise à jour me propose sans arrêt une mise à niveau partielle qui n'aboutit pas avec comme message :
Unable to get exclusive lock
This usually means that another package management application (like apt-get or aptitude) already running. Please close that application first.
Pourriez-vous m'aider à trouver une solution svp ?
d'avance merci
Dernière modification par philouzain (Le 11/12/2020, à 00:00)
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#2 Le 10/12/2020, à 14:13
- xubu1957
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Bonjour,
Regarde > [Résolu] Ubuntu 14.04 MAJ mal tourné
Dernière modification par xubu1957 (Le 10/12/2020, à 14:13)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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 10/12/2020, à 14:37
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
oui, merci j'ai regardé et essayé d'appliquer les corrections, mais sans succès apparemment :
phil@phil-Latitude-3390-2-in-1:~$ sudo dpkg --configure -a
dpkg: erreur: dpkg frontend lock est verrouillé par un autre processus
phil@phil-Latitude-3390-2-in-1:~$
et
phil@phil-Latitude-3390-2-in-1:~$ sudo apt-get -f install
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2809 (do-partial-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Impossible d'obtenir le verrou de dpkg (/var/lib/dpkg/lock-frontend). Il est possible qu'un autre processus l'utilise.
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#4 Le 10/12/2020, à 14:39
- xubu1957
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Donne les retours :
uname -a
lsb_release -a
echo $XDG_CURRENT_DESKTOP
sudo apt update
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
#5 Le 10/12/2020, à 14:45
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
phil@phil-Latitude-3390-2-in-1:~$ uname -a
Linux phil-Latitude-3390-2-in-1 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
phil@phil-Latitude-3390-2-in-1:~$
phil@phil-Latitude-3390-2-in-1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
phil@phil-Latitude-3390-2-in-1:~$
phil@phil-Latitude-3390-2-in-1:~$ echo $XDG_CURRENT_DESKTOP
ubuntu:GNOME
phil@phil-Latitude-3390-2-in-1:~$
phil@phil-Latitude-3390-2-in-1:~$ sudo apt update
[sudo] Mot de passe de phil :
Lecture des listes de paquets... Fait
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 2809 (do-partial-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Impossible de verrouiller le répertoire /var/lib/apt/lists/
phil@phil-Latitude-3390-2-in-1:~$
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#6 Le 10/12/2020, à 14:47
- michel_04
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Bonjour.
Le gestionaire de mise à jour me propose sans arrêt une mise à niveau partielle qui n'aboutit pas avec comme message :
Unable to get exclusive lock This usually means that another package management application (like apt-get or aptitude) already running. Please close that application first.
Après un redémarrage tu as toujours le même message ?
A+
:D
De la bonne manière de poser les questions - Trouver de l'aide grâce au Groupe des Parrains Linux - Le Pacte des Gnous
PCs sous Debian Stable & Debian Sid.
Hors ligne
#7 Le 10/12/2020, à 14:52
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
apparemment oui, l'upgrade ne passe pas :
phil@phil-Latitude-3390-2-in-1:~$ sudo apt update
[sudo] Mot de passe de phil :
Atteint :1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease
Atteint :3 http://archive.canonical.com/ubuntu focal InRelease
Atteint :4 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease
Atteint :5 http://fr.archive.ubuntu.com/ubuntu focal-security InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Tous les paquets sont à jour.
phil@phil-Latitude-3390-2-in-1:~$ sudo apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants seront ENLEVÉS :
linux-image-5.4.0-53-generic
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
2 partiellement installés ou enlevés.
Après cette opération, 11,7 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 186848 fichiers et répertoires déjà installés.)
Suppression de linux-image-5.4.0-53-generic (5.4.0-53.59) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-53-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: quiet: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: erreur de traitement du paquet linux-image-5.4.0-53-generic (--remove) :
installed linux-image-5.4.0-53-generic package post-removal script subprocess returned error exit status 1
dpkg: trop d'erreurs, arrêt
Des erreurs ont été rencontrées pendant l'exécution :
linux-image-5.4.0-53-generic
L'exécution a été arrêtée car il y avait trop d'erreurs.
E: Sub-process /usr/bin/dpkg returned an error code (1)
phil@phil-Latitude-3390-2-in-1:~$
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#8 Le 10/12/2020, à 15:05
- michel_04
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Regarde dans ce post [Résolu]Problème de dé-installation des linux-image - Ubuntu 20.04 le message #5 de cqfd93.
À adapter à ton cas.
Dernière modification par michel_04 (Le 10/12/2020, à 15:06)
:D
De la bonne manière de poser les questions - Trouver de l'aide grâce au Groupe des Parrains Linux - Le Pacte des Gnous
PCs sous Debian Stable & Debian Sid.
Hors ligne
#9 Le 10/12/2020, à 16:39
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
j'ai appliquer le résumé du probleme #9 et essayé d'adapter pour ma version linux-image-5.4.0-53-generic mais ca fonctionne pas, je peux pas aller plus loin
phil@phil-Latitude-3390-2-in-1:~$ cd /var/lib/dpkg/info/
phil@phil-Latitude-3390-2-in-1:/var/lib/dpkg/info$ sudo rm linux-image-5.4.0-53-generic.postrm
[sudo] Mot de passe de phil :
phil@phil-Latitude-3390-2-in-1:/var/lib/dpkg/info$ sudo mv linux-image-5.4.0-53-generic.postrm.bak linux-image-5.4.0-53-generic.postrm
mv: impossible d'évaluer 'linux-image-5.4.0-53-generic.postrm.bak': Aucun fichier ou dossier de ce type
phil@phil-Latitude-3390-2-in-1:/var/lib/dpkg/info$ linux-image-5.4.0-53-generic
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#10 Le 10/12/2020, à 19:36
- cqfd93
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Bonjour,
Tu n'as pas du tout fait ce que je disais dans le message pointé par michel_04, puisque tu as supprimé le fichier linux-image-5.4.0-53-generic.postrm au lieu d'abord d'en faire une copie de sauvegarde.
Et tu n'as pas fait la commande qui doit recréer ce fichier .postrm minimal en copiant / collant cette commande d'un bloc :
sudo tee linux-image-5.4.0-53-generic.postrm <<EOF
#!/bin/sh
set -e
exit 0
EOF
Après avoir passé cette commande, il faut faire :
sudo apt install -f
− cqfd93 −
Hors ligne
#11 Le 10/12/2020, à 20:19
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
désolé, je suis pas doué du tout et j'y comprends pas grand chose
donc le retour des 2 dernieres commandes :
phil@phil-Latitude-3390-2-in-1:~$ sudo tee linux-image-5.4.0-53-generic.postrm <<EOF
> #!/bin/sh
> set -e
> exit 0
> EOF
[sudo] Mot de passe de phil :
#!/bin/sh
set -e
exit 0
et
phil@phil-Latitude-3390-2-in-1:~$ sudo apt install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants seront ENLEVÉS :
linux-image-5.4.0-53-generic
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
2 partiellement installés ou enlevés.
Après cette opération, 11,7 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 186848 fichiers et répertoires déjà installés.)
Suppression de linux-image-5.4.0-53-generic (5.4.0-53.59) ...
Paramétrage de linux-image-5.4.0-56-generic (5.4.0-56.62) ...
Traitement des actions différées (« triggers ») pour linux-image-5.4.0-56-generi
c (5.4.0-56.62) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-56-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: quiet: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: erreur de traitement du paquet linux-image-5.4.0-56-generic (--configure)
:
installed linux-image-5.4.0-56-generic package post-installation script subproc
ess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
linux-image-5.4.0-56-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
phil@phil-Latitude-3390-2-in-1:~$
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#12 Le 10/12/2020, à 20:49
- inbox
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Salut,
Pour faire avancer les choses, donne le retour de :
cat /etc/default/grub
A+
Un problème résolu ? Indiquez le en modifiant le titre du sujet.
Hors ligne
#13 Le 10/12/2020, à 20:55
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
phil@phil-Latitude-3390-2-in-1:~$ cat /etc/default/grub
quiet splash atkbd.reseto# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset"
GRUB_CMDLINE_LINUX="i8042.nomux=1 locale=fr_FR i8042.reset"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#14 Le 10/12/2020, à 21:18
- inbox
Re : mise à niveau partielle qui n'aboutit pas [résolu]
J'ai failli ne pas voir l'erreur dans le fichier Grub, sur la ligne 1 :
quiet splash atkbd.reseto# If you change this file, run 'update-grub' afterwards to update
Il faut supprimer ce qui se trouve avant le #.
sudoedit /etc/default/grub
Supprimer ceci :
quiet splash atkbd.reseto
Enregistrer et quitter le fichier. Mettre Grub à jour avec la nouvelle version :
sudo update-grub
Terminer la mis à jour :
sudo apt-get install -f
Un problème résolu ? Indiquez le en modifiant le titre du sujet.
Hors ligne
#15 Le 10/12/2020, à 21:40
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
merci mais c'est toujours l'erreur code (1) apparemment ??
quiet splash atkbd.reseto# If you change this file, run 'update-grub' afterward>
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=
GRUB_CMDLINE_LINUX="i8042.nomux=1 locale=fr_FR i8042.reset"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
phil@phil-Latitude-3390-2-in-1:~$ sudo update-grub
[sudo] Mot de passe de phil :
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: quiet: not found
phil@phil-Latitude-3390-2-in-1:~$ sudo apt-get install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Paramétrage de linux-image-5.4.0-56-generic (5.4.0-56.62) ...
Traitement des actions différées (« triggers ») pour linux-image-5.4.0-56-generic (5.4.0-56.62) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-56-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: quiet: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: erreur de traitement du paquet linux-image-5.4.0-56-generic (--configure) :
installed linux-image-5.4.0-56-generic package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
linux-image-5.4.0-56-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
phil@phil-Latitude-3390-2-in-1:~$
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#16 Le 10/12/2020, à 22:16
- inbox
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Relis ce que j'ai écrit. Le problème est sur la ligne 1. Tu as aussi modifié la ligne suivante :
GRUB_CMDLINE_LINUX_DEFAULT=
Remets la en état :
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset"
Un problème résolu ? Indiquez le en modifiant le titre du sujet.
Hors ligne
#17 Le 10/12/2020, à 22:26
- philouzain
Re : mise à niveau partielle qui n'aboutit pas [résolu]
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset"
GRUB_CMDLINE_LINUX="i8042.nomux=1 locale=fr_FR i8042.reset"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
phil@phil-Latitude-3390-2-in-1:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-5.4.0-56-generic
Image mémoire initiale trouvée : /boot/initrd.img-5.4.0-56-generic
Image Linux trouvée : /boot/vmlinuz-5.4.0-54-generic
Image mémoire initiale trouvée : /boot/initrd.img-5.4.0-54-generic
Adding boot menu entry for UEFI Firmware Settings
fait
phil@phil-Latitude-3390-2-in-1:~$ sudo apt-get install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Paramétrage de linux-image-5.4.0-56-generic (5.4.0-56.62) ...
Traitement des actions différées (« triggers ») pour linux-image-5.4.0-56-generic (5.4.0-56.62) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-56-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-5.4.0-56-generic
Image mémoire initiale trouvée : /boot/initrd.img-5.4.0-56-generic
Image Linux trouvée : /boot/vmlinuz-5.4.0-54-generic
Image mémoire initiale trouvée : /boot/initrd.img-5.4.0-54-generic
Adding boot menu entry for UEFI Firmware Settings
fait
phil@phil-Latitude-3390-2-in-1:~$
oups désolé. Voila c'est corrigé et ça m'a l'air bon... ? ...en tous cas, merci d'avoir pris de ton temps pour me dépanner
Dernière modification par philouzain (Le 10/12/2020, à 22:30)
Dell Latitude E5550 - Ubuntu 22.04.1 LTS
Hors ligne
#18 Le 10/12/2020, à 23:31
- inbox
Re : mise à niveau partielle qui n'aboutit pas [résolu]
Oui, c'est Ok. Tu peux passer en "Résolu".
Un problème résolu ? Indiquez le en modifiant le titre du sujet.
Hors ligne