problem after upgrade

You have a problem with Slackel? Post here and we'll do what we can to help.
Post Reply
juliusse
Posts: 89
Joined: 21 Jan 2019 18:26

problem after upgrade

Post by juliusse »

Hi, I'm facing a problem.
After an upgrade of my wife's laptop, I'm unable to boot again.
The kernel has been upgraded with

Code: Select all

sudo install-upgrade-kernel upgrade huge
but due to a poor connection, I think it did not perform correctly.
Is there a way to upgrade the kernel of an installed system using the live-usb?
Ubuntu is an African term for:"Slackware is too difficult for me"
djemos
Site Admin
Posts: 697
Joined: 15 Apr 2016 06:03

Re: problem after upgrade

Post by djemos »

Yes.
I suppose you use the 64bit slackel version.
Boot with the live usb and connect to internet, your wireless connection.
Then open pcmafm and click on hard disk drive to mount it. Copy the mount point to use it bellow in TARGET=

NOTE: Change TARGET=/run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089 with your mount point of your hard disk drive in the script bellow.
Copy the following code and save it to a file named chroot-sl.sh in your ~/ directory

Code: Select all

#! /bin/sh
TARGET=/run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089
mount -o bind /proc $TARGET/proc
mount -o bind /sys $TARGET/sys
mount -o bind /dev $TARGET/dev
mount -o bind /tmp $TARGET/tmp
mount --bind /etc/resolv.conf $TARGET/etc/resolv.conf
chroot $TARGET /bin/bash -l
Now run in a terminal
sudo sh chroot-sl.sh

You are in the chroot environment in your hard disk installation and also have internet.
run
slapt-get -u
slapt-get -i --reinstall kernel-headers kernel-huge kernel-modules
update-grub

type exit
NOTE: replace /run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089 with your mount point of your hard disk drive
type

sudo umount /run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089/dev
sudo umount /run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089/proc
sudo umount /run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089/sys
sudo umount /run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089/tmp
sudo umount /run/media/djemos/00183d49-7229-4275-aea4-af7eb4775089/etc/resolv.conf
Then
reboot
unplug your live usb.
boot in your hard disk system.
juliusse
Posts: 89
Joined: 21 Jan 2019 18:26

Re: problem after upgrade

Post by juliusse »

Thanks, this worked.
I was trying this, but I was forgetting things (mounting tmp and resolvconf).
;) ;) ;)
It appears that the kernel-modules package was missing.
Have a nice day
Ubuntu is an African term for:"Slackware is too difficult for me"
djemos
Site Admin
Posts: 697
Joined: 15 Apr 2016 06:03

Re: problem after upgrade

Post by djemos »

To not happened this again since you might have a poor connection and because kernel upgrade is important for the system to boot can use this.

Code: Select all

sudo slapt-get -u
sudo slapt-get -i --reinstall -d kernel-headers kernel-huge kernel-modules
This command will download and not install anything. If a connection failure happened can run the same command again and download continues
then if files are downloaded then can run

Code: Select all

sudo slapt-get -i --reinstall kernel-headers kernel-huge kernel-modules
sudo update-grub
juliusse
Posts: 89
Joined: 21 Jan 2019 18:26

Re: problem after upgrade

Post by juliusse »

djemos wrote:To not happened this again since you might have a poor connection and because kernel upgrade is important for the system to boot can use this.

Code: Select all

sudo slapt-get -u
sudo slapt-get -i --reinstall -d kernel-headers kernel-huge kernel-modules
This command will download and not install anything. If a connection failure happened can run the same command again and download continues
then if files are downloaded then can run

Code: Select all

sudo slapt-get -i --reinstall kernel-headers kernel-huge kernel-modules
sudo update-grub
Thanks for that. The truth is that's what I was doing before the release of "install-upgrade-kernel". And I also do it when I have a poor connection. But this time I forgot to check the connection before upgrading the kernel.
Have a nice day.
Ubuntu is an African term for:"Slackware is too difficult for me"
Post Reply