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)

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:15.

vBulletin® Version 3.8.8