LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2017, 11:01 AM   #1
wjones42
LQ Newbie
 
Registered: Mar 2017
Posts: 8

Rep: Reputation: Disabled
Angry Slackpkg fubared my system. Now nothing works


I ran slackpkg upgrade-all and everything seemed to work.
After the reboot, root could log into the console and then startx, but user account could not. Reload because I realized I had created no /home.
Then both root and user could startx. And I went to terminal, sudo su -, w/appropriate password, then as root slackpkg upgrade-all. (sudo slackpkg upgrade-all would not work)
So after a very l o n g update, I rebooted. Now neither root nor local user may startx.

In fact, now I can't even shut down the system. Even init 0 doesn't work. My computer just sits there.

Is there any way to roll back the slackpkg upgrades?
When the option to update LILO came up, I chose overwrite.
 
Old 03-15-2017, 02:32 PM   #2
bobf
LQ Newbie
 
Registered: Oct 2010
Posts: 13

Rep: Reputation: 1
I'd save my home directory, and reinstall the distribution from scratch. Then do all updates before reintroducing your personal data. Easiest way to fix big goofs that I know of.
 
Old 03-15-2017, 03:06 PM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by bobf View Post
I'd save my home directory, and reinstall the distribution from scratch. Then do all updates before reintroducing your personal data. Easiest way to fix big goofs that I know of.
An even easier way would be restoring the system partition image that was made, just in case, before doing the slackpkg upgrade-all, or part of routine maintenance backups.
 
Old 03-15-2017, 03:15 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
sudo su -
Slackware is NOT an sudo distro.
The correct way to login as root is 'su -'. This correctly sets the environment for the root user.
Quote:
Is there any way to roll back the slackpkg upgrades?
There is not an automated option for this. Reinstalling from scratch is likely to be quicker.
 
Old 03-15-2017, 03:26 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
did yo run
Code:
slackpkg install-new
then
slackpkg upgrade-all
or did you skip something?

if you can get cli login and network. then from the cli run the three in in order.
Code:
slackpkg update
slackpkg install-new
slackpkg update-all
see if that installs something that may not have.

'slackpkg install-new' will probably be the only one that will actually do anything due to you didn't run that one first after updating.

your sudo may not have worked due to you not even setting up your user to use sudo. But nevertheless as stated before su - first then run your admin commands.

no home or home/user is ok to update and what not in slack as root.

Last edited by BW-userx; 03-15-2017 at 03:41 PM.
 
Old 03-15-2017, 03:28 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by wjones42 View Post
Reload because I realized I had created no /home.
isn't that a "really big goof"?

Last edited by ondoho; 03-16-2017 at 02:41 AM.
 
Old 03-15-2017, 09:44 PM   #7
jek404
Member
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 34

Rep: Reputation: Disabled
I've got same problem: http://slackbuilds.org/mirror/slackw...ckware64-14.2/
How do you upgrade your system and have it work?
I did everything like it said
 
Old 03-16-2017, 02:20 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
For information on slackpkg, type 'man slackpkg' at the command line or see here.
I prefer to run 'slackpkg' from run level 3, as I have had issues when upgrading X from run level 4 in the past. To get to run level 3 from the grahical run level 4, you can run, as root, 'telinit 3' in a terminal window.
 
Old 03-16-2017, 07:37 AM   #9
jek404
Member
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 34

Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
For information on slackpkg, type 'man slackpkg' at the command line or see here.
I prefer to run 'slackpkg' from run level 3, as I have had issues when upgrading X from run level 4 in the past. To get to run level 3 from the grahical run level 4, you can run, as root, 'telinit 3' in a terminal window.
So if I change the Run level and follow slackpkg to a tee, as I have done before; (should I be root?)or is SU OK when done and I choose the use updates, my system will reboot and operate properly unstead of just hang at a flashing curser?
 
Old 03-16-2017, 09:17 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
I hate giving "it depends" answers, but it depends on your setup and the packages being upgraded.
The first golden rule is always be root when running slackpkg, either by logging as root, or using 'su -'.
My second golden rule is always be at run level 3 when running slackpkg. (Tip - If using lilo as your bootloader, hit Tab then add ' 3' to the boot command.)

