절반만 설치된 커널, 아무것도 설치/제거할 수 없음

절반만 설치된 커널, 아무것도 설치/제거할 수 없음

글쎄요, 어떻게 문제가 발생했는지는 모르겠지만 도움이 필요합니다.

우선 내 컴퓨터는 Ubuntu 버전 14.04.3 LTS를 실행하고 있으며 현재 커널(내가 가져온 커널 uname -r)은 3.13.0-63-generic입니다. 다른 정보가 필요하면 알려주시기 바랍니다.

내 문제는 다음과 같습니다. apt-get 또는 Synaptic을 사용하여 일부 패키지를 설치/제거하려고 할 때마다 이러한 패키지에 대한 오류가 발생합니다.

  • 리눅스-이미지-3.13.0-65-일반
  • 리눅스-이미지-3.13.0-65-낮은 대기 시간
  • 리눅스-이미지-추가-3.13.0-65-일반

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

필요한 다른 정보가 있으면 기꺼이 알려드리겠습니다.

누구든지 나를 도울 수 있다면 그것은 나에게 모든 것을 의미할 것입니다. 내 컴퓨터에 패키지를 설치/제거할 수 있어야 하므로 가능한 한 빨리 이 문제를 해결해야 합니다.

추신: 저는 Ubuntu/Linux 전문가가 아니라는 점을 명심하십시오.

편집하다:

다음은 /etc/default/grub.conf의 내용입니다.

# 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

오류 메시지의 이 줄

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

37행에는 오류가 있지만 37행은 없습니다. 따라서 가장 가능성 있는 설명은 인용 오류가 있다는 것입니다. 이제 귀하의 질문에서 가져온 다음 줄을 살펴보십시오.

GRUB_CMDLINE_LINUX_DEFAULT=""조용한 시작 intel_pstate=비활성화 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

파일을 편집한 후.

답변2

에 오류가 있습니다 /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"

첫 번째는 의미론적 오류를 생성하기 때문입니다.

관련 정보