install failed on raspberry pi 3 model b

Asked by Dr.Ink on 2017-08-28

here is the error message:

systemd is the active init system, please switch to another before removing systemd.

dpkg: error processing package systemd (--remove):

subprocess installed pre-removal script returned error exit status 1 addgroup: The group `systemd-journal' already exists as a system group. Exiting. Errors were encountered while processing:

systemd

E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu screen Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2017-08-29
Last query:
2017-08-29
Last reply:
2017-08-29
Manfred Hampl (m-hampl) said : #1

What command did you issue leading to this output?
What is the output of the diagnostic commands

uname -a
lsb_release -crid
sudo dpkg --audit

Dr.Ink (knird) said : #2

i'm so sorry, i reinstalled respbian, so there is no diagnostic output. :(

and i just tried to install screen package in ssh shell by execute "apt-get install screen" with root user.

Do you mean Raspian?

Dr.Ink (knird) said : #4

i'm sure it's Raspbian :D

Then you want the Raspbian forum. You aren't using Ubuntu
https://www.raspberrypi.org/forums/viewforum.php?f=66

Dr.Ink (knird) said : #6

Thanks actionparsnip, that solved my question.