1

I'm new to the Raspberry Pi platform and also complitly new to Linux OS. That said, trubleshooting by my self is pretty much impossible. I hope I can find some help here :)

I wanted to install Samba, tho i could open a network folder set up on my Windows machine. To do that, I found these command lines online:

sudo apt-get update
sudo apt-get install samba samba-common-bin

But no matter what I try after searching for houres in forums, I allways get this error messege:

pi@raspberrypi:— $ sudo apt-get install samba samba-common-bin
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: python-samba but it is not going to be installed
        Depends: samba-common (= 2:4.2.14+dfsg-O+deb8u11) but 2:4.5.12+dfsg-2+deb9u3 is to be installed
        Depends: samba-dsdb-modules but it is not going to be installed
        Depends: samba-libs (= 2:4.2.14+dfsg-O+deb8u11) but 2:4.5.12+dfsg-2+deb9u3 is to be installed
        Recommends: attr but it is not going to be installed
        Recommends: samba-vfs-modules but it is not going to be installed
samba-common-bin : Depends: python-samba but it is not going to be installed
                   Depends: samba-common (= 2:4.2.14+dfsg-O+deb8u11) but 2:4.5.12+dfsg-2+deb9u3 is to be installed
                   Depends: samba-libs (= 2:4.2.14+dfsg-O+deb8u11) but 2:4.5.12+dfsg-2+deb9u3 is to be installed
E: Unable to correct problems, you have held broken packages.

I am sorry if this is a dumb question to ask, but I have simply no clue what Im doing wrong... If you need further Information please contact me, I will be fast to give them If I can!

3

There is something messed with your package manager. You may try to "reset" it. Just follow this answer to Raspberry Pi sudo apt-get update not working. Then remove partially installed samba with:

rpi ~$ sudo apt --autoclean purge samba

and reboot. Then try to install samba again with:

rpi ~$ sudo apt install samba
  • Thank you so much for your help! That worked perfectly! – Valentin Storre Apr 5 at 12:08
  • @ValentinStorre Glad to help you ;-) It would be nice if you could accept the answer with a tick on the tick on the left side. This will finish the question and show others that is has a solution. – Ingo Apr 5 at 12:10
  • Great answer, +1. Just a suggestion for your consideration: Include the steps from the referenced answer in this answer. I feel a complete answer may be more useful for some. – Seamus Apr 5 at 12:35
  • @Seamus I have thought about it but I'm improving my old answers from time to time and searching and modifying them on every place is annoying. Something like an include tag would be nice .. – Ingo Apr 5 at 12:44
  • Good point... maybe make that as a feature suggestion? But perhaps there's a more direct approach... do you have a GitHub account? – Seamus Apr 6 at 13:08

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.