Active Topics

 


Reply
Thread Tools
Posts: 1 | Thanked: 1 time | Joined on Dec 2011
#21
Originally Posted by b-man View Post
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

Last edited by hringriin; 2011-12-14 at 15:04.
 

The Following User Says Thank You to hringriin For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#22
@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.
 

The Following User Says Thank You to reinob For This Useful Post:
Posts: 1 | Thanked: 6 times | Joined on Jan 2012
#23
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.
 

The Following 6 Users Say Thank You to Nadfoka For This Useful Post:
Posts: 197 | Thanked: 91 times | Joined on Dec 2010
#24
Originally Posted by Nadfoka View Post
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.
 

The Following User Says Thank You to sup For This Useful Post:
Posts: 2,006 | Thanked: 3,351 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#25
Originally Posted by Nadfoka View Post
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.
 
Reply

Tags
samba remove


 
Forum Jump


All times are GMT. The time now is 14:01.