/var/lib/dpkg/info/apache2.postinst: line 341: update-rc.d: command not found
dpkg: error while processing the apache2 (--configure) package:
  subprocess installed post-installation script returned error code 127


You seem to have a broken system, because that command is very basic and must 
be installed.

You could try this to attempt to fix it:

sudo apt update
sudo apt install init-system-helpers

If that fails or refuses to run, try:
sudo apt update
sudo apt -f install

And then:
sudo apt install init-system-helpers

This other bit of your log isn't encouraging either:
(Reading the database ...
dpkg: Warning: there is no list of files in the "mysql-server" package; assume 
that at the moment the package has no installed files
dpkg: Warning: the list of files in the package "mysql-server-core-5.7" is 
missing; assume that at the moment the package has no installed files

** Changed in: apache2 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1773629

Title:
  package apache2 2.4.27-2ubuntu4.1 failed to install/upgrade:
  подпроцесс установлен сценарий post-installation возвратил код ошибки
  127

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1773629/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to