#1 Le 07/10/2010, à 08:26
- LRDP
[RESOLU] MAJ partielle impossible après installation de Grub 2
Bonjour,
Après une mise à niveau vers Lucid, je me suis aperçu que Grub était toujours en Legacy, aussi ai-je upgrader Grub. En suivant un tutoriel, je n'ai pas pu franchir une fenêtre graphique "configuration de grub-pc", le bouton "ok" étant inactif; malgré cela Grub est bien upgradé. Mais maintenant, je ne peux plus faire de mise à jour : les MAJ automatiques s'arrêtant à la même fenêtre. J'ai taper dans un terminal "apt-get upgrade" et "apt-get dist-upgrade" et j'ai le message suivant, après des mises à jour partielles apparemment réussies :
E: Impossible de verrouiller /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.
lrdp@lrdp-desktop:~$ sudo apt-get dist-upgrade
E: Impossible de verrouiller /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.
Et si j'essaye le gestionnaire de mise à jour : j'obtiens la fenêtre graphique citée plus haut que je ne peux reproduire (un ctrl-c donne un texte identique au message d'erreur ci-dessus)
Que faire? Réinstaller Grub? son update se passe sans erreur. une idée?
Dernière modification par LRDP (Le 08/10/2010, à 13:22)
Retour à Ubuntu Maté 20.04.6.
Config: maxi-tour avec 8 HD internes dont 2 SSD, 45 To de capacité
CM MSI B450, Ryzen5-1600, 32 Go de RAM, Nvidia Gforce Gtx 550Ti
Hors ligne
#2 Le 07/10/2010, à 10:14
- compte supprimé
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
il y a pas une autre instance qui utilise apt ??? NON
sinon
sudo rm -rf /var/lib/apt/lists/lock
puis update , dist-upgrade
Dernière modification par karamelo (Le 07/10/2010, à 10:14)
#3 Le 07/10/2010, à 21:16
- LRDP
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
Merci Karamelo,
Mais quand je lance cette commande je retombe sur la fenêtre graphique "configuration de grub-pc" (avec le bouton OK inactif) et après dist-upgrade j'ai le même message texte :
E: Impossible de verrouiller /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.
Il n'y a pourtant rien d'autre ouvert, mais c'est cette configuration de grub qui ne s'achève pas. grrrr
Retour à Ubuntu Maté 20.04.6.
Config: maxi-tour avec 8 HD internes dont 2 SSD, 45 To de capacité
CM MSI B450, Ryzen5-1600, 32 Go de RAM, Nvidia Gforce Gtx 550Ti
Hors ligne
#4 Le 07/10/2010, à 21:20
- kyncani
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
Reboot, ne te connecte pas à l'écran graphique mais switche sur une console (ctrl+alt+f1) et fait tes apt* depuis la console.
Tout cela pour éviter qu'un truc graphique de bureau ne tourne en arrière plan.
Hors ligne
#5 Le 07/10/2010, à 21:53
- LRDP
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
Si je refais la commande apt-get update ce la se termine par le message :
" dpkg a été interrompu, vous devez lancer manuellement 'sudo dpkg --configure -a' pour corriger le problème." et en tapant cette dernière commande : fenêtre graphique dans le terminal:
┌───────────────────────┤ Configuration de grub-pc ├────────────────────────┐
│ │
│ The grub-pc package is being upgraded. This menu allows you to select ↑
│ which devices you'd like grub-install to be automatically run for, if ▮
│ any. ▒
│ ▒
│ It is recommended that you do this in most situations, to prevent the ▒
│ installed GRUB from getting out of sync with other components such as ▒
│ grub.cfg or with newer Linux images it will have to load. ▒
│ ▒
│ If you're unsure which drive is designated as boot drive by your BIOS, ▒
│ it is often a good idea to install GRUB to all of them. ▒
│ ▒
│ Note: It is possible to install GRUB to partition boot records as well, ▒
│ and some appropriate partitions are offered here. However, this forces ▒
│ GRUB to use the blocklist mechanism, which makes it less reliable, and ↓
│
│ <Ok>
│ │
└───────────────────────────────────────────────────────────────────────────┘
et çà bloque...."IMPOSSIBLE D'OBTENIR UN VERROU EXCLUSIF" même dans Synaptic ; apt-get semble toujours actif, malgré que tout soit fermé
Dernière modification par LRDP (Le 07/10/2010, à 22:00)
Retour à Ubuntu Maté 20.04.6.
Config: maxi-tour avec 8 HD internes dont 2 SSD, 45 To de capacité
CM MSI B450, Ryzen5-1600, 32 Go de RAM, Nvidia Gforce Gtx 550Ti
Hors ligne
#6 Le 08/10/2010, à 02:09
- LRDP
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
dans le fichier /var/lib/dpkg/updates il reste un fichier "0000" dont le contenu est:
Package: grub-pc
Status: install ok half-configured
Priority: optional
Section: admin
Installed-Size: 2252
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: grub2
Version: 1.98-1ubuntu7
Config-Version: 1.97~beta4-1ubuntu4.1
Replaces: grub, grub-common (<< 1.97~beta1-1ubuntu4), grub-coreboot, grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<< 1.98-1ubuntu7)
Depends: libc6 (>= 2.8), libdevmapper1.02.1 (>= 2:1.02.20), debconf (>= 0.5) | debconf-2.0, grub-common (= 1.98-1ubuntu7), ucf
Suggests: desktop-base (>= 4.0.6)
Conflicts: desktop-base (= 4.0.5), grub (<< 0.97-54), grub-coreboot, grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy
Conffiles:
/etc/grub.d/05_debian_theme cceb548bef9d5c2123c40c5e643c2cdd
Description: GRand Unified Bootloader, version 2 (PC/BIOS version)
GRUB is a portable, powerful bootloader. This version of GRUB is based on a
cleaner design than its predecessors, and provides the following new features:
.
- Scripting in grub.cfg using BASH-like syntax.
- Support for modern partition maps such as GPT.
- Modular generation of grub.cfg via update-grub. Packages providing GRUB
add-ons can plug in their own script rules and trigger updates by invoking
update-grub2.
- VESA-based graphical mode with background image support and complete 24-bit
color set.
- Support for extended charsets. Users can write UTF-8 text to their menu
entries.
.
This package contains a version of GRUB that has been built for use with
traditional PC/BIOS architecture.
Homepage: http://www.gnu.org/software/grub/grub-2.en.html
Original-Maintainer: GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>
çà donne une idée?
Merci de votre aide
Retour à Ubuntu Maté 20.04.6.
Config: maxi-tour avec 8 HD internes dont 2 SSD, 45 To de capacité
CM MSI B450, Ryzen5-1600, 32 Go de RAM, Nvidia Gforce Gtx 550Ti
Hors ligne
#7 Le 08/10/2010, à 06:27
- Compte anonymisé
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
Salut
Quand tu as cela :
┌───────────────────────┤ Configuration de grub-pc ├────────────────────────┐
│ │
│ The grub-pc package is being upgraded. This menu allows you to select ↑
│ which devices you'd like grub-install to be automatically run for, if ▮
│ any. ▒
│ ▒
│ It is recommended that you do this in most situations, to prevent the ▒
│ installed GRUB from getting out of sync with other components such as ▒
│ grub.cfg or with newer Linux images it will have to load. ▒
│ ▒
│ If you're unsure which drive is designated as boot drive by your BIOS, ▒
│ it is often a good idea to install GRUB to all of them. ▒
│ ▒
│ Note: It is possible to install GRUB to partition boot records as well, ▒
│ and some appropriate partitions are offered here. However, this forces ▒
│ GRUB to use the blocklist mechanism, which makes it less reliable, and ↓
│
│ <Ok>
│ │
└───────────────────────────────────────────────────────────────────────────┘
Il faut avec la toucher TAB ( ->| ) mettre le ok en surbrillance et valider par 'Entrée'
Attention si tu as une question pour installer grub-pc ne l'installe que sur MBR (/dev/sda)
@+
#8 Le 08/10/2010, à 13:18
- LRDP
Re : [RESOLU] MAJ partielle impossible après installation de Grub 2
RESOLU!! Mais je ne sais pas comment.... Cela bloquait au niveau de la finalisation de Grub, mais il y avait aussi un paquet défaillant qui bloquait dpkg. Après une commande de remove qui indiquait que le paquet était introuvable....., tout s'est débloqué! Synaptic Apt-get, configuration de Grub avec le choix d'implantation, de Samba.... OUF!
Retour à Ubuntu Maté 20.04.6.
Config: maxi-tour avec 8 HD internes dont 2 SSD, 45 To de capacité
CM MSI B450, Ryzen5-1600, 32 Go de RAM, Nvidia Gforce Gtx 550Ti
Hors ligne