web-dev-qa-db-fra.com

Noyau à moitié installé, impossible d'installer / de désinstaller quoi que ce soit

Eh bien, j'ai ce problème dont je ne suis pas sûr de la façon dont j'ai obtenu, mais j'ai besoin d'aide.

Tout d’abord, mon ordinateur exécute la version 14.04.3 LTS d’Ubuntu et le noyau actuel (celui que j’obtiens de uname -r) est 3.13.0-63-generic. S'il vous plaît dites-moi si vous avez besoin de savoir autre chose.

Mon problème est le suivant: chaque fois que j'essaie d'installer/de désinstaller un paquet, que ce soit avec apt-get ou Synaptic, j'obtiens une erreur à propos de ces paquets:

  • linux-image-3.13.0-65-generic
  • linux-image-3.13.0-65-lowlatency
  • linux-image-extra-3.13.0-65-generic

La sortie (par exemple, lorsque je lance Sudo apt-get install 'package-name') est la suivante:

Setting up linux-image-3.13.0-65-generic (3.13.0-65.106) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-65-generic
) points to /boot/initrd.img-3.13.0-65-generic
 (/boot/initrd.img-3.13.0-65-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-65-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-65-generic
) points to /boot/vmlinuz-3.13.0-65-generic
 (/boot/vmlinuz-3.13.0-65-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-65-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-65-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-65-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.13.0-65-lowlatency (3.13.0-65.106) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
update-initramfs: Generating /boot/initrd.img-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-65-lowlatency.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-65-lowlatency (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-65-generic:
 linux-image-extra-3.13.0-65-generic depends on linux-image-3.13.0-65-generic; however:
  Package linux-image-3.13.0-65-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-65-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-image-3.13.0-65-generic
 linux-image-3.13.0-65-lowlatency
 linux-image-extra-3.13.0-65-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

J'ai essayé des solutions en ligne mais, jusqu'à présent, aucune n'a résolu mon problème. Certains d’entre eux (et les résultats respectifs) sont les suivants:

Entrée: Sudo apt-get -f install

Sortie:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-65-generic (3.13.0-65.106) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-65-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-65-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.13.0-65-lowlatency (3.13.0-65.106) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
update-initramfs: Generating /boot/initrd.img-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-65-lowlatency.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-65-lowlatency (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-65-generic:
 linux-image-extra-3.13.0-65-generic depends on linux-image-3.13.0-65-generic; however:
  Package linux-image-3.13.0-65-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-65-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-image-3.13.0-65-generic
 linux-image-3.13.0-65-lowlatency
 linux-image-extra-3.13.0-65-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Entrée: Sudo dpkg --configure -a

Sortie:

Setting up linux-image-3.13.0-65-lowlatency (3.13.0-65.106) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-65-lowlatency
) points to /boot/initrd.img-3.13.0-65-lowlatency
 (/boot/initrd.img-3.13.0-65-lowlatency) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-65-lowlatency.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-65-lowlatency
) points to /boot/vmlinuz-3.13.0-65-lowlatency
 (/boot/vmlinuz-3.13.0-65-lowlatency) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-65-lowlatency.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
update-initramfs: Generating /boot/initrd.img-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-65-lowlatency /boot/vmlinuz-3.13.0-65-lowlatency
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-65-lowlatency.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-65-lowlatency (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.13.0-65-generic (3.13.0-65.106) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-65-generic /boot/vmlinuz-3.13.0-65-generic
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-65-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-65-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-65-generic:
 linux-image-extra-3.13.0-65-generic depends on linux-image-3.13.0-65-generic; however:
  Package linux-image-3.13.0-65-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-65-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.13.0-65-lowlatency
 linux-image-3.13.0-65-generic
 linux-image-extra-3.13.0-65-generic

Si vous avez besoin d'autres informations, je serai ravi de vous les communiquer.

Si quelqu'un pouvait m'aider, cela signifierait tout pour moi. J'ai vraiment besoin de pouvoir installer/désinstaller des paquets sur ma machine, je dois donc résoudre ce problème le plus rapidement possible.

PS: n'oubliez pas que je ne suis pas un expert Ubuntu/Linux.

MODIFIER:

Voici le contenu de/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="Windows Boot UEFI loader"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="60"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT=""quiet splash intel_pstate=disable i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.semaphores=1 i915_enable_rc6=1 i915_enable_fbc=1"
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="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"

GRUB_SAVEDEFAULT="false"
4
E Dias

Cette ligne dans les messages d'erreur

/usr/sbin/grub-mkconfig: 37: /etc/default/grub: Syntax error: EOF in backquote substitution

dit, vous avez une erreur à la ligne 37, mais vous n'avez pas de ligne 37. Par conséquent, l'explication la plus probable est que vous avez une erreur de citation. Et maintenant, jetez un oeil à cette ligne, tirée de votre question:

GRUB_CMDLINE_LINUX_DEFAULT =""quiet splash intel_pstate = désactiver i915.lvds_downclock = 1 drm.vblankoffdelay = 1 i915.semaphores = 1 i915_enable_rc6 = 1 i915_enable_fbc = 1"

Vous avez trois guillemets doubles dans cette ligne. Supprimer une double citation:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.semaphores=1 i915_enable_rc6=1 i915_enable_fbc=1"

et n'oubliez pas le

Sudo update-grub

après avoir édité le fichier.

5
A.B.

Il y a une erreur dans votre /etc/default/grub.

La ligne

GRUB_CMDLINE_LINUX_DEFAULT=""quiet splash intel_pstate=disable i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.semaphores=1 i915_enable_rc6=1 i915_enable_fbc=1"

doit être

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.semaphores=1 i915_enable_rc6=1 i915_enable_fbc=1"

comme le premier produirait une erreur sémantique.

2
LittleByBlue