Linux - SoftwareThis 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
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 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.
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.
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.
'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.
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.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.