maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   help needed to remove samba (https://talk.maemo.org/showthread.php?t=74957)

gorgezilla 2011-07-15 14:50

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:~#

misterc 2011-07-15 17:00

Re: help needed to remove samba
 
Quote:

Originally Posted by gorgezilla (Post 1051601)
hi there...i have a problem...[...]

did you alreadt try any of

Code:



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# apt-get clean
Nokia-N900:~# apt-get autoremove
Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Nokia-N900:~# apt-get autoclean
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Nokia-N900:~#

?

gorgezilla 2011-07-15 17:01

Re: help needed to remove samba
 
yes, i even googled it and nothing happend. thanks anyway.

misterc 2011-07-15 17:07

Re: help needed to remove samba
 
Code:

apt-get -f install
?

gorgezilla 2011-07-15 17:09

Re: help needed to remove samba
 
nope :((...still trying...

Keneraali 2011-07-15 17:13

Re: help needed to remove samba
 
Code:

dpkg -P samba
What about this?

gorgezilla 2011-07-15 17:17

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

Estel 2011-07-15 17:42

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.

misterc 2011-07-15 18:04

Re: help needed to remove samba
 
Code:

dpkg --configure samba
?

gorgezilla 2011-07-15 19:20

Re: help needed to remove samba
 
Quote:

Originally Posted by misterc (Post 1051730)
Code:

dpkg --configure samba
?

well, samba is out but now i am encountering the samba-common problem...can not be removed, purged...damn...:(

misterc 2011-07-15 20:14

Re: help needed to remove samba
 
samba-common is a dependency of samba;
did you try
Code:

apt-get autoremove
?

JamesBond@ge 2011-07-15 20:30

Re: help needed to remove samba
 
What does Sambo do?

misterc 2011-07-15 20:43

Re: help needed to remove samba
 
samba : Opening Windows to a Wider World

gorgezilla 2011-07-16 08:04

Re: help needed to remove samba
 
could anyone please provide me with the dpkg file from the path /usr/bin/dpkg ....thanks in advance...

gorgezilla 2011-07-16 09:33

Re: help needed to remove samba
 
please.......

gorgezilla 2011-07-16 10:31

Re: help needed to remove samba
 
please, please again, provide me with the dpkg file from the path /usr/bin/dpkg ....thanks in advance...

Estel 2011-07-16 13:11

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.

gorgezilla 2011-07-16 17:32

Re: help needed to remove samba
 
thanks @Estel. Finally i had to reflash my phone...

b-man 2011-07-16 17:56

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 ...
/bin/sh: illegal option -
dpkg: error processing samba (--remove):
subprocess post-removal script returned error exit status 2

there was either a syntax error in the post-removal script (/var/lib/dpkg/info/samba*.postrm) or the post-removal script was written with standard bash in mind (not the ash substitute that busybox provides) and relied upon bash-specific flags.

Has anyone else had such problems?

gorgezilla 2011-07-16 18:51

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

hringriin 2011-12-14 15:02

Re: help needed to remove samba
 
Quote:

Originally Posted by b-man (Post 1052290)
provides) and relied upon bash-specific flags.
[...]
Has anyone else had such problems?


Yep, I still have such problems ...

Code:

root @ n900 : ~ # apt-get remove 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 30 not upgraded.
6 not fully installed or removed.
After this operation, 14,8MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 45533 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)

I'm not experienced in reflashing my phone, so this method would be my last alternative in order to fix that problem.
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

reinob 2011-12-15 12:28

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.

Nadfoka 2012-01-07 11:46

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.

sup 2012-11-23 16:13

Re: help needed to remove samba
 
Quote:

Originally Posted by Nadfoka (Post 1147042)
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.

Yep, that works.

Wikiwide 2013-02-12 12:50

Re: help needed to remove samba
 
Quote:

Originally Posted by Nadfoka (Post 1147042)
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.

Quick reply...
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