Score:0

Installing Samba - Unable to correct problems, you have held broken packages

br flag

Using: Ubuntu 20.04.3 LTS

I have been trying to share a folder locally and it requires samba. When I do sudo apt install samba, I get the below error. I have searched online and none of the solutions worked. I tried reinstalling manually some packages below, but no luck. Do you know how I can fix this and get past the error? Thanks!

reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 samba : Depends: python3-samba but it is not going to be installed
         Depends: samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.9) but it is not going to be installed
         Depends: libpython3.8 (>= 3.8.2) but it is not going to be installed
         Depends: samba-libs (= 2:4.11.6+dfsg-0ubuntu1.9) 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.
user535733 avatar
cn flag
The most common reason for getting the `you have requested an impossible situation` paragraph is that folks have tried to bolt newer software onto an older base system. That means installing wrong-version packages from a wrong-version source, PPA, or non-Ubuntu source.You must locate and uninstall those *conflicting* packages. Then delete those sources that provided the conflicting packages. That's how "fix" the problem -- by returning to stock Ubuntu.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.