I've got a problem during setup of apache. I am using Ubuntu version 18.04. I don't know what made this problem appeared...
I will just list all my commands.
apt-get update apt-get upgrade
I saw an error after I tried to upgrade:
E: Sub-process /usr/bin/dpkg returned an error code (1)
To solve it or a solution I used some commands below:
#!bin/sh exit 101 chmod +x /usr/sbin/policy-rc.d dpkg-divert --local --rename --add /sbin/initctl ln -s /bin/true /sbin/initctl
These are from this documentation
apt-get install apache2 apt-get install php apt-get install libapache2-mod-php apt-get install php-mbstring apt-get install php-gd apt-get install php-curl php-xml apt-get install mariadb-server /usr/bin/mysql_secure_installation use mysql; update user set plugin='' where User='root'; flush privileges; exit; apt-get install php-mysql adduser a2ensite
I downloaded phpmyadmin.
After all these commands I wanted to reboot Ubuntu but it didn't work.
After the command
reboot I saw a message like this:
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to talk to init daemon.
Rebooting. Failed to reboot: Invalid argument
I am complete newbie... I have no idea what I should do
I just reinstalled Ubuntu and I got the same messages mentioned above, though I did nothing but just tried
reboot after reinstalling.