0

Please help. I am receiving the following error when I try to install samba on my Ubuntu 20.04 server. Here is the error:

The following packages have unmet dependencies:

 samba : Depends: python-samba but it is not going to be installed

         Depends: samba-common (= 2:4.7.6+dfsg~ubuntu-0ubuntu2.20) but 2:4.11.6+dfsg-0ubuntu1.1 is to be installed

         Depends: samba-common-bin (= 2:4.7.6+dfsg~ubuntu-0ubuntu2.20) but it is not going to be installed

         Depends: samba-libs (= 2:4.7.6+dfsg~ubuntu-0ubuntu2.20) but it is not going to be installed

         Recommends: samba-dsdb-modules but it is not going to be installed

         Recommends: samba-vfs-modules but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Here is what my sources.list looks like:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
  • I tried both suggestions from that page, but 'apt-mark showhold' doesn't show any broken packages. – ThePol Oct 13 at 19:29
  • If you say you are running 20.04, why has your sources.list only got 'bionic' (18.04) in it ? – Rowland Penny Oct 13 at 19:42
  • Rowland Penny identified the exact problem! For some reason, my sources.list referenced 'bionic' and not 'focal'. I upgraded from bionic 6 - 9 months ago. Not sure why it was still being referenced. Huge thanks! – ThePol Oct 13 at 21:17
  • If the problem was solved, it would be great if either of you posted the answer to the question. – Roman Riabenko Nov 19 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.