LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   I have broken samba, and it looks like most other things. (https://www.linuxquestions.org/questions/linux-mint-84/i-have-broken-samba-and-it-looks-like-most-other-things-4175634493/)

hoochnz 07-19-2018 06:36 PM

I have broken samba, and it looks like most other things.
 
Hey there, in my newness i have managed to break samba, ive come here after about 2 hours on google, running lots of apt-purge this and force that.

Anyhoo, long story (a week or so) short, I wanted to get my Mint machine which is running plex as a media station in the lounge, to be able to be seen by my wife's windows 10 machine, she could ping and connect to the mint machine via IP, but not by name.

SO i figured i had done something wrong in samba, so i added a gui and made changes, bad idea, somehow i changed my login password, and root password.. managed to fix that booting to a shell so i decided to remove samba and re-install.. and now im here :)

i used synaptic to remove samba, and then reboot and re-install, but nothing seemed to change, so i manually went digging around deleting anything with samba attatched to it.. i now know thats a bad move.

I am runnning linux mint 18
uname -r = 4.15.0-24-generic


so i run $ sudo apt-get remove --purge samba samba-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package samba-common-bin.list
E: Couldn't find any package by glob 'samba-common-bin.list'
E: Couldn't find any package by regex 'samba-common-bin.list'
E: Unable to locate package samba-common-bin.md5sums
E: Couldn't find any package by glob 'samba-common-bin.md5sums'
E: Couldn't find any package by regex 'samba-common-bin.md5sums'
E: Unable to locate package samba-common-bin.postinst
E: Couldn't find any package by glob 'samba-common-bin.postinst'
E: Couldn't find any package by regex 'samba-common-bin.postinst'
E: Unable to locate package samba-common-bin.prerm
E: Couldn't find any package by glob 'samba-common-bin.prerm'
E: Couldn't find any package by regex 'samba-common-bin.prerm'
E: Unable to locate package samba-common.conffiles
E: Couldn't find any package by glob 'samba-common.conffiles'
E: Couldn't find any package by regex 'samba-common.conffiles'
E: Unable to locate package samba-common.config
E: Couldn't find any package by glob 'samba-common.config'
E: Couldn't find any package by regex 'samba-common.config'
E: Unable to locate package samba-common.list
E: Couldn't find any package by glob 'samba-common.list'
E: Couldn't find any package by regex 'samba-common.list'
E: Unable to locate package samba-common.md5sums
E: Couldn't find any package by glob 'samba-common.md5sums'
E: Couldn't find any package by regex 'samba-common.md5sums'
E: Unable to locate package samba-common.postinst
E: Couldn't find any package by glob 'samba-common.postinst'
E: Couldn't find any package by regex 'samba-common.postinst'
E: Unable to locate package samba-common.postrm
E: Couldn't find any package by glob 'samba-common.postrm'
E: Couldn't find any package by regex 'samba-common.postrm'
E: Unable to locate package samba-common.preinst
E: Couldn't find any package by glob 'samba-common.preinst'
E: Couldn't find any package by regex 'samba-common.preinst'
E: Unable to locate package samba-common.prerm
E: Couldn't find any package by glob 'samba-common.prerm'
E: Couldn't find any package by regex 'samba-common.prerm'
E: Unable to locate package samba-common.templates
E: Couldn't find any package by glob 'samba-common.templates'
E: Couldn't find any package by regex 'samba-common.templates'
E: Unable to locate package samba-libs:amd64.list
E: Couldn't find any package by glob 'samba-libs:amd64.list'
E: Couldn't find any package by regex 'samba-libs:amd64.list'
E: Unable to locate package samba-libs:amd64.md5sums
E: Couldn't find any package by glob 'samba-libs:amd64.md5sums'
E: Couldn't find any package by regex 'samba-libs:amd64.md5sums'
E: Unable to locate package samba-libs:amd64.preinst
E: Couldn't find any package by glob 'samba-libs:amd64.preinst'
E: Couldn't find any package by regex 'samba-libs:amd64.preinst'
E: Unable to locate package samba-libs:amd64.shlibs
E: Couldn't find any package by glob 'samba-libs:amd64.shlibs'
E: Couldn't find any package by regex 'samba-libs:amd64.shlibs'
E: Unable to locate package samba-libs:amd64.triggers
E: Couldn't find any package by glob 'samba-libs:amd64.triggers'
E: Couldn't find any package by regex 'samba-libs:amd64.triggers'

and then when i run $ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba is already the newest version (2:4.3.11+dfsg-0ubuntu0.16.04.13).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.13) ...
invoke-rc.d: dangling symlink: /etc/rc5.d/S07smbd
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 102
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)


and : $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.13) ...
invoke-rc.d: dangling symlink: /etc/rc5.d/S07smbd
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 102
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)



I did broke it. :(

how do i unbreak it any help/suggestions will be appreciated
sorry for the wall of txt.

hydrurga 07-20-2018 12:56 PM

Can you please paste the output from the following command (within CODE tags - see the # icon in LQ's advanced editor):

Code:

dpkg -l | grep -v "^ii"

michaelk 07-20-2018 09:22 PM

Problem solved
https://www.linuxquestions.org/quest...gs-4175634508/

Duplicate thread closex.


All times are GMT -5. The time now is 08:00 PM.