I've been trying to install Samba on my Raspberry Pi, but seem to have created a broader issue in the process.
The steps to the issue were the following:
I ran the install code:
sudo apt-get install samba samba-common-bin
The install got stuck after a while, on the following message:
Setting up samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ... Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service already masked)
- Now, I can't install anthing, nor remove the partial samba install. Any attempt ends in
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Running the suggested command leads me back to the samba error message above.
I have tried all I could find online. Those had no effect:
sudo apt-get -f install
sudo apt-get cleanNor did killing the four processes running that refer to smbd.
The only thing that seemed to change something was
sudo dpkg --clear-selections
However, as soon as I launch any install after that, such as
sudo apt-get upgradeI end up back in the same loop.
I also tried removing samba with
sudo apt-get remove --purge samba, but it went back to the same loop too.
I can live with not installing samba, but not being able to install anything is more of a problem. Anyone who could help me solve the issue? Thanks!