If you boot to run level 4 routinely, rather than the default run level 3, most packages can be upgraded successfully. However problems with X upgrades have occurred when slackpkg is run when the system is at run level 4.

When kernel upgrades are involved then you will need to adjust boot loader configuration. If you are running the -huge kernel and using lilo as the boot loader, at the slackpkg prompt to run lilo after a kernel upgrade, just answer "Yes" and you are done. If you are running the -generic kernel with an init.rd, then you need to rebuild the initrd, then re-run lilo.
Kernel upgrades may also require rebuilding third party kernel modules (e.g. nVidia graphics drivers and VirtualBox).

Some packages also include configuration files with a .new suffix. When these are found, slackpkg will silently compare these with existing files and delete the incoming .new files if no differences are found. If differences are found, then it is up to the system administrator to reconcile the differences. You can use slackpkg with the 'new-config' option multiple times after an upgrade to locate these files. There are in-built options in slackpkg to view differences, remove, keep, overwrite existing the incoming .new files. This is important as these configuration files often include local customisation settings that need to be maintained. An alternative to the in-built slackpkg diff option is to simply keep the incoming .new file, then use vimdiff to update the existing file with changes in the incoming .new file. I find this easier with configuration files for cups and ssh(d) where I have extensive local customisations.

One weakness of slackpkg is that it only looks under /etc for incoming .new files. Some packages have .new files that are placed under /usr. The incoming files will be placed under /usr, ut slackpkg will not report or take action on these.

Last edited by allend; 03-16-2017 at 09:20 AM.
 
Old 03-16-2017, 09:51 AM   #11
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
You should not be running startx as root regardless. This is likely leading to .Xauthority being owned by root which will generally prevent the user from starting X normally.
 
Old 03-16-2017, 10:28 AM   #12
wjones42
LQ Newbie
 
Registered: Mar 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
cynwulf,
I haven't run startx as root.
After running slackpkg, I couldn't run startx under my user account. I could before running slackpkg.
After running slackpkg, I can't even run lynx.
 
Old 03-16-2017, 10:38 AM   #13
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Well now I am confused...
Quote:
Originally Posted by wjones42 View Post
root could log into the console and then startx, but user account could not
Quote:
Originally Posted by wjones42 View Post
Then both root and user could startx.
Quote:
Originally Posted by wjones42 View Post
Now neither root nor local user may startx.
Quote:
Originally Posted by wjones42 View Post
I haven't run startx as root.
 
Old 03-16-2017, 11:40 AM   #14
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Make sure you are using one mirror (uncomment only one in /etc/slackpkg/mirrors), making sure that it is the version you want and the architecture is correct.

What graphics card do you have? If its a binary blob (nvidia binary blob requires nouveau blacklist package and blacklist nouveau from upgrading in /etc/slackpkg/blacklist) then you need to reinstall it after upgrades like the kernel and mesa.
 
Old 03-16-2017, 11:52 AM   #15
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Generally, X related errors will appear in the system message buffer, or one can check the X.org log files in /var/log/

The OP hasn't posted any console output, nor given the OS release, kernel version, etc...

They also haven't specified the type of upgrade, whether just a general update or an attempts to upgrade from one release to another.

So not a lot to go on and guesswork isn't that useful.

Interestingly, the "tags" at the bottom of this thread include the phrase "slackware -current".
 
1 members found this post helpful.
  


Reply

Tags
fubar, slackpkg, slackware -current, startx



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
Trying to understand how slackpkg update works Zwergele Slackware 2 10-15-2014 03:08 PM
Since new kernel, Ethernet *finally* works, but Slackpkg and Gaim can't connect.... GrapefruiTgirl Slackware 52 11-17-2007 08:56 PM
Grub FUBARed mlitty Linux - Software 15 08-21-2007 03:39 AM
slackpkg doesn't works (problems with awk) sparc86 Slackware 8 04-11-2007 11:08 AM
Internet is fubared? Ne0BDP Linux - General 4 05-18-2004 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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