View Full Version : [ubuntu_mate] Znowu Initramfs problem? cannot install Kernel 4.10.1 or upper

March 14th, 2017, 02:32 PM
I have created for /me ubuntu 16.04.1 image and computer with this system
Installed - minimum components - wine, vlc , audacious, gimp, audacity
System updated to Kernel 4.9.4 from mainline.

AMD FX 8100/ 8GB ram/ GTX780/ 128Gb ssd / 2Tb HDD
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/ kernel taken here

I DONT use on system Proprietary Nvidia or AMD drivers , only Mesa

I backup image system after installing with Systemback tool (great thanks to it's authors!! it save me much time!!!)
I can do everything with this system to test how to install new kernel without any harm.
in any time i can rollback to normal state.

All works normal until i prepare from mainline .deb files kernel
and run in command dpkg -i *.deb

user@ubuntu:~$ cd kernel4.10.2/
user@ubuntu:~/kernel4.10.2$ sh 0install.sh
Выбор ранее не выбранного пакета linux-headers-4.10.2-041002-generic.
(Чтение базы данных … на данный момент установлено 173959 файлов и каталогов.)
Подготовка к распаковке linux-headers-4.10.2-041002-generic_4.10.2-041002.201703120131_amd64.deb …
Распаковывается linux-headers-4.10.2-041002-generic (4.10.2-041002.201703120131) …
Выбор ранее не выбранного пакета linux-headers-4.10.2-041002.
Подготовка к распаковке linux-headers-4.10.2-041002_4.10.2-041002.201703120131_all.deb …
Распаковывается linux-headers-4.10.2-041002 (4.10.2-041002.201703120131) …
Выбор ранее не выбранного пакета linux-image-4.10.2-041002-generic.
Подготовка к распаковке linux-image-4.10.2-041002-generic_4.10.2-041002.201703120131_amd64.deb …
Распаковывается linux-image-4.10.2-041002-generic (4.10.2-041002.201703120131) …
Настраивается пакет linux-headers-4.10.2-041002 (4.10.2-041002.201703120131) …
Настраивается пакет linux-image-4.10.2-041002-generic (4.10.2-041002.201703120131) …
Running depmod.
sh: 1: /usr/sbin/update-initramfs: not found
Failed to create initrd image.
dpkg: ошибка при обработке пакета linux-image-4.10.2-041002-generic (--install):
подпроцесс установлен сценарий post-installation возвратил код ошибки 2
Настраивается пакет linux-headers-4.10.2-041002-generic (4.10.2-041002.201703120131) …
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.10.2-041002-generic /boot/vmlinuz-4.10.2-041002-generic
При обработке следующих пакетов произошли ошибки:

I don't know how to fix it and normally install Kernel .
On MX-Linux 16 and Mint 18.1 4.10.2 installed OK without errors.

I tries install after failing install kernel - install initramfs update from Synaptic but update fails
Other software normally installs and removes.

I need this kernel to continue work. Some devices works faster with it.

I Uploaded this bugged ISO (in russian language )
If anyone wants i give link to it.

March 15th, 2017, 09:52 AM
All versions of image i created - have 4.9.4 kernel and have this bug no allowed install any another kernel.
maybe kernel 4.9.4 not best select for system?

I try commands from another user before installation kernel etc.
1.reinstall initramfs-tools
2.install kernel 4.10.1
3.get error

This is useless commands for me

You can try the following command to see if it's already installed:

sudo dpkg -l |grep initramfs-tools
If it isn't installed yet, you can try the following command:
sudo apt-get install initramfs-tools
If it says that it's already installed you could try the following:
sudo apt-get install --reinstall initramfs-tools


Backup of system is here is anyone want to check it in virtualbox.
https://yadi.sk/d/riBzXQIS3FtYdY (https://vk.com/away.php?to=https%3A%2F%2Fyadi.sk%2Fd%2FriBzXQIS3F tYdY)
Terminal can be called Ctrl-Alt-t