我sudo apt-get dist-upgrade
今天运行了并且安装好了linux-image 3.13.0-68
。
这似乎损坏了某些东西,因为服务器无法启动。
但是,如果我选择以前的版本,那么3.13.0-67
服务器就可以正常启动。
3.13.0-67
我怎样才能使其默认启动?
下次内核更新时我还可以选择升级吗?
根据我所读的内容,/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=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="splash nomodeset"
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=800x600
# 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"
答案1
您可以使用 卸载该软件包sudo apt-get remove linux-headers-3.13.0-68
。这不会影响您使用下一个内核版本的能力。
您还可以通过将行更改为GRUB_DEFAULT=0
与所需条目的行号相等来配置默认 Grub 条目,其中 0 是第一行。然后运行sudo update-grub
以应用更改。您可能会对这/etc/default/grub/
只是一个帮助生成实际 grub 菜单的配置文件感到困惑。您可以在/boot/grub/grub.cfg