teejee2008 / ukuu

A paid version of Ukuu is now available with more features. https://teejeetech.in/2019/01/20/ukuu-v19-01/ Kernel Update Utility for Ubuntu-based distributions. Provides desktop notifications when new mainline kernel is available. Lists kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/ with options to install and remove.
https://teejeetech.in/ukuu
GNU Lesser General Public License v3.0
401 stars 157 forks source link

It is bad idea to install packages with `dpkg -i` (dependencies will not be satisfied), use `apt-get install ./deb-name.deb` instead #88

Open N0rbert opened 6 years ago

N0rbert commented 6 years ago

Steps to reproduce:

  1. Install ukuu on clean Ubuntu up-to-date (16.04 LTS in my case)
  2. Try to install latest kernel with sudo ukuu --install-latest

Expected result:

Actual results:

Setting up linux-headers-4.17.8-041708 (4.17.8-041708.201807180730) ...
dpkg: dependency problems prevent configuration of linux-headers-4.17.8-041708-generic:
 linux-headers-4.17.8-041708-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

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

...
Errors were encountered while processing:
 linux-headers-4.17.8-041708-generic

Code hint:

Solution:

N0rbert commented 6 years ago

Where you got this libssl1.1?

Installing with apt-get install ./deb-name.deb does not help.

cd ~/.cache/ukuu/v4.17.8/amd64/
xenial@xenial-vb:~/.cache/ukuu/v4.17.8/amd64$ sudo apt-get install ./*.deb
[sudo] password for xenial: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-headers-4.17.8-041708-generic : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unmet dependencies. Try using -f.

So it does not work.

If you provide application for us (users), please provide include automatic installation of libssl1.1 package into UKUU. This would be very user-friendly. Otherwise UKUU is useless for newbies.

VietTPham commented 6 years ago

have you try running sudo apt-get install -f the command dpkg is not ment to auto resolve your dependency. Did you read the changelog for the newest version?

Temporary fix for errors with 4.16.x kernels: Install libssl1.1 Update package linux-base with sudo apt update && sudo apt install linux-base (make sure xenial-updates is enabled in Software & Updates).

N0rbert commented 6 years ago
$ apt-cache policy ukuu 
ukuu:
  Installed: 18.5.1-0~201805120527~ubuntu16.04.1
  Candidate: 18.5.1-0~201805120527~ubuntu16.04.1
  Version table:
 *** 18.5.1-0~201805120527~ubuntu16.04.1 500
        500 http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

$ sudo ukuu --install-latest
ukuu v18.5.1
Distribution: Ubuntu 16.04.5 LTS
Architecture: amd64
Running kernel: 4.4.0-130-generic
Kernel version: 4.4.0.130.156
Cache: /home/xenial/.cache/ukuu
Temp: /tmp/ukuu/a0WlI9sC
aria2c version: 1.19.0

Fetching index...

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100 % 

----------------------------------------------------------------------
Found installed: 4.4.0-128.154
Found installed: 4.4.0.130.136
Found installed: 4.4.0-130.156
----------------------------------------------------------------------
Latest update: 4.17.11

Install Linux v4.17.11 ? (y/n): y

Downloading: 'linux-headers-4.17.11-041711-generic_4.17.11-041711.201807280505_amd64.deb'... 
OK                                                                    

Downloading: 'linux-image-unsigned-4.17.11-041711-generic_4.17.11-041711.201807280505_amd64.deb'... 
OK                                                                    

Downloading: 'linux-headers-4.17.11-041711_4.17.11-041711.201807280505_all.deb'... 
OK                                                                    

Downloading: 'linux-modules-4.17.11-041711-generic_4.17.11-041711.201807280505_amd64.deb'... 
OK                                                                    
Preparing to install 'v4.17.11'

Selecting previously unselected package linux-headers-4.17.11-041711-generic.
(Reading database ... 300053 files and directories currently installed.)
Preparing to unpack linux-headers-4.17.11-041711-generic_4.17.11-041711.201807280505_amd64.deb ...
Unpacking linux-headers-4.17.11-041711-generic (4.17.11-041711.201807280505) ...
Selecting previously unselected package linux-image-unsigned-4.17.11-041711-generic.
Preparing to unpack linux-image-unsigned-4.17.11-041711-generic_4.17.11-041711.201807280505_amd64.deb ...
Unpacking linux-image-unsigned-4.17.11-041711-generic (4.17.11-041711.201807280505) ...
Selecting previously unselected package linux-headers-4.17.11-041711.
Preparing to unpack linux-headers-4.17.11-041711_4.17.11-041711.201807280505_all.deb ...
Unpacking linux-headers-4.17.11-041711 (4.17.11-041711.201807280505) ...
Selecting previously unselected package linux-modules-4.17.11-041711-generic.
Preparing to unpack linux-modules-4.17.11-041711-generic_4.17.11-041711.201807280505_amd64.deb ...
Unpacking linux-modules-4.17.11-041711-generic (4.17.11-041711.201807280505) ...
dpkg: dependency problems prevent configuration of linux-headers-4.17.11-041711-generic:
 linux-headers-4.17.11-041711-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

dpkg: error processing package linux-headers-4.17.11-041711-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-headers-4.17.11-041711 (4.17.11-041711.201807280505) ...
Setting up linux-modules-4.17.11-041711-generic (4.17.11-041711.201807280505) ...
Setting up linux-image-unsigned-4.17.11-041711-generic (4.17.11-041711.201807280505) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.4.0-130-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.4.0-130-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.17.11-041711-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.17.11-041711-generic
Processing triggers for linux-image-unsigned-4.17.11-041711-generic (4.17.11-041711.201807280505) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.17.11-041711-generic
/etc/kernel/postinst.d/vboxadd:
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
/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.11-041711-generic
Found initrd image: /boot/initrd.img-4.17.11-041711-generic
Found linux image: /boot/vmlinuz-4.4.0-130-generic
Found initrd image: /boot/initrd.img-4.4.0-130-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Errors were encountered while processing:
 linux-headers-4.17.11-041711-generic

Updating GRUB menu
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.11-041711-generic
Found initrd image: /boot/initrd.img-4.17.11-041711-generic
Found linux image: /boot/vmlinuz-4.4.0-130-generic
Found initrd image: /boot/initrd.img-4.4.0-130-generic
Found linux image: /boot/vmlinuz-4.4.0-128-generic
Found initrd image: /boot/initrd.img-4.4.0-128-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
E: Installation completed with errors

$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  linux-headers-4.17.11-041711-generic
0 upgraded, 0 newly installed, 1 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 13,4 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
$ sudo apt update && sudo apt install linux-base
Hit:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:4 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease                 
Hit:5 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease               
Fetched 107 kB in 0s (136 kB/s)                                                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
45 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-base is already the newest version (4.5ubuntu1~16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-4.17.11-041711-generic : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Does not work. Please provide detailed instruction or include automatic mechanism into ukuu.

BenYamin313 commented 5 years ago

This is my problem too ! libssl1.1 package Missing

gothicVI commented 5 years ago

@BenYamin313 why don't you just download the package and install it? This has been discussed, e.g., in the release notes https://github.com/teejee2008/ukuu/releases/tag/v18.5.1.