|
2010-08-17
, 03:46
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#2
|
The Following 2 Users Say Thank You to dchky For This Useful Post: | ||
|
2010-11-13
, 00:32
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#3
|
|
2010-11-13
, 00:54
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#4
|
|
2010-11-13
, 00:59
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#5
|
|
2010-11-13
, 01:09
|
Posts: 11 |
Thanked: 2 times |
Joined on Jan 2010
|
#6
|
The solution is to open up your most favorite text editor and remove the silly windows LF/CR from the end of each line. Someone borked up - People still use Microsoft? : )
In simple terms ^M is spamming the scripts.
Both of the following files have this issue:
/var/lib/dpkg/info/samba-common.postinst
/var/lib/dpkg/info/samba-common.postrm
Once you remove the ^M from the end of every line, it will both install and remove correctly. It's quite probable that the other samba-common files in this directory are also having the same problem - though I didn't check.
|
2010-11-13
, 01:51
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#7
|
Hi there, I'm having this problem with smbfs and samba-common failing to configure, meaning they also fail when trying to remove them.
While I partly understand your instructions (have opened the two files you mentioned using a text editor) I don't know what you mean by ^M, and can't see anything of the sort anywhere in either file! Is ^M some sort of "code" or designation?
|
2010-11-13
, 04:59
|
Posts: 992 |
Thanked: 738 times |
Joined on Jun 2010
@ Low Earth Orbit
|
#8
|
cp /var/lib/dpkg/info/samba-common.postinst /var/lib/dpkg/info/samba-common.postinst.bak
cp /var/lib/dpkg/info/samba-common.postrm /var/lib/dpkg/info/samba-common.postrm.bak
tr -d '\r' < /var/lib/dpkg/info/samba-common.postinst.bak > /var/lib/dpkg/info/samba-common.postinst
tr -d '\r' < /var/lib/dpkg/info/samba-common.postrm.bak > /var/lib/dpkg/info/samba-common.postrm
|
2010-11-15
, 04:34
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#9
|
|
2010-11-15
, 04:57
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#10
|
solution?