LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-07-2020, 09:03 PM   #1
xenomorph3613
LQ Newbie
 
Registered: Aug 2020
Location: Fargo, ND
Posts: 8

Rep: Reputation: Disabled
initscripts package on Debian


Over the years I became accustomed to shutting down my Linux PC simple using the command

Code:
init 0
from a terminal I had open as root. I guess I got lazy but I found that command alone was awesome instead of a GUI click here then there then confirmation dialog in most desktop environments.

Anyway it was always a command in place, out of the box on any distro I ever used. Well recently using Debian buster post installation running that same command gives the bash response
Code:
command not found
.

I believe it then requires the install of the package
initscripts to become a command to use again, but do I need to do any configuration to get the init command functional again. For whatever reason on Debian is like this. Ubuntu, Fedora and others still have it in the command lists as usual. So I just need to know how to implement it in debian after I install it. Anyone know?
 
Old 08-07-2020, 09:14 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,867
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Code:
# inxi -Sx
System:    Host: big31 Kernel: 4.19.0-10-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Trinity R14.0.8
           Distro: Debian GNU/Linux 10 (buster)
# which init
/sbin/init
# ll /sbin/init
lrwxrwxrwx 1 root root 20 Apr 27 13:02 /sbin/init -> /lib/systemd/systemd
Apparently your symlink is missing.
 
Old 08-07-2020, 09:21 PM   #3
xenomorph3613
LQ Newbie
 
Registered: Aug 2020
Location: Fargo, ND
Posts: 8

Original Poster
Rep: Reputation: Disabled
mrmazda

Thank you for your reply. That seems a simple fix. I will look into this later on my Linux box and see what I see then. Again, much obliged for the info.
 
Old 08-07-2020, 10:28 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by xenomorph3613 View Post
Over the years I became accustomed to shutting down my Linux PC simple using the command

Code:
init 0
from a terminal I had open as root. I guess I got lazy but I found that command alone was awesome instead of a GUI click here then there then confirmation dialog in most desktop environments.

Anyway it was always a command in place, out of the box on any distro I ever used. Well recently using Debian buster post installation running that same command gives the bash response
Code:
command not found
.

I believe it then requires the install of the package
initscripts to become a command to use again, but do I need to do any configuration to get the init command functional again. For whatever reason on Debian is like this. Ubuntu, Fedora and others still have it in the command lists as usual. So I just need to know how to implement it in debian after I install it. Anyone know?
I was used to using the halt command, Debian in its wisdom has adopted the systemd method now. Those commands that have been used by the init system were removed in the interest of helping users with their freedom and having it just work. I have made new arrangements.

Code:
root@haswell:~# alias halt
alias halt='systemctl poweroff'
root@haswell:~# alias reboot
alias reboot='systemctl reboot'
root@haswell:~# cat /etc/debian_version 
10.5

Of course the halt was an alias for or link to script containing (not sure which one) shutdown -h now and reboot the shutdown -r now commands. Still I was rather gagged having to search google to find out how to shutdown or reboot my machine upon upgrading to Buster.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] initscripts fails upgrading debian packages mpyusko Debian 11 10-17-2020 09:33 AM
Conflict between Debian initscripts and ipw2200 TheOneKEA Debian 2 01-24-2006 07:39 AM
HELP Installing initscripts Adibe_Hamm Linux - Newbie 3 09-24-2003 02:21 PM
initscripts gone, can't boot! merrimanjd Linux - Software 5 08-27-2003 09:44 AM

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

All times are GMT -5. The time now is 04:53 AM.

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