数ヶ月間アップグレードするたびに、このエラーが発生します。
> 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)
Debian は 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
たら、更新して何をすべきかをお知らせします。