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.
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
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?
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.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 950
Rep:
Quote:
Originally Posted by Quicken2k
I broke slack
Welcome to the club
Quote:
Originally Posted by WhiteWolf1776
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.
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.
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.
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.
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.
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
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.