![]() |
help needed to remove samba
hi there...i have a problem...while testing and installing some new apps, and of course uninstalling them, I met this problem when trying to uninstall/purge/remove samba. Could you please, if available, provide feedback on deleting samba cuz' am i not able anymore to install other apps.
thanks in advance... BusyBox v1.18.5 (Debian 1.18.5power2) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ root Nokia-N900:~# apt-get purge samba Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: samba 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. 3 not fully installed or removed. Need to get 0B/345kB of archives. After this operation, 14,8MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 30223 files and directories currently installed.) Removing samba ... /bin/sh: illegal option - dpkg: error processing samba (--remove): subprocess post-removal script returned error exit status 2 Errors were encountered while processing: samba E: Sub-process /usr/bin/dpkg returned an error code (1) Nokia-N900:~# |
Re: help needed to remove samba
Quote:
Code:
|
Re: help needed to remove samba
yes, i even googled it and nothing happend. thanks anyway.
|
Re: help needed to remove samba
Code:
apt-get -f install |
Re: help needed to remove samba
nope :((...still trying...
|
Re: help needed to remove samba
Code:
dpkg -P samba |
Re: help needed to remove samba
BusyBox v1.18.5 (Debian 1.18.5power2) built-in shell (ash)
Enter 'help' for a list of built-in commands. ~ $ sudo dpkg -P samba dpkg: status database area is locked by another process ~ $ sudo dpkg -P samba (Reading database ... 30272 files and directories currently installed.) Removing samba ... /bin/sh: illegal option - dpkg: error processing samba (--purge): subprocess post-removal script returned error exit status 2 Errors were encountered while processing: samba ~ $ root BusyBox v1.18.5 (Debian 1.18.5power2) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900:~# dpkg -P samba (Reading database ... 30210 files and directories currently installed.) Removing samba ... /bin/sh: illegal option - dpkg: error processing samba (--purge): subprocess post-removal script returned error exit status 2 Errors were encountered while processing: samba Nokia-N900:~# dpkg -P samba-common dpkg: error processing samba-common (--purge): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: samba-common Nokia-N900:~# thats is what comes out |
Re: help needed to remove samba
So, try what it suggest - apt-get --reinstall samba, then try removing...
If that doesn't help, I'm afraid that samba post-uninstall scripts are sadly broken (at least, vs Your device), and You'll need to manually find and delete remaining files/configs/whatsnot. |
Re: help needed to remove samba
Code:
dpkg --configure samba |
Re: help needed to remove samba
Quote:
|
Re: help needed to remove samba
samba-common is a dependency of samba;
did you try Code:
apt-get autoremove |
Re: help needed to remove samba
What does Sambo do?
|
Re: help needed to remove samba
|
Re: help needed to remove samba
could anyone please provide me with the dpkg file from the path /usr/bin/dpkg ....thanks in advance...
|
Re: help needed to remove samba
please.......
|
Re: help needed to remove samba
please, please again, provide me with the dpkg file from the path /usr/bin/dpkg ....thanks in advance...
|
Re: help needed to remove samba
1 Attachment(s)
Here You go (see attament).
Keep in mind that asking 3 times in row, wasn't going to help, and may only scarry out more experienced people, from this thread. Still, I doesn't see how this may help You. |
Re: help needed to remove samba
thanks @Estel. Finally i had to reflash my phone...
|
Re: help needed to remove samba
Man, it's been a long time since I've posted here...
Although it's probably a bit too late to mention this now, judging from what dpkg was telling you, Code:
Removing samba ... Has anyone else had such problems? |
Re: help needed to remove samba
@b-man....thanks but i decided to go with a new reflash. but your solution will be tried and amended by future new troublers....thanks again
|
Re: help needed to remove samba
Quote:
Yep, I still have such problems ... Code:
root @ n900 : ~ # apt-get remove samba Isn't there any chance to fix that error? Hopefully there is one :-( Any solutions mentioned in this thread so far failed horribly ... Regards hringriin |
Re: help needed to remove samba
@hringriin,
Can you post the contents of /var/lib/dpkg/info/samba.postrm? That script may need to be adapted to work, or just removed if not necessary. |
Re: help needed to remove samba
Hi,
I faced the same problem yesterday. Samba was marked as partly installed, reinstall is needed to be able to remove. It wanted to install update-inetd package, but it had some conflicts with an already installed package "netbase", both of them have /usr/sbin/update-inetd in them and this made the problem: samba wanted to use update-inetd as prerequisite, which does not want to be installed due to conflict -> samba package partly installed, reinstall needed... Vicious circle. Solution: 1. I have removed the ^M from the end of the lines with vi in /var/lib/dpkg/info/samba.postrm 2. searched for samba in /var/lib/dpkg/status 3. changed its Status: row to: Status: install ok installed Then "dpkg -P samba" did its job and removed the package successfully. I hope it helps you as well. |
Re: help needed to remove samba
Quote:
|
Re: help needed to remove samba
Quote:
Thank you. I have had this problem with samba-common for a while now, and your solution worked perfectly. Best wishes. |
All times are GMT. The time now is 18:17. |
vBulletin® Version 3.8.8