我正在 vps debian 9 上运行
\nmaster@vps726152:~$ cat /etc/os-release\nPRETTY_NAME="Debian GNU/Linux 9 (stretch)"\nNAME="Debian GNU/Linux"\nVERSION_ID="9"\nVERSION="9 (stretch)"\nVERSION_CODENAME=stretch\nID=debian\nRun Code Online (Sandbox Code Playgroud)\n当我尝试自动删除时,更新后开始出现错误(抱歉,它是法语)
\nmaster@vps726152:~$ sudo apt autoremove\nLecture des listes de paquets... Fait\nConstruction de l'arbre des d\xc3\xa9pendances\nLecture des informations d'\xc3\xa9tat... Fait\n0 mis \xc3\xa0 jour, 0 nouvellement install\xc3\xa9s, 0 \xc3\xa0 enlever et 0 non mis \xc3\xa0 jour.\n2 partiellement install\xc3\xa9s ou enlev\xc3\xa9s.\nApr\xc3\xa8s cette op\xc3\xa9ration, 0 o d'espace disque suppl\xc3\xa9mentaires seront utilis\xc3\xa9s.\nParam\xc3\xa9trage de linux-image-4.9.0-14-amd64 (4.9.246-2) ...\n/etc/kernel/postinst.d/initramfs-tools:\nupdate-initramfs: Generating /boot/initrd.img-4.9.0-14-amd64\n/etc/kernel/postinst.d/zz-update-grub:\n/usr/sbin/grub-mkconfig: 11: /etc/default/grub: systemd.unified_cgroup_hierarchy=0: not found\nrun-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127\ndpkg: erreur de traitement du paquet linux-image-4.9.0-14-amd64 (--configure)\xc2\xa0:\n le sous-processus script post-installation install\xc3\xa9 a retourn\xc3\xa9 une erreur de sortie d'\xc3\xa9tat 1\ndpkg: des probl\xc3\xa8mes de d\xc3\xa9pendances emp\xc3\xaachent la configuration de linux-image-amd64\xc2\xa0:\n linux-image-amd64 d\xc3\xa9pend de linux-image-4.9.0-14-amd64\xc2\xa0; cependant\xc2\xa0:\n Le paquet linux-image-4.9.0-14-amd64 n'est pas encore configur\xc3\xa9.\n\ndpkg: erreur de traitement du paquet linux-image-amd64 (--configure)\xc2\xa0:\n probl\xc3\xa8mes de d\xc3\xa9pendances - laiss\xc3\xa9 non configur\xc3\xa9\nE: Sub-process /usr/bin/dpkg returned an error code (1)\nRun Code Online (Sandbox Code Playgroud)\n我做了一些挖掘,发现这个错误可能与 grub 问题有关,所以我尝试了这个命令:
\nmaster@vps726152:~$ sudo update-grub\n/usr/sbin/grub-mkconfig: 11: /etc/default/grub: systemd.unified_cgroup_hierarchy=0: not found\nRun Code Online (Sandbox Code Playgroud)\n我的 grub 配置如下所示:
\n# If you change this file, run 'update-grub' afterwards to update\n# /boot/grub/grub.cfg.\n# For full documentation of the options in this file, see:\n# info -f grub -n 'Simple configuration'\n\nGRUB_DEFAULT=0\nGRUB_TIMEOUT=5\nGRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`\nGRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"\nGRUB_CMDLINE_LINUX=""\nsystemd.unified_cgroup_hierarchy=0\n\n# Uncomment to enable BadRAM filtering, modify to suit your needs\n# This works with Linux (no patch required) and with any kernel that obtains\n# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)\n#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"\n\n# Uncomment to disable graphical terminal (grub-pc only)\n#GRUB_TERMINAL=console\n\n# The resolution used on graphical terminal\n# note that you can use only modes which your graphic card supports via VBE\n# you can see them in real GRUB with the command `vbeinfo'\n#GRUB_GFXMODE=640x480\n\n# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux\n#GRUB_DISABLE_LINUX_UUID=true\n\n# Uncomment to disable generation of recovery mode menu entries\n#GRUB_DISABLE_RECOVERY="true"\n\n# Uncomment to get a beep at grub start\n#GRUB_INIT_TUNE="480 440 1"\nRun Code Online (Sandbox Code Playgroud)\n所以这条线似乎是我遇到麻烦的原因
\nsystemd.unified_cgroup_hierarchy=0\nRun Code Online (Sandbox Code Playgroud)\n但我不知道下一步该做什么,到目前为止我发现没有任何帮助...\n有人可以帮助我吗?
\n小智 5
您应该使用变量来设置内核启动参数:
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10471 次 |
| 最近记录: |