LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-06-2024, 05:42 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,586

Rep: Reputation: 179Reputation: 179
How to resurrect a clobbered tar


For you Slacksters out there maybe you can suggest a solution to my self-inflicted wound. I was in the process of upgrading a 14.2 system to 15.0 using the UPGRADE.txt instructions. I've done this numerous time before, successfully. Except this time, I think I must have not done the first 'upgradepkg .../a/glibc-solibs-*.txz'. When I got to 'upgradepkg .../a/tar-*.txz', it did that OK, but for all subsequent upgradepkg attempts I got an error that it was missing a lib.

I tried restoring just the tar binary from 14.2, but that didn't work.

Is there a way I could fix this screw-up without restoring the system from backup? Even attempting to install the 14.2 tar package wouldn't work because it required tar!
 
Old 05-06-2024, 05:52 PM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 459

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Boot from a 15.0 installation USB, mount the root partition and extract the aaa_glibc-solibs package over /mnt, maybe?

Last edited by pghvlaans; 05-06-2024 at 05:52 PM. Reason: Wrong package name
 
1 members found this post helpful.
Old 05-06-2024, 11:37 PM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,849

Rep: Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518
A full installation of 14.2 includes bsdtar (from package libarchive). You can use it. A similar case was here:
https://www.linuxquestions.org/quest...4/#post6334198
 
1 members found this post helpful.
Old 05-08-2024, 04:48 AM   #4
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 213

Rep: Reputation: Disabled
Upgrading 14.2.. Switch to the easy way: install 15.0 from DVD or PXE if you have a lan.
 
Old 05-08-2024, 08:12 AM   #5
chemfire
Member
 
Registered: Sep 2012
Posts: 426

Rep: Reputation: Disabled
I haven't done this in a long while but I recall botching a similar upgrade perhaps from 13.0 to 13.1 or something and I did this basically:

1) Boot the 15.0 media
2) Mount the 15.0 package tree somewhere like /cdrom
3) Mount your 14.2 root fs maybe on /mnt
4) use installpkg with switches --root /mnt to install (don't worry about upgrading them)the packages in steps 1, and 2 of UPGRADE.txt

Reboot into your 14.2 environment (it should work now)

5) go to run 1
6) you can removepkg the old 14.2 versions of the packages in steps 1 and 2; you might use -warn first to make sure there are no 'surprises'
It would probably be a good idea to then repeat steps 1 and 2 as well just to be sure everything is consistent.
7) Finish the upgrade
 
1 members found this post helpful.
Old 05-08-2024, 08:58 PM   #6
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,586

Original Poster
Rep: Reputation: 179Reputation: 179
These were all useful suggestions. I'll keep this thread in case I ever mess this up again. What I ended up doing was booting the 14.2 DVD, removing the OS related directories (i.e. not /root, not /home and such), and restoring the drive from backup with 'tar --keep-newer-files'. That didn't take too long -- maybe an hour; an appropriate "timeout" for being stupid (in fact it took a bit longer as the computer was remote and I had to travel there and back). I then followed the UPGRADE.TXT instructions paying close attention!
 
  


Reply

Tags
recover, slackpkg, slackware, tar



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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How do I un tar a .tar, .tar.z, .tar.gz file vofkid Linux - Newbie 4 03-15-2002 02:54 PM
Clobbered MBR ? rovoreed Linux - Software 5 10-26-2001 12:49 PM

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

All times are GMT -5. The time now is 12:41 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