LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2015, 07:05 PM   #1
winstonsmith84
LQ Newbie
 
Registered: Aug 2015
Location: Earth now, Mars later
Distribution: Mint
Posts: 9

Rep: Reputation: Disabled
Can't install samba in Ubuntu 14.04


I've been reading up on this all day and I can't get anywhere with it. This is a new install of Ubuntu. Only a week old or so. When I run apt-get install samba I get the following output:

The following packages have unmet dependencies:
samba : Depends: samba-common (= 2:4.1.6+dfsg-1ubuntu2.14.04.7) but 2:4.1.6+dfsg-1ubuntu2.14.04.8 is to be installed
Depends: samba-common-bin (= 2:4.1.6+dfsg-1ubuntu2.14.04.7) but 2:4.1.6+dfsg-1ubuntu2.14.04.8 is to be installed
Depends: samba-dsdb-modules but it is not going to be installed
Depends: samba-libs (= 2:4.1.6+dfsg-1ubuntu2.14.04.7) but 2:4.1.6+dfsg-1ubuntu2.14.04.8 is to be installed
Recommends: attr
Recommends: samba-vfs-modules but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If I'm understanding this right, this means I need samba-common 14.04.7 before it can install samba-common 14.04.8 which it is trying to install? ETC. How do I get these older versions if that's what I need to do? I tried switching servers to two others and updated and tried samba install again and got the same error output. I've got all options checked in Software & Updates under Ubuntu Software and under Other software. This error means I'm missing earlier pieces of Samba, correct? I don't understand how to fix this or why it even happened.

Any ideas?
 
Old 08-25-2015, 10:41 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

Does installing and using "aptitude" in place of "apt-get" help or are you unable to install anything?

Regards...
 
Old 08-25-2015, 10:50 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
E: Unable to correct problems, you have held broken packages.
I think that line the key, as apt normally resolves dependencies.

Try

Code:
apt-get --fix-broken
See man apt-get for more.
 
Old 08-28-2015, 07:44 PM   #4
winstonsmith84
LQ Newbie
 
Registered: Aug 2015
Location: Earth now, Mars later
Distribution: Mint
Posts: 9

Original Poster
Rep: Reputation: Disabled
aptitude didn't do anything.

apt-get --fix-broken just returned the error that fix-broken isn't a command. Perhaps I typed it wrong? I did issue sudo before it so that's not the reason.

I purged samba-common and samba-libs and samba-common-bin since they were clearly an issue. I then reran apt-get install samba and it worked. however I now have no sharing option when I right click a folder or file. Before if I right clicked on something the context menu had a sharing option but when I tried to use it I got an error and it would fail. The right click share menu I'm referring to is shown here http://www.7tutorials.com/how-access...ders-windows-7

It's now missing. So there must still be something I need to install?
 
Old 08-28-2015, 07:52 PM   #5
winstonsmith84
LQ Newbie
 
Registered: Aug 2015
Location: Earth now, Mars later
Distribution: Mint
Posts: 9

Original Poster
Rep: Reputation: Disabled
ahh.. I just did whereis nautilus-share and it came back blank.
I fixed that, rebooted and I have the share option in the context menu again. Still haven't tested the sharing part yet but I'm getting somewhere.

EDIT:
Got it. Sharing works. Need to figure out how to secure it with a password though. I tested it with guest access on and I can reach it fine. When I turn guest access off it prompts for credentials. I enter linuxcomputername\myusername and my linux logon passowrd but I get access denied. I'm going to assume that Samba requires a different password setup rather than just using the logon credentials to the computer itself. I'll read up on that and figure out. I can mark this one as solved though. If anyone else comes through with the exact same samba error I had this is what I did:

sudo apt-get purge samba-common
sudo apt-get purge samba-libs

I then rebooted and redid apt-get install samba

It was here that I realized the issue I now had with nautilus.
sudo apt-get install nautilus-share

Everything is golden now. Hope this helps any future fellow new users.

Last edited by winstonsmith84; 08-28-2015 at 08:13 PM.
 
1 members found this post helpful.
Old 08-29-2015, 01:27 AM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by winstonsmith84 View Post
Everything is golden now. Hope this helps any future fellow new users.
Cool, I'm glad you got it working. Thanks for sharing what worked for you.

Regards...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install HP Photosmart C4240 on Ubuntu Server 12.04 to print with Samba and CUPS maples Linux - Server 4 02-06-2014 08:14 PM
Unable to install Samba on VMWare running Ubuntu 10.10 as guest OS & XP as host pawan613 Linux - Virtualization and Cloud 3 11-29-2011 06:47 AM
Ubuntu Server 10.04 samba install & configuration help Verlox Linux - Newbie 1 10-02-2011 09:13 AM
LXer: How to install and configure samba in ubuntu 10.10 Maverick Meerkat via GUI LXer Syndicated Linux News 0 09-29-2010 02:20 AM
how to install and configure samba in ubuntu rishiraj Linux - Newbie 2 04-22-2008 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration