Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up an Ubuntu computer as a centralised storage for a few Windows 7 computers on my network. I did a fresh install of Ubuntu 12.10.

However, when I try to install Samba through the terminal using sudo apt-get install samba, I get this error:

Package samba is not available, but is referred to by another package.

If I try to install it by clicking on the directory I want to share, then checking "Share this folder" to trigger the "Sharing service is not installed, Install Server" dialogue box, it results in these errors:

Package 'samba' is virtual.
Package 'libpam-smbpass' is virtual.
Sharing service installation failed

I can't seem to find any information online about these errors - can someone help?

share|improve this question
Did you sudo apt-get update before trying to install? – guntbert Jan 31 '13 at 16:23
up vote 1 down vote accepted

I had a similar issue and I resolved this by running the following:

sudo apt-get update

I'm surprised the system doesn't automatically do an "apt-get update" immediately after installation - but the above fixes this.

share|improve this answer
Looks like this was the problem - I remember getting an "Update Failed" type message on installation. The issue is fixed now - thanks! – BiscuitBaker Feb 21 '13 at 10:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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