Tuesday, March 15, 2022

Dell Inspiron 14 5000 Series with Ubuntu 20.04 does not turn on

Remove kernel

sharma@Sharma-LAP:~/Downloads/new-kernal$ dpkg -l | grep linux-image
ii  linux-image-5.13.0-30-generic              5.13.0-30.33~20.04.1                amd64        Signed kernel image generic
ii  linux-image-generic-hwe-20.04              5.13.0.30.33~20.04.17               amd64        Generic Linux kernel image
ii  linux-image-unsigned-5.16.0-051600-generic 5.16.0-051600.202201092355          amd64        Linux kernel image for version 5.16.0 on 64 bit x86 SMP
sharma@Sharma-LAP:~/Downloads/new-kernal$
sharma@Sharma-LAP:~/Downloads/new-kernal$
sharma@Sharma-LAP:~/Downloads/new-kernal$ dpkg -l | grep linux-head
ii  linux-headers-5.13.0-30-generic            5.13.0-30.33~20.04.1                amd64        Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii  linux-headers-5.16.0-051600                5.16.0-051600.202201092355          all          Header files related to Linux kernel version 5.16.0
ii  linux-headers-5.16.0-051600-generic        5.16.0-051600.202201092355          amd64        Linux kernel headers for version 5.16.0 on 64 bit x86 SMP
ii  linux-headers-generic-hwe-20.04            5.13.0.30.33~20.04.17               amd64        Generic Linux kernel headers
sharma@Sharma-LAP:~/Downloads/new-kernal$
sharma@Sharma-LAP:~/Downloads/new-kernal$
sharma@Sharma-LAP:~/Downloads/new-kernal$
sharma@Sharma-LAP:~/Downloads/new-kernal$ sudo apt-get purge linux-image-unsigned-5.16.0-051600-generic






The following steps will remove a given kernel along with its drivers drivers, and lets the package manager know that you don’t want it again if you do an update. You should remove the specific broken kernel and it’s headers, don’t remove the super package linux-generic this is the package that Ubuntu uses to upgrade the kernel and headers when they become available. If you remove it you wont get kernel updates automatically and will have to specifically run apt-get to get them.

    Open Terminal (if it’s not already open)
    List the available kernels:

    dpkg -l | grep linux-image

    Remove the kernel(s) you don’t want:

    sudo apt-get purge linux-image-5.8.0-53-generic

    Remove the headers as well:

    sudo apt-get purge linux-headers-5.8.0-53-generic

    Reboot





wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-headers-5.16.11-051611-generic_5.16.11-051611.202202230823_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-headers-5.16.11-051611_5.16.11-051611.202202230823_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-image-unsigned-5.16.11-051611-generic_5.16.11-051611.202202230823_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-modules-5.16.11-051611-generic_5.16.11-051611.202202230823_amd64.deb



cd ~/Downloads

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-headers-5.16.0-051600_5.16.0-051600.202201092355_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-headers-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-image-unsigned-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-modules-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb

sudo dpkg -i *.deb
sudo apt -f install






wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.13/amd64/linux-headers-5.16.13-051613_5.16.13-051613.202203082004_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.13/amd64/linux-headers-5.16.13-051613-generic_5.16.13-051613.202203082004_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.13/amd64/linux-image-unsigned-5.16.13-051613-generic_5.16.13-051613.202203082004_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.13/amd64/linux-modules-5.16.13-051613-generic_5.16.13-051613.202203082004_amd64.deb
                                







mkdir tmp
cd tmp
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-headers-5.16.11-051611-generic_5.16.11-051611.202202230823_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-headers-5.16.11-051611_5.16.11-051611.202202230823_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-image-unsigned-5.16.11-051611-generic_5.16.11-051611.202202230823_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16.11/amd64/linux-modules-5.16.11-051611-generic_5.16.11-051611.202202230823_amd64.deb


sudo dpkg -i *.deb

You'll get an error while installing ..._all.deb since you've got outdated libc6 and libssl3 versions. You'll notice that sudo apt install libssl3 doesn't work, let's fix that.

    Add the Ubuntu 22.04 repo:

sudo add-apt-repository "deb http://ca.archive.ubuntu.com/ubuntu jammy main"

    Now if you try to install libssl3 it'll tell you to run the following command instead:

sudo apt --fix-broken install

    Now I think you're good to go, but I also ran the dpkg command once more to make sure:

sudo dpkg -i *.deb




https://wiki.ubuntu.com/UEFI/SecureBoot/DKMS







Option 1. Install Linux Kernel 5.16 with PPA
Import TuxInvader PPA

The first option to install the Linux 5.16 kernels is to install the ppa:tuxinvader/lts-mainline by TuxInvader. This has some of the most up-to-date 5.16, and the previous 5.15 kernel builds and is often updated regularly.

The drawback is this is an untrusted PPA and not an official release by the Pop!_OS or Ubuntu official teams, but given the history of the PPA, it is safe as any other reputable PPA. You should not be installing this on a sensitive or production-type system anyway.

First, install the LTS Mainline Tuxinvader PPA:

sudo add-apt-repository ppa:tuxinvader/lts-mainline -y

Once installed, update your repository list.

sudo apt update

Next, proceed to the installation of the Linux Kernel. Make sure at this point any sensitive documents are backed up just in case of anything going wrong.
Install Linux Kernel 5.16 from Tux PPA

Next, install the 5.16 generic Linux kernel drivers by executing the following command.

sudo apt-get install linux-generic-5.16 -y

Once complete, you will need to reboot your system for the new kernel to be fully activated.

reboot

Once logged back into your system, run the following command to confirm the new kernel version is running.

sudo uname -r

Example output:

5.16.0-051600-generic

Option 2. Install Linux Kern




Remove a PPA from the source list in the terminal

Not my preferred method at all. I don’t recommend it as well but it gets the job done.

You can remove the PPA from the sources list where these PPAs are stored. PPA repositories are store in the form of PPA_Name.list.

Use the following command to see all the PPAs added in your system:

ls /etc/apt/sources.list.d

Look for your desire PPA here and then remove the .list file associated with the PPA using the following command:

sudo rm -i /etc/apt/sources.list.d/PPA_Name.list

The -i option with rm command asks before removing a file. Consider this a safety check.
Method 4. Remove a PPA by using ppa-purge in the terminal

You might have noticed that in all the above three methods we only talked about deleting or removing a PPA. What about the applications installed using these PPAs? Will they be removed as a result of removing the PPA? The answer is NO.

So this is when PPA Purge comes in picture. It not only disables the PPA but also uninstalls all the programs installed by the PPA or revert them to original version provided by your distribution.

Install ppa-purge by using the following command:

sudo apt-get install ppa-purge

Now use it in following manner to purge the PPA:

sudo ppa-purge ppa-url

The URL of the PPA can be found in the Software Sources list.

I hope you’ll find at least one good method to delete or remove a PPA and uninstall the corresponding applications. Cheers :)