I can't for the life of me get samba (server) to install on my raspberry pi
pi@raspberrypi ~ $ sudo apt-get install samba Reading package lists... Done Building dependency tree Reading state information... Done Package samba is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: smbclient samba-common libpam-winbind libnss-winbind E: Package 'samba' has no installation candidate
My sources.list looks like this:
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
Trying to install samba-common and samba-common-bin result in similar messages.
No amount of
sudo apt-get update or
sudo apt-get upgrade seems to be helping at all and all of the Googling I've done seems to have most people's similar problems solved by these update/upgrade.
I tried to install it from source, but ran into some dependency issues there that I couldn't immediately solve. It seems to me that the problem is in my sources.list file.. but I'm having a hard time figuring out what source I need to give me a valid installation candidate for samba.
sudo apt-get update I had two
There is no public key available for the following key IDs errors.
wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add - – but that didn't seem to fix them, but I tracked down the following command and ran it for each of the listed keys which fixed the issue:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com [key-id]
Now when I run
sudo apt-get update, there are no errors but
sudo apt-get install samba still returns the error
E: Package 'samba' has no installation candidate (as above)