Пол-установленное ядро, не может установить / удалить что-либо

Ну, у меня есть эта проблема, я не уверен, как я ее получил, но мне нужна помощь.

Прежде всего, мой компьютер запускает версию Ubuntu 14.04.3 LTS, а текущее ядро (тот, который я получаю от uname -r) составляет 3.13.0-63-generic. Скажите, пожалуйста, если вам нужно знать что-нибудь еще.

Моя проблема в следующем: каждый раз, когда я пытаюсь установить / удалить какой-либо пакет, либо с помощью apt-get, либо с помощью Synaptic, я получаю сообщение об ошибке об этих пакетах :

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

Вывод (например, когда я запускаю sudo apt-get install 'package-name'), я получаю:

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)

Я пробовал некоторые решения в Интернете, но пока никто не решил мою проблему. Некоторые из них (и соответствующий выход):

Вход: sudo apt-get -f install

Выход:

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)

Вход: sudo dpkg --configure -a [!d11 ]

Вывод:

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

Если есть какая-то другая информация, которая вам нужна, я рад дать вам.

Если кто-нибудь может мне помочь, это будет означать все мне. Мне действительно нужно иметь возможность устанавливать / удалять пакеты на моей машине, поэтому мне нужно как можно скорее решить эту проблему.

PS: помните, что я не эксперт Ubuntu / Linux. [ ! d15]

EDIT:

Вот содержимое /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"
1
задан 17 October 2015 в 22:53

1 ответ

В вашем /etc/default/grub есть ошибка.

Строка

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_DEFAULT="quiet splash intel_pstate=disable i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.semaphores=1 i915_enable_rc6=1 i915_enable_fbc=1"

, поскольку первая будет производить семантическая ошибка.

2
ответ дан 23 May 2018 в 16:36
  • 1
    Большое вам спасибо, ЭТО РАБОТАЕТ! : D У меня есть вопрос, хотя: теперь, когда я делаю uname -r, я получаю 3.13.0-65-lowlatency. Это нормально? (я имею в виду часть «низкой мощи»). Я никогда не видел такого ядра, только те, кто заканчивает «generic». – E Dias 17 October 2015 в 22:36
  • 2
    Ну, @Serg ответил мне в другом ответе, но спасибо в любом случае :) – E Dias 17 October 2015 в 22:44

Другие вопросы по тегам:

Похожие вопросы: