LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2018, 08:47 AM   #1
brgr88
Member
 
Registered: Apr 2006
Distribution: Slackware 14.2
Posts: 48

Rep: Reputation: 15
slackpkg - failure during kernel upgrade, now can't logon


I was running slackpkg under 14.2, but halfway through the downloads, it got md5sum errors and so only half of them downloaded. The md5sum thing usually happens when (I assume) the mirror is refreshing or some such, because when it happens, I just try again a day later and it's fine. This time, it happened halfway through downloading a kernel update.

Not thinking, I ran upgrade-all and reran LILO. Since it was a partial kernel upgrade, it now doesn't boot like it used to:
1. During boot-up the frame buffer mode doesn't activate; who knows what else isn't working!
2. At the login prompt, it won't let me type anything; the cursor just sits there--I can't even ctl-alt-delete, and must power cycle to reboot.

Best I can do is boot into the install CD, but what can I do from here to restore, recover or rerun the slackpkg to complete the partial download? I'm hoping I don't have to reinstall.
 
Old 08-26-2018, 09:02 AM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,953

Rep: Reputation: 270Reputation: 270Reputation: 270
I had to clean up after installing mis-downloaded packages once. It'd be nice if upgradepkg/installpkg would check first. Now I download upgrades, check them, install them only if they check out.
 
Old 08-26-2018, 09:24 AM   #3
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
Well, I would try something like :
- Put the last kernel packages somewhere you will be able to access (usb drive, share net directory, ...)
- Boot with install CD or install USB drive.
- mount your / partition (and mount -o bind /[dev|proc|sys] /mnt/[dev|proc|sys])
- chroot your / partition
- upgradepkg all kernel packages.
- build the initrd if necessary.
- rerun lilo
- exit and reboot.
 
1 members found this post helpful.
Old 08-26-2018, 10:19 AM   #4
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
I suggest to OP to use instead of installation media the Eric's LIVESLAK, like this one: http://bear.alienbase.nl/mirrors/sla...ve-current.iso

Let's be honest, a shiny KDE4 desktop booted from an USB stick is much more friendly than the spartan installer's shell.
 
Old 08-26-2018, 02:09 PM   #5
brgr88
Member
 
Registered: Apr 2006
Distribution: Slackware 14.2
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lougavulin View Post
Well, I would try something like :
...
lougavulin, thank you so much for your help! Your suggestion worked perfectly, though I changed it somewhat by trying to just rerun slackpkg:
1. Boot into install CD.
2. Mount / and dev, proc, sys as you directed under /mnt.
3. chroot /mnt
4. ip link set eth0 up
5. dhcpcd eth0
6. Run slackpkg: update, upgrade-all.

I'm Slack-happy again!
 
Old 08-26-2018, 03:11 PM   #6
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
It might be an idea to blacklist kernel updates through slackpkg (see /etc/slackpkg/blacklist) and download new kernel packages manually as they appear.

You can then use installpkg to install rather than upgrade them and keep the existing working kernel as a fallback (list it first in lilo or grub or whatever you may be using so it boots by default).
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No bootup after slackpkg update with kernel upgrade sattvakarma Slackware 13 09-04-2019 11:56 AM
[SOLVED] HELP - 14.1 upgrade from 14.0 with slackpkg kernel-module links to wrong kernel? bamunds Slackware 4 12-05-2013 07:22 PM
[SOLVED] Can't boot into -current partition after slackpkg upgrade-all, after kernel upgraded gabytf Slackware 7 08-12-2012 10:42 AM
Custom kernel, slackpkg upgrade-all vjayz Slackware 2 01-26-2012 02:48 AM
[SOLVED] Slackpkg upgrade-all: kernel panic adriv Slackware 36 08-21-2009 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration