Résolu le 21-12-20 J'ai cassé linux... (apt grub)

Assistance concernant Linux Mint
baptistedftn
Messages : 8
Enregistré le : ven. 20 nov. 2020 16:18

J'ai cassé linux... (apt grub)

Message par baptistedftn »

Bonjour
Je n'arrive plus a utiliser apt

Code : Tout sélectionner

baptiste@baptistedftn:~$ 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-58-generic
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
1 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... 397498 fichiers et répertoires déjà installés.)
Suppression de linux-image-5.4.0-58-generic (5.4.0-58.64) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-58-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 42: /etc/default/grub: Syntax error: Unterminated quoted string
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
dpkg: erreur de traitement du paquet linux-image-5.4.0-58-generic (--remove) :
 installed linux-image-5.4.0-58-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-58-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)
Comme je pense que ça a un rapport avec grub voici la config grub:

Code : Tout sélectionner

baptiste@baptistedftn:~$ cat /etc/default/grub
# 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=""

# 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="1920x1080"

# 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"

#GRUB_HIDDEN_TIMEOUT="0"
GRUB_DISABLE_OS_PROBER="true"

#GRUB_DISABLE_LINUX_RECOVERY="true"
export GRUB_COLOR_NORMAL="black/black"
export GRUB_COLOR_HIGHLIGHT="black/black"


GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=\Linux\"
Comment régler ce problème ?
HP Pavilion Laptop 14-ce3xxx | Linux Mint 20.1 | Cinnamon 4.8.6 | 5.4.0-58-generic x86_64 | Intel Core i3-1005G1 | 8GB ram | Intel Iris Plus Graphics G1

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: J'ai cassé linux... (apt grub)

Message par cyrille »

tu en es où niveau espace disque ?

Code : Tout sélectionner

df -h /boot & df -h
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

baptistedftn
Messages : 8
Enregistré le : ven. 20 nov. 2020 16:18

Re: J'ai cassé linux... (apt grub)

Message par baptistedftn »

Normalement ya de la place:

Code : Tout sélectionner

baptiste@baptistedftn:~$ df -h /boot & df -h
[1] 153382
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sdb2          117G     42G   70G  38% /
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev               3,8G       0  3,8G   0% /dev
tmpfs              775M    9,8M  765M   2% /run
/dev/sdb2          117G     42G   70G  38% /
tmpfs              3,8G       0  3,8G   0% /dev/shm
tmpfs              5,0M    4,0K  5,0M   1% /run/lock
tmpfs              3,8G       0  3,8G   0% /sys/fs/cgroup
tmpfs              388M    7,1M  381M   2% /var/log
/dev/loop1          56M     56M     0 100% /snap/core18/1932
/dev/loop3          74M     74M     0 100% /snap/wine-platform-3-stable/6
/dev/loop4         232M    232M     0 100% /snap/wine-platform-runtime/195
/dev/loop0         163M    163M     0 100% /snap/gnome-3-28-1804/145
/dev/loop2          65M     65M     0 100% /snap/gtk-common-themes/1514
/dev/loop5          32M     32M     0 100% /snap/snapd/10238
/dev/loop6         256K    256K     0 100% /snap/tmnationsforever/40
/dev/loop7          56M     56M     0 100% /snap/core18/1944
/dev/loop8          32M     32M     0 100% /snap/snapd/10492
/dev/loop9          74M     74M     0 100% /snap/wine-platform-3-stable/10
/dev/loop10        232M    232M     0 100% /snap/wine-platform-runtime/198
/dev/sdb1          256M     71M  186M  28% /boot/efi
tmpfs              775M     24K  775M   1% /run/user/1000
/dev/sda1          916G     64G  807G   8% /media/baptiste/DATA
[1]+  Fini                    df -h /boot
HP Pavilion Laptop 14-ce3xxx | Linux Mint 20.1 | Cinnamon 4.8.6 | 5.4.0-58-generic x86_64 | Intel Core i3-1005G1 | 8GB ram | Intel Iris Plus Graphics G1

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: J'ai cassé linux... (apt grub)

Message par cyrille »

et

Code : Tout sélectionner

uname -a
?
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

baptistedftn
Messages : 8
Enregistré le : ven. 20 nov. 2020 16:18

Re: J'ai cassé linux... (apt grub)

Message par baptistedftn »

J'ai la version 5.4.0-54-generic

Code : Tout sélectionner

baptiste@baptistedftn:~$ uname -a
Linux baptistedftn 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Modifié en dernier par débitant le lun. 21 déc. 2020 20:48, modifié 1 fois.
Raison : suppression du quote reprenant le précedent message dans sa totalité
HP Pavilion Laptop 14-ce3xxx | Linux Mint 20.1 | Cinnamon 4.8.6 | 5.4.0-58-generic x86_64 | Intel Core i3-1005G1 | 8GB ram | Intel Iris Plus Graphics G1

Michel26750
Messages : 106
Enregistré le : ven. 3 nov. 2017 09:49

Re: J'ai cassé linux... (apt grub)

Message par Michel26750 »

Démarrer en live et un petit retour arrière grâce à Timeshift ?
LM19.3 : 5.0.0-32 Generic i686
Environnement: Cinnamon 4.4.8
System : LENOVO_MT_81W1_BU_idea_FM_IdeaPad 3 15ADA05
CPU : AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx × 4
Card : Advanced Micro Devices, Inc. [AMD/ATI] Picasso

baptistedftn
Messages : 8
Enregistré le : ven. 20 nov. 2020 16:18

Re: J'ai cassé linux... (apt grub)

Message par baptistedftn »

Je crois que j'ai désactivé timeshift :l :l
HP Pavilion Laptop 14-ce3xxx | Linux Mint 20.1 | Cinnamon 4.8.6 | 5.4.0-58-generic x86_64 | Intel Core i3-1005G1 | 8GB ram | Intel Iris Plus Graphics G1

Michel26750
Messages : 106
Enregistré le : ven. 3 nov. 2017 09:49

Re: J'ai cassé linux... (apt grub)

Message par Michel26750 »

... erreur !!!
LM19.3 : 5.0.0-32 Generic i686
Environnement: Cinnamon 4.4.8
System : LENOVO_MT_81W1_BU_idea_FM_IdeaPad 3 15ADA05
CPU : AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx × 4
Card : Advanced Micro Devices, Inc. [AMD/ATI] Picasso

baptistedftn
Messages : 8
Enregistré le : ven. 20 nov. 2020 16:18

Re: J'ai cassé linux... (apt grub)

Message par baptistedftn »

Michel26750 a écrit :
lun. 21 déc. 2020 11:52
... erreur !!!
Oui je sais je pense que je vais retenir la leçon pour plus tard et je vais refaire des sauvegardes dès que j'aurai réglé le problème...
HP Pavilion Laptop 14-ce3xxx | Linux Mint 20.1 | Cinnamon 4.8.6 | 5.4.0-58-generic x86_64 | Intel Core i3-1005G1 | 8GB ram | Intel Iris Plus Graphics G1

Avatar du membre
cyrille
Administrateur du site
Messages : 13037
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: J'ai cassé linux... (apt grub)

Message par cyrille »

j'avais pas fait gaffe, l'erreur est là

Code : Tout sélectionner

/usr/sbin/grub-mkconfig: 42: /etc/default/grub: Syntax error: Unterminated quoted string
que dit la ligne 42 de ce fichier

Code : Tout sélectionner

cat -n  /etc/default/grub
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Répondre