Ubuntu-Mainline-Kernel-Updater icon indicating copy to clipboard operation
Ubuntu-Mainline-Kernel-Updater copied to clipboard

Dependancy issue: Kernel v4.17 - libssl1.1

Open ckleu opened this issue 7 years ago • 7 comments

Fresh Ubuntu 16.04 install using cobbler

git clone git://github.com/GM-Script-Writer-62850/Ubuntu-Mainline-Kernel-Updater
bash Ubuntu-Mainline-Kernel-Updater/install
(select "y")
KernelUpdateChecker --any-release -no-rc
/tmp/kernel-update
Installing Linux 4.17.0-041700:
Selecting previously unselected package linux-headers-4.17.0-041700.
(Reading database ... 81406 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.17.0-041700_4.17.0-041700.201806032231_all.deb ...
Unpacking linux-headers-4.17.0-041700 (4.17.0-041700.201806032231) ...
Selecting previously unselected package linux-headers-4.17.0-041700-generic.
Preparing to unpack .../linux-headers-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb ...
Unpacking linux-headers-4.17.0-041700-generic (4.17.0-041700.201806032231) ...
Selecting previously unselected package linux-image-unsigned-4.17.0-041700-generic.
Preparing to unpack .../linux-image-unsigned-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb ...
Unpacking linux-image-unsigned-4.17.0-041700-generic (4.17.0-041700.201806032231) ...
Selecting previously unselected package linux-modules-4.17.0-041700-generic.
Preparing to unpack .../linux-modules-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb ...
Unpacking linux-modules-4.17.0-041700-generic (4.17.0-041700.201806032231) ...
Setting up linux-headers-4.17.0-041700 (4.17.0-041700.201806032231) ...
dpkg: dependency problems prevent configuration of linux-headers-4.17.0-041700-generic:
 linux-headers-4.17.0-041700-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

dpkg: error processing package linux-headers-4.17.0-041700-generic (--install):
 dependency problems - leaving unconfigured

Which is weird, because the modules package is downloaded and installed..

# dpkg -l | grep linux-base
ii  linux-base                                 4.5ubuntu1~16.04.1                         all          Linux image base package

https://forum.peppermintos.com/index.php/topic,6918.msg70354.html?PHPSESSID=iqth040mhhl9pi6ko29q5q5r05#msg70354 https://askubuntu.com/questions/1030043/unable-to-upgrade-kernel-after-4-16-3 https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1766851 https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1766728

ckleu avatar Jun 11 '18 13:06 ckleu

right after line 260 (sudo dpkg -i ./linux-*.deb) of KernelUpdateScriptGenerator add this:

if [ $? -eq 1 ];then
    echo "Looks like we have a issue, lets try to fix that"
    sudo apt-get install -f
fi

Does that solve the issue? if you have time to test it, i may have time tomorrow

GM-Script-Writer-62850 avatar Jun 11 '18 23:06 GM-Script-Writer-62850

Tested it manually first, but it wants to remove the package instead of installing the dependancies

/tmp/kernel-4.17.0-041700# ls
linux-headers-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb  linux-image-unsigned-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb
linux-headers-4.17.0-041700_4.17.0-041700.201806032231_all.deb            linux-modules-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb

/tmp/kernel-4.17.0-041700# sudo dpkg -i ./linux-*.deb
(Reading database ... 115700 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.17.0-041700_4.17.0-041700.201806032231_all.deb ...
Unpacking linux-headers-4.17.0-041700 (4.17.0-041700.201806032231) over (4.17.0-041700.201806032231) ...
Preparing to unpack .../linux-headers-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb ...
Unpacking linux-headers-4.17.0-041700-generic (4.17.0-041700.201806032231) over (4.17.0-041700.201806032231) ...
Preparing to unpack .../linux-image-unsigned-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb ...
Unpacking linux-image-unsigned-4.17.0-041700-generic (4.17.0-041700.201806032231) over (4.17.0-041700.201806032231) ...
Preparing to unpack .../linux-modules-4.17.0-041700-generic_4.17.0-041700.201806032231_amd64.deb ...
Unpacking linux-modules-4.17.0-041700-generic (4.17.0-041700.201806032231) over (4.17.0-041700.201806032231) ...
Setting up linux-headers-4.17.0-041700 (4.17.0-041700.201806032231) ...
dpkg: dependency problems prevent configuration of linux-headers-4.17.0-041700-generic:
 linux-headers-4.17.0-041700-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

dpkg: error processing package linux-headers-4.17.0-041700-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-modules-4.17.0-041700-generic (4.17.0-041700.201806032231) ...
Setting up linux-image-unsigned-4.17.0-041700-generic (4.17.0-041700.201806032231) ...
Processing triggers for linux-image-unsigned-4.17.0-041700-generic (4.17.0-041700.201806032231) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.17.0-041700-generic
W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.17.0-041700-generic
Found initrd image: /boot/initrd.img-4.17.0-041700-generic
Found linux image: /boot/vmlinuz-4.4.0-127-generic
Found initrd image: /boot/initrd.img-4.4.0-127-generic
done
Errors were encountered while processing:
 linux-headers-4.17.0-041700-generic

/tmp/kernel-4.17.0-041700# if [ $? -eq 1 ];then
>     echo "Looks like we have a issue, lets try to fix that"
>     sudo apt-get install -f
> fi
Looks like we have a issue, lets try to fix that
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  linux-headers-4.17.0-041700-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 12.7 MB disk space will be freed.
Do you want to continue? [Y/n]

ckleu avatar Jun 12 '18 07:06 ckleu

That solved the issue in my testing Perhaps i should have had apt download libssl1.1 instead of noting it if you use the download only feature i may need to change something on line 246

GM-Script-Writer-62850 avatar Jun 16 '18 15:06 GM-Script-Writer-62850

WIth Ubuntu 16.04, the OpenSSL package included:

Bionic Beaver has 1.1.0 (which is the requirement here) https://launchpad.net/ubuntu/+source/openssl

The Xenial Xerus (supported)OpenSSL trunk series
--
1.0.2g-1ubuntu4 | release (main) | 2016-04-15
1.0.2g-1ubuntu4.12 | updates, security (main) | 2018-04-19
# dpkg -l | grep libssl
ii  libssl1.0.0:amd64                          1.0.2g-1ubuntu4.12                         amd64        Secure Sockets Layer toolkit - shared libraries

ckleu avatar Jun 20 '18 14:06 ckleu

So in 16.04 the header package can not be installed as there is no libssl1.1 package? if that is the case i will just check if the header deb requires libssl and if it is not available i will have it prompt or notify the user as not every user needs the header package

GM-Script-Writer-62850 avatar Jun 23 '18 16:06 GM-Script-Writer-62850

Yes, that sounds correct

ckleu avatar Jun 25 '18 12:06 ckleu

That should handle it better, however if you use --auto on the installer while libssl is not available on a system that requires the header package you will have problems with the missing header package, but you still get a warning, not that someone using --auto will pay attention to it anyway...

It also attempts to fix a unconfirmed issue with the uninstall feature introduced from a pull request #30 and clean it up a little

GM-Script-Writer-62850 avatar Jul 01 '18 14:07 GM-Script-Writer-62850