У меня тоже была похожая проблема. Решено
dpkg -P --force-remove-essential sysvinit
Проблема заключалась в нашем сетевом прокси. настоящая ошибка была
Err:3 https://packages.microsoft.com/ubuntu/18.04/prod bionic Release Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 13.90.56.68 443] To fix this issue in the docker script added these lines.
COPY "ca-bundle.crt"../usr/local/share/ca-certificates/ca-bundle.crt
RUN update-ca-certificates
ca -bundle.crt был файлом, который содержал открытый ключ корпоративного самоподписанного сертификата