@toly19

Как обновить ядро ubuntu на удаленной машине?

Есть удаленный vds сервер с ubuntu 16.04

uname -r 
2.6.32-042stab127.2


Пробую сделать
sudo apt-get install linux-image-4.8.0-58-generic

Получаю вот это:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  fdutils linux-tools linux-headers-4.8.0-58-generic
The following NEW packages will be installed:
  linux-image-4.8.0-58-generic
0 upgraded, 1 newly installed, 0 to remove and 154 not upgraded.
Need to get 0 B/23.6 MB of archives.
After this operation, 72.8 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package linux-image-4.8.0-58-generic.
(Reading database ... 26511 files and directories currently installed.)
Preparing to unpack .../linux-image-4.8.0-58-generic_4.8.0-58.63~16.04.1_amd64.deb ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Done.
Unpacking linux-image-4.8.0-58-generic (4.8.0-58.63~16.04.1) ...
Setting up linux-image-4.8.0-58-generic (4.8.0-58.63~16.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-58-generic /boot/vmlinuz-4.8.0-58-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-58-generic /boot/vmlinuz-4.8.0-58-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-58-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.8.0-58-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.8.0-58-generic.postinst line 1052.
dpkg: error processing package linux-image-4.8.0-58-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-4.8.0-58-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


Как починить?
  • Вопрос задан
  • 1266 просмотров
Решения вопроса 1
NeiroNx
@NeiroNx
Программист
Да там просто не прописанны настройки в /etc/defaults/locale - оно пытается их установить и неичего не получается, нет файла.
Ответ написан
Пригласить эксперта
Ответы на вопрос 2
opium
@opium
Просто люблю качественно работать
локаль можно поставить
от рута

locale-gen en_US.UTF-8
echo LC_ALL=en_US.UTF-8 >/etc/default/locale
echo LANG=en_US.UTF-8 >>/etc/default/locale
Ответ написан
Комментировать
Azzinoth
@Azzinoth
Виртуализация не OpenVZ, случайно? Если да, то ядро обновить невозможно.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

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