install failed on raspberry pi 3 model b

Asked by Dr.Ink

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
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.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Do you mean Raspian?

Revision history for this message
Dr.Ink (knird) said :
#4

i'm sure it's Raspbian :D

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

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

Revision history for this message
Dr.Ink (knird) said :
#6

Thanks actionparsnip, that solved my question.