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
darron clarison (darronclarison412) said :
#25

Hello there,

Welcome to Ubuntu Linux! Sharing files between Linux and Windows can be a bit tricky. Regarding your Samba issue, it's great that you're trying to troubleshoot it.

To remove the leftover files, you can use the following command to remove packages that were installed with Samba:

bash
Copy code
sudo apt-get autoremove
This should help clean up any residual files that were installed alongside Samba.

Remember, Linux is quite versatile, and while troubleshooting, always proceed with caution. Your Ubuntu system should remain stable, just be mindful when removing packages.

Best of luck, and feel free to ask if you encounter any more issues on : https://topfollowapks.net/instaflow-apk/

Revision history for this message
sp5der hoodie (sp5derhoodie) said :
#26
Revision history for this message
Kaisaab (kisan93) said :
#27

Our platform is a treasure trove of information covering a wide range of topics within the automotive domain. https://motorsstuff.com/

Revision history for this message
oliverstan (danielzane) said (last edit ):
#28
Revision history for this message
oliverstan (danielzane) said :
#29

Join us at https://dogvettips.com/english-goldendoodle/ for endless fun with your furry sidekicks! Our articles are straightforward and loaded with vet-recommended tips, from grooming to nutrition and everything in between. Let's enhance your dog's quality of life!

Revision history for this message
jhon drake (jhondrake8205) said :
#30

Hello,

Welcome to Ubuntu Linux! To thoroughly remove Samba4 and its associated files, you can use the following steps:

Remove Samba4: Use the apt-get remove or apt-get purge command to remove Samba4. For example:

arduino
Copy code
sudo apt-get purge samba4
Clean up dependencies: To remove residual configuration files and dependencies, you can use the autoremove command:

arduino
Copy code
sudo apt-get autoremove
Verify remaining files: If there are still files related to Samba4, you can manually remove them using the rm command. Be careful with this step and ensure you are deleting the right files:

bash
Copy code
sudo rm -rf <file_path>
Make sure to double-check the files before removing them to avoid unintentional deletion. If you're uncertain, seeking assistance from the Ubuntu community or forums is always a good idea. Best of luck! for more https://authreviews.com/how-to-collapse-an-ironing-board/

Revision history for this message
Ran usami (ranusami) said :
#31

When you use the "sudo apt-get remove" or "sudo apt-get purge" commands, they typically remove the main package you specify, but they might not remove all related or dependent packages, especially if those packages are also used by other applications. This can leave some residual packages behind. I did the same on https://bestlaptopsexpert.com/ and get solved in few days.

Revision history for this message
TeoZamir (teozamir) said :
#32

delete any residual configuration files using sudo rm -rf /etc/samba/. If you want to completely clean up, you can remove Samba user data with sudo deluser --remove-home <username>, replacing <username> with the Samba username you want to remove. Lastly, check for any remaining Samba-related packages using dpkg -l | grep samba and remove them with apt-get remove or apt-get purge if any are found. For more info you can check : https://lulapk.com/alight-motion-shake-effect-download/ .

Revision history for this message
Carol Vesson (carolvesson101) said :
#33

Hello,

Welcome to Ubuntu Linux! I understand your concern about removing Samba4 and its associated files. It's essential to be cautious when dealing with system files.
To remove the additional files installed with Samba4, you can use the following command:
arduino
Copy code
sudo apt-get autoremove
This command will remove any unused dependencies and packages that were installed alongside Samba4. It should help clean up your system without affecting any vital components. However, it's always a good idea to double-check the list of packages that will be removed before confirming.If you encounter any issues or uncertainties during the process, feel free to ask for further assistance. Ubuntu has a supportive community, and there are resources available to help you with any challenges you may face.
Best of luck, and I hope you have a great experience with Ubuntu Linux! For more visit : https://bodyly.nl/crazy-bulk-testol-140-beoordeling/

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.