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 06-10-2014, 04:15 PM   #1
Quicken2k
Member
 
Registered: Mar 2009
Posts: 48

Rep: Reputation: 3
Angry I broke slack :(


I broke slack I used instructions found on this http://docs.slackware.com/slackware:beginners_guide to update slack packages then did installpkg *.txz on the folder and in the sources folder now I can't login as root or user and no root commands (commands at all for that matter work)

I will probably need to reinstall slack . All I wanted to do was update security fixes

Mark
Quicken2k
 
Old 06-10-2014, 06:32 PM   #2
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
Security fixes are installed easily with slackpkg. Just set the mirror and follow the help and you are all set.

All of us have, at one time or another, destroyed our slack machine beyond fixing... esp when we were starting out, welcome to the club For this reason, I keep my /home mounted on a separate partition from root as that will let me reinstall and not lose my personal files, etc. Just something to consider if you are going to blow it away anyway and set it up again.

Looking at the guide tho, I don't see where it had you 'installpkg *.txz' anywhere? Is there some other guide you were following?
 
Old 06-10-2014, 06:33 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,217

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
You didn't download and install packages for the wrong architecture, did you?

Quote:
and in the sources folder
You don't "installpkg" from the source directory. When you did, it should have failed gracefully.

Last edited by dugan; 06-10-2014 at 07:50 PM.
 
Old 06-10-2014, 06:41 PM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Further to WhiteWolf1776's excellent post to set up slackpkg please follow these steps.

Navigate to /etc/slackpkg/mirrors using a text editor of your choice. Scroll down the list and uncomment one and only one mirror, that is, remove the # in front of the mirror. Save and exit. Then issue these commands in order to apply security updates.

Code:
# slackpkg update gpg
Code:
# slackpkg update
Code:
# slackpkg install-new
Code:
# slackpkg upgrade-all
P.S. The slackpkg install-new command is useful even for Slackware stable. Patrick on rare occasions does add new applications to the stable branch.

P.P.S. Once in awhile it is also a good idea to run #slackware clean-system to remove obsolete programs.
 
1 members found this post helpful.
Old 06-10-2014, 07:03 PM   #5
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
And to add to my friend hitest's post... be sure you setup the /etc/slackpkg/blacklist file prior to running that 'clean-system' command...
 
Old 06-10-2014, 08:59 PM   #6
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 926

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by Quicken2k View Post
I broke slack
Welcome to the club


Quote:
Originally Posted by WhiteWolf1776 View Post
All of us have, at one time or another, destroyed our slack machine beyond fixing...
For me it was three times, or more. Living and learning I must have a lot of libs and
other files from "configure && make && make install" on my system, from before I started to follow
the rule of thumb: install only from SlackBuilds, or AlienBob, rpm2txz, or others.
 
1 members found this post helpful.
Old 06-11-2014, 12:12 AM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You broke Slackware!!??!! HERACY!!! Get the spiky paddle of painful bottoms!!! Ye shalt learn thine place infidel!

I'm joking, hahaha

Anyways, maybe a reinstall might work, (you could always try to chroot back in from a Live disk or another Linux OS and run the updates and see if it fixes it) but do follow the tips above from hitest about updating.
 
Old 06-11-2014, 12:42 AM   #8
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
Linux does not stop you from doing stupid things .... because to do so would stop you from doing smart things !

And therein lies the fundamental difference between Unix/Linux and the other schmucks (windows/mac-os).
 
Old 06-11-2014, 01:15 AM   #9
orasis
Member
 
Registered: Mar 2008
Distribution: Slackware, Free-BSD
Posts: 53

Rep: Reputation: 34
You live, you learn. You probably installed packages for the wrong architecture. But, since it's a rather new install... don't give yourself a headache, just re-install Slack.
 
1 members found this post helpful.
Old 06-11-2014, 01:21 AM   #10
orasis
Member
 
Registered: Mar 2008
Distribution: Slackware, Free-BSD
Posts: 53

Rep: Reputation: 34
Quote:
Originally Posted by Mark Pettit View Post
Linux does not stop you from doing stupid things .... because to do so would stop you from doing smart things !

And therein lies the fundamental difference between Unix/Linux and the other schmucks (windows/mac-os).
Mac-OS X does a good job of keeping the user away from the internals of the system but ... Windows? Windows encourages the user to do stupid things. Windows is like that 'expert' friend that's always trying to give good advice but in reality has no clue what he's talking about.
 
Old 06-11-2014, 01:41 AM   #11
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
Start slackware from installation disk and try to fix manually. This way you should be able to mount your slackware partiton and at least backup important files. Probably you will be able to do much more: fix the problem with root password. The great problem really appears when the slackware patition cannot be mount as rw (read&write). I've got such isue sometime ago with JFS filesystem (i'm great fan of JFS). Then I was to histericall to realize that even though i could make a copy of what is really important. So maybe the first thing is: do not panic! Give youself some time. You are not the first person with such problem. Reinstalling is probably the last thing you should think of.
 
Old 06-11-2014, 02:59 AM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The good part is, Slackware only takes about 20-40 minutes to re-install on a moderately fast system, so you can get back up and running quickly.
 
Old 06-11-2014, 11:20 AM   #13
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
I second ReaperX7.

And it's even more quick when you have a local repository for the updates

That's what I do now when I install Slackware :

- Boot off the USB installer
- Retrieve all the packages from my local Apache server
- Reboot
- Perform updates that are retrieved from the local server as well

Done.
 
Old 06-12-2014, 06:46 PM   #14
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
Quote:
Originally Posted by Quicken2k View Post
I broke slack
Welcome to the Slackware learning curve! LOL!
When I first started using the Mighty Slack I screwed my box up so many times that I could do a hose & reload with out even thinking about it.
After you do it enough times you will get to where you can fix anything you screw up. And then, your addicted..
 
Old 06-12-2014, 07:38 PM   #15
ymf331
Member
 
Registered: May 2014
Posts: 50

Rep: Reputation: Disabled
Which package did you install? The asterisk is probably the important bit.

Last edited by ymf331; 06-12-2014 at 07:39 PM.
 
  


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
ping from Slack not to Slack ( Usb wireless card Atheros AR9271) andre.it Linux - Networking 1 07-22-2012 02:19 PM
upgrade to slack 13 broke samba unclejed613 Slackware 3 11-19-2009 06:59 AM
Slack 12 broke openldp gmartin Slackware 4 07-06-2007 08:28 AM
Updated Slack 10.2 and it broke :( Zmyrgel Slackware 14 04-01-2006 09:45 AM
I think I broke my slack nemat0de Slackware 5 06-26-2003 08:33 AM

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

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