apt error with systemd reddit / selfhosted ---------------------------------------------------------------------- False-Bookkeeper8952 · 2023-12-02 09:49 Hello everybody, i recently created a server and i recently tried to install docker and got an error and ever since i keep getting this error and cant install no apt packages no more : Reading package lists... Done Building the dependency tree... Done Reading status information... Done You can run “apt --fix-broken install” to fix these issues. The following packages contain unmet dependencies: systemd: Depends: libsystemd-shared (= 252.17-1\~deb12u1) but will not be installed Recommends: systemd-timesyncd but will not install or time-daemon E: Unmet dependencies. Try "apt --fix-broken install" without a package (or indicate a solution). ​ and when i run apt --fix-broken install here is the output : Reading package lists... Done Building the dependency tree... Done Reading status information... Done Fixing dependencies... Done The following packages will be REMOVED: systemd 0 updated, 0 newly installed, 1 to remove and 0 not updated. 6 partially installed or removed. After this operation, 9871 KB of disk space will be freed. Would you like to continue ? \[Y/n\] (Reading database... 38337 files and directories already installed.) Removing systemd (252.17-1\~deb12u1)... systemd is the active init system, please switch to another before removing systemd. dpkg: error processing systemd package (--remove): The installed systemd script pre-removal package subprocess returned an error exit status 1 dpkg: too many errors, shutdown systemd-machine-id-setup: error while loading shared libraries: [libsystemd-shared-252.so](https://libsystemd-shared-252.so): cannot open shared object file: No such file or directory dpkg: error while cleaning: subprocess package systemd post-installation script installed returned an error exit status 127 Errors were encountered during execution: systemd The execution was stopped because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) can anybody please help ---------------------------------------------------------------------- thekrautboy · 2023-12-02 10:28 This has nothing to do with selfhosting, you need basic techsupport. Try a sub about whatever distro you are using like /r/Ubuntu or /r/Debian