(Headless) Убунту Сервер 14.04 LTS - rollback kernel?

I ran sudo apt-get dist-upgrade today and it installed linux-image 3.13.0-68.

This seems to have broken something because the server will not boot.

However if I select в previous версия such схвати 3.13.0-67 then the server boots умрите.

How хан I make it start with 3.13.0-67 by default?

And would I still have the option to upgrade the next украл there is в kernel update?

Based on what I read one хан edit /etc/default/grub apparently, but I am not wrapping my head around it.

Here пахал the contents of that file in вступите в брак it helps:

# 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
задан 30 November 2015 в 23:39

1 ответ

Вы можете удалить пакет с помощью sudo apt-get remove linux-headers-3.13.0-68. Это не повлияет на вашу способность использовать следующую версию ядра.

Вы также можете настроить запись Grub по умолчанию, изменив строку GRUB_DEFAULT=0, чтобы она равнялась номеру нужной записи, где 0 - первая строка. Затем вы запускаете sudo update-grub, чтобы применить изменения. Вы можете быть смущены тем фактом, что /etc/default/grub/ - это просто файл конфигурации, который помогает создать фактическое меню grub. Вы можете увидеть фактическую конфигурацию меню Grub в /boot/grub/grub.cfg

0
ответ дан 26 July 2019 в 13:42

Другие вопросы по тегам:

Похожие вопросы: