remove samba4 and associated files

Asked by Philip Slater

Hello,
I am new to Ubuntu Linux.

I was looking at how to share documents on the Linux computer with a WIN7 desktop. Sharing WIN7 to Linux is fairly straightforward, but I was getting stuck on the other way round. I found out that I needed SAMBA on the Linux machine and installed (Sudo apt-get install samba4) Samba, but came up with errors during the install. I want to remove Samba4 entirely and have tried "remove" and "purge", and possibly try again.

The main Samba4 file is removed, but approximately 26 other files installed at the same time are still there. As these files all have the same installation time and date as the main Samba file, can these safely be removed? If so, do these all have to be removed one by one using apt-get remove or is there an easier way? Some of the files refer to Python e.g. Python -ldb (1.1.6-1,automatic). As Ubuntu rescued me from a crashed Vista PC, I don't really want to mess it up.

Thanks for any help

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba4 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you needed samba why did you install samba4 and not samba?

Why did you not use nautilus to share folders and let me IS install what is needed rather than attempting to guess?

Revision history for this message
Philip Slater (pgslater) said :
#2

Hello Actionparsnip,
Thank you for at least replying, but not very helpful so far.
As I explained, I am very new to Linux.
When I checked if samba was installed, Terminal notified me that it was not and suggested sudo apt-get install samba4, which answers your first question.
I have no idea what nautilus is - yet - and as for "let me IS install what is needed rather than attempting to guess?", I'm afraid I don't know what you asking.
I had rather hoped that the Ubuntu forum might be a little more tolerant of novices, but you must have started once??

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Run:

sudo apt-get --purge remove samba4

What is the full output please?

Thanks

Trust me. I help all users of all levels.

Revision history for this message
Daniel Letzeisen (dtl131) said :
#4

If the files belong to a package, then you need to remove that package (using apt-get or dpkg). 'dpkg-query -S' shows what file a package belongs to:

dpkg-query -S <file>

In your case, this will fix you:
sudo apt-get purge python-samba python-ldb

Revision history for this message
jamebenz (jamebenz82) said :
#63

Welcome to Ubuntu Linux! To completely remove Samba4 and associated files, you can use the 'autoremove' option with 'apt-get'. This will remove any unused dependencies left behind to and come into https://carliftserviceindubai.ae/. Simply run 'sudo apt-get autoremove' after uninstalling Samba4.

Can you help with this problem?

Provide an answer of your own, or ask Philip Slater for more information if necessary.

To post a message you must log in.