slackpkg - failure during kernel upgrade, now can't logon
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.