몇 달 동안 업그레이드할 때마다 이 오류가 발생합니다.
> master@vps726152:~$ sudo apt autoremove
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 2 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Setting up linux-image-4.9.0-14-amd64 (4.9.246-2) ...
> /etc/kernel/postinst.d/initramfs-tools:
> update-initramfs: Generating /boot/initrd.img-4.9.0-14-amd64
> /etc/kernel/postinst.d/zz-update-grub:
> /usr/sbin/grub-mkconfig: 11: /etc/default/grub: systemd.unified_cgroup_hierarchy=0: not found
> run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
> dpkg: error processing package linux-image-4.9.0-14-amd64 (--configure):
> subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of linux-image-amd64:
> linux-image-amd64 depends on linux-image-4.9.0-14-amd64; however:
> Package linux-image-4.9.0-14-amd64 is not configured yet.
>
> dpkg: error processing package linux-image-amd64 (--configure):
> dependency problems - leaving unconfigured
> Errors were encountered while processing:
> linux-image-4.9.0-14-amd64
> linux-image-amd64
> E: Sub-process /usr/bin/dpkg returned an error code (1)
데비안은 VPS에서 실행됩니다.
> PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux"
> VERSION_ID="9" VERSION="9 (stretch)" VERSION_CODENAME=stretch
> ID=debian
뭐가 문제 야? 어떻게 해결할 수 있나요?
이건 내 땅벌레야
# 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=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"
GRUB_CMDLINE_LINUX=""
systemd.unified_cgroup_hierarchy=0
# 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_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="systemd.unified_cgroup_hierarchy=0"
#GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"
GRUB_CMDLINE_LINUX=""
#systemd.unified_cgroup_hierarchy=0
문제를 해결하는 것 같습니다. 매우 감사합니다.
답변1
파일 을 살펴보세요 /etc/default/grub
. 로 시작하는 줄이 포함되어 있는데 systemd.unified_cgroup_hierarchy=0
이는 유효하지 않습니다.
구성 명령문은 로 시작하는 줄에 있어야 합니다 GRUB_CMDLINE_LINUX_DEFAULT
. 거기로 옮기면 모든 것이 괜찮을 것입니다. 문제를 해결하는 방법을 모른다면,질문을 수정하세요전체 콘텐츠를 추가 /etc/default/grub
하면 업데이트하여 무엇을 해야 할지 알려드리겠습니다.