Наполовину установленное ядро, не могу ничего установить / удалить

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

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

Моя проблема заключается в следующем: каждый раз, когда я пытаюсь установить / удалить какой-либо пакет, либо с помощью 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

Вывод:

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

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

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

PS: пожалуйста, имейте в виду, что я не эксперт по Ubuntu / Linux.

РЕДАКТИРОВАТЬ:

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

2 ответа

Эта линия в сообщениях об ошибках

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

говорит, у Вас есть ошибка в линии 37, но у Вас нет линии 37. Поэтому наиболее вероятное объяснение состоит в том, что у Вас есть ошибка цитаты. И теперь взгляните на эту линию, проводившую от Вашего вопроса:

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"

и не забывают

sudo update-grub

после редактирования файла.

5
ответ дан 18 October 2015 в 08:53
  • 1
    К сожалению, я don' t знают ответ на Ваш вопрос, @Akiva. Я изучил бы различные команды, которые можно использовать в энергии, такой как ': синтаксис off' ' набор list' и другие подобные. Я не уверен, что существует тот, который прекратит интерпретировать мусор, отраженный в журнал, сетлист был бы самым близким, я буду думать. – Kyle H 6 January 2017 в 03:44

Есть ошибка в Вашем /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
ответ дан 18 October 2015 в 08:53
  • 1
    Этот ^! Мог бы быть лучший ответ I' ve когда-либо получен. Это мог бы быть немой вопрос, но я предполагаю, что все эти правила входят в сценарий удара, правильно? У меня все еще есть некоторые проблемы при понимании iptables, но я нахожу его захватывающим. – Caranfil Alegzandru 6 January 2017 в 23:13

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

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