last day (15 days later) » 

19:12
6
A: I have deleted systemd

A.BI'll assume all commands below are run as root user. Either login directly as root, or if you can't, log instead as the user allowed to use sudo and use sudo -i: there should be a root prompt with a # at its end. You should backup the contents of /var/log/apt with cp -a /var/log/apt /root/log-apt...

Hence i dont have internet connection so the additional package in the remove of sysv init cant be installed
after removing systemv init and install systemd and reboot I run ps-p 1 it still show init . Please write the command line that I should see from its out put what has been missed
Aha such a big trouble 😔
A.B
A.B
@Hussain So to get network. If using Ethernet (wired): get the interface name using ip -br link. Then run dhclient -v eth0 (replace eth0 with the actual interface name from the previous command). If using Wifi, plan B: have a live image available on USB stick or on CD. Which is it for you?
Theee internettt wooorkkkkkk i cantttt express my greatfullness to youuuu sirrr
A.B
A.B
Btw, for anything more difficult (eg: Wifi and can't get network and don't want to figure out if enough commands are available to start it), the plan B is described there (and can then be followed the apt commands in my answer): wiki.debian.org/RescueLive
@ unix.stackexchange.com/users/251756/a-b could you tell me how can I examine the log backup in /root/log-apt-backup/history.log
A.B
A.B
19:12
@Hussain as written in the answer: look for the lines having Remove: in them. They'll show what was removed because of the apt commands. Find the ones below the two Commandline: having your two apt remove systemd and similar commands. It shows everything (which might be a lot) that was removed because of this. This gives a list of packages to potentially put back. Where are you having a problem in this?
Actually I dont know which command should be writen with this option root/log-apt-backup/history.log
A.B
A.B
19:38
I'm sorry but if you don't know how to read the content of a file, it might be easier to copy important data elsewhere and reinstall everything. I'll still give you a few ideas about reading this file, a very basic operation, but I don't intent to give each and every command for this
So this file is in /root requiring root, better copy it elsewhere again. as root user (as written at the start of my answer) copy int again in /var/tmp:
 cp -a /root/log-apt-backup /var/tmp/
Now /var/tmp/log-apt-backup/history.log can be read by a normal user. You can use any tool to display a file: vi, nano, mousepad, even Firefox should be able to display it by navigating to file:///var/tmp/log-apt-backup/history.log . Find the date of your commands, find your commands and find what was removed. Make a list, and reinstall what you might want to need that you lost.
If this looks too difficult, then I'm sorry it will be easier to reinstall the whole system instead.
(or take the chance to switch to Devuan if you believe you don't want systemd)
19:54
Ahaa thanks i get it just read the file of the first command Sorry for anyone you but it just part of being new to something
 
2 hours later…
21:38
If i can send you a photo the photo will be the GUI of my os so you had help me so i thank you even though you get angery on me 😢😢
A.B
A.B
22:07
Glad you got it back. It's not that I'm angry. I'm not. But stackexchange is not really meant to be an interactive help. It's aiming at solving problems well described. So sometimes, depending on the effort invested before and what effort has to be invested later, it might really be faster to restart from scratch.

last day (15 days later) »