0

I am having samba problems and can't delete samba or fix it here is what I keep getting: I tried apt --fix-broken install but that yields pretty much the same dependency problems

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cifs-utils : Depends: libwbclient0 (>= 2:4.0.3+dfsg1) but it is not going to be installed
 libsmbclient : Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.10) but it is not going to be installed
 python3-samba : Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.10) but it is not going to be installed
 samba : Depends: samba-common (= 2:4.11.6+dfsg-0ubuntu1.9) but 2:4.11.6+dfsg-0ubuntu1.10 is to be installed
         Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.9) but it is not going to be installed
         Depends: samba-libs (= 2:4.11.6+dfsg-0ubuntu1.9) but 2:4.11.6+dfsg-0ubuntu1.10 is to be installed
 samba-common-bin : Depends: samba-common (= 2:4.11.6+dfsg-0ubuntu1.9) but 2:4.11.6+dfsg-0ubuntu1.10 is to be installed
                    Depends: samba-libs (= 2:4.11.6+dfsg-0ubuntu1.9) but 2:4.11.6+dfsg-0ubuntu1.10 is to be installed
                    Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.9) but it is not going to be installed
 samba-dsdb-modules : Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.10) but it is not going to be installed
 samba-libs : Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.10) but it is not going to be installed
 samba-vfs-modules : Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.10) but it is not going to be installed
 smbclient : Depends: samba-common (= 2:4.11.6+dfsg-0ubuntu1.9) but 2:4.11.6+dfsg-0ubuntu1.10 is to be installed
             Depends: samba-libs (= 2:4.11.6+dfsg-0ubuntu1.9) but 2:4.11.6+dfsg-0ubuntu1.10 is to be installed
             Depends: libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1.9) but it is not going to be installed
karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

0

Possible solutions:

  1. A combination of "improvements" on your command

    $ sudo apt update
    $ sudo apt install --fix-broken <all listed packages and dependencies in the message you reported>
    

    Note that this includes:

    1.1. A prior update. You might already have done this, I don't know. But it doesn't hurt.

    1.2. sudo in your install command. You might already have done this. If not, this alone may be the problem (I wonder about the returned message).

    1.3. --fix-broken. This might not be needed, with one or more of the above. I would try including this only if 1.2 doesn't work.

    1.4. Manually installing all packages and dependencies. See also this and this. I would try this only if 1.2 and 1.3 don't work. And combining this and 1.3 only if this doesn't work.

  2. Check the contents of /etc/apt/sources.list and /etc/apt/sources.list.d/ for "strange" repos.