LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2021, 09:22 PM   #1
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Rep: Reputation: Disabled
slackware 14.2 repair installation


Hi everyone,

5.10.17
is there a way to fix a bad installation? I probably removed some packages or I did not installed properly or both and I have a next to nothing system, no ping/dhclient/slackpkg/wget/curl and so on. There are lots of packages in /var/log/packages mostly for X (X broken obviously)
installpkg and pkgtool works btw.

Tried upgradepkg --reinstall
no output

can not raise up network
I can fix it with a live media but I am wondering if this can be repaired as is. Thanks a lot!

Last edited by lattimro; 07-19-2021 at 11:19 AM.
 
Old 07-18-2021, 09:29 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,351
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
Given the number of issues you mention, it's probably best to back up any crucial data to external media and reinstall, especially as you report that you cannot connect to your network. You might be able to repair it manually, but it's likely to be more effort than it's worth.

Just my two cents.

Last edited by frankbell; 07-18-2021 at 09:32 PM. Reason: grammar
 
Old 07-18-2021, 09:40 PM   #3
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
I agree with you but I have another good standing slack on VM. I would like to spend some resources to try fixing this broken one as a learning experience. I am relatively new in BSD-like world therefore anything will be much appreciated. Thanks so much!

Last edited by lattimro; 07-18-2021 at 10:38 PM.
 
Old 07-19-2021, 04:21 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,628
Blog Entries: 19

Rep: Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464Reputation: 4464
If you have a working Slackware, you can install missing packages in the crippled one by using installpkg with an alternative root. Either set $ROOT to the root directory of your shot system or use the --root option to set it.
 
Old 07-19-2021, 07:24 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,543

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
Quote:
is there a way to fix a bad installation?
Of course, and it is a lot simpler if the user has an idea of what the problem is but you list a number of possibilities. Since there are a number of possibilities, where would you start. Seems like this would result in frustration possibly w/o a solution.

Is your working Slackware on VM on the same computer on another OS?

Simplest solution would be a data backup and reinstall, select to not format the / partition during the install which should retain functioning software and personal data.

Last edited by yancek; 07-19-2021 at 07:27 AM.
 
Old 07-19-2021, 08:06 AM   #6
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
I would install the missing packages but I do not know which ones are missing.
Yes, the slackware guests are on VM
 
Old 07-19-2021, 08:57 AM   #7
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
There is no learning experience here. Crashes time to time happen. But usually for different reasons. If you fix this now - it will not give you benefit in next crash. Learning experience is only in repetitive tasks. So save yourself time gaining worthless knowledge and reinstall system.
 
1 members found this post helpful.
Old 07-19-2021, 09:32 AM   #8
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by igadoter View Post
There is no learning experience here. Crashes time to time happen. But usually for different reasons. If you fix this now - it will not give you benefit in next crash. Learning experience is only in repetitive tasks. So save yourself time gaining worthless knowledge and reinstall system.
That is a rather negative attitude. Every experience is a learning experience. Every one of us learns from everything we do, whether it is one-off or repeated. Troubleshooting is a key part of learning and the OP has a "what not to do" and "how to fix" opportunity.

While I agree that the reinstall would be quickest and easiest, that is the lazy mans way of avoiding a challenge. The man already said he did things that broke the system so let him learn how to fix what was done instead of throwing water on his eagerness to learn.

Last edited by computersavvy; 07-19-2021 at 09:45 AM.
 
2 members found this post helpful.
Old 07-19-2021, 09:33 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
From your first post it looks like your missing packages from n and ap and maybe l. If you insist on attempting to fix without reinstalling the whole system, reinstall all of n and ap and maybe l using the install medium.

Last edited by colorpurple21859; 07-19-2021 at 09:38 AM.
 
Old 07-19-2021, 09:44 AM   #10
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
Originally Posted by computersavvy View Post
That is a rather negative attitude. Every experience is a learning experience.
It is about gaining skills which can be used in solving some tasks. No skills here to learn. Because next crash will be for completely different reasons. So knowledge gained here will be useless. Even worse. It can misguide. Just accept things time to time happen.
 
Old 07-19-2021, 06:41 PM   #11
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 336

Rep: Reputation: Disabled
Quote:
Originally Posted by lattimro View Post
5.10.17
If that is your kernel it's a long way in front.

my 14.2 kernel is 4.4.261

Did you update your mkinitrd file and does lilo point to it?

Quote:
is there a way to fix a bad installation?
Probably.

But I don't know what it is. And as others have suggested a reinstall is probably the easiest way out.

Quote:
I probably removed some packages or I did not installed properly or both
What you removed will be in your root terminal history. Therefore just reverse what you have removed.

Quote:
installpkg and pkgtool works btw.

can not raise up network
Interesting.

If installpkg works you are connecting to a mirror, so why you are not raising a network is beyond my knowledge.

Quote:
Tried upgradepkg --reinstall
no output
Isn't this supposed to have a package at the end?

Last edited by quickbreakfast; 07-19-2021 at 06:43 PM.
 
Old 07-19-2021, 09:41 PM   #12
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
installpkg command is available but I can not connect to a mirror. I said ping command not found, the same dhclient.
The ultimate question: Is slackpkg upgrade-all safe? Is anything that can prevent to break the slack?

I wanted to perform a
Full system upgrade
To perform a full system upgrade, please follow these steps (as root user):

Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all

slackpkg clean-system
https://docs.slackware.com/slackware:slackpkg
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2021-07-20_00-28-43.png
Views:	7
Size:	16.3 KB
ID:	36822  

Last edited by lattimro; 07-20-2021 at 08:39 PM.
 
Old 07-19-2021, 11:42 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
Post the output of
Code:
df -h
 
Old 07-20-2021, 08:18 AM   #14
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Post the output of
Code:
df -h
Code:
bash-5.1$ df -TH
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4       19G   11G  7.5G  59% /
devtmpfs       devtmpfs  505M     0  505M   0% /dev
tmpfs          tmpfs      34M  1.2M   33M   4% /run
tmpfs          tmpfs     509M     0  509M   0% /dev/shm
cgroup_root    tmpfs     8.4M     0  8.4M   0% /sys/fs/cgroup
Downloads      vboxsf    295G   83G  212G  29% /media/sf_Downloads
tmpfs          tmpfs     102M   13k  102M   1% /run/user/1000
bash-5.1$
 
Old 07-20-2021, 09:10 AM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
What lines do you have un-commented in /etc/slackpkg/mirrors
 
  


Reply



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
LXer: Boot Repair Tool - Repair The Most Boot Related Problems LXer Syndicated Linux News 0 06-21-2017 09:49 PM
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, pl deva420patra Linux - Server 4 11-23-2016 07:40 AM
Need to Repair a Slackware Installation mikekehrli Slackware 3 04-18-2008 01:10 PM
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 07:04 AM
installation repair? ray318 Linux - Software 1 04-22-2002 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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