facing problem while installing any software due to crossplatformui:i386

Asked by ananda kumar

I am using ubuntu 12.04 LTS and for internet connections i am using ZTE made Reliance netconnect +.I tried to install kicad but i see a popped window showing,
"To install KiCad,these items must be removed:Reliance netconnect-broadband+(crossplatformui:i386)".
so i try to remove the bug using "sudo apt-get autoremove --purge crossplatformui:i386"
but i encountered this problem"dpkg:error processing crossplatformui:i386(--remove):subprocess installed post-removal script returned error exit status 1.
errors were encountered while processing:crossplatformui:i386
E:sub-process /usr/bin/dpkg returned and error code (1).
any guidance is welcome.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

crossplatformui is no genuine Ubuntu package, but from a third party, so we can only provide limited support with it.

Please provide the output of the commands

dpkg -l | grep crossplatformui
dpkg -l | grep eliance
ls -l /var/lib/dpkg/info/crossplatformui*
cat -n /var/lib/dpkg/info/crossplatformui*.postrm

Revision history for this message
ananda kumar (powerblaster-kumar) said :
#2

anandakumar@ubuntu:~$ dpkg -l | grep crossplatformui
rH crossplatformui:i386 1.0.27 Reliance Netconnect - Broadband+
anandakumar@ubuntu:~$ dpkg -l | grep reliance
anandakumar@ubuntu:~$ ls -l /var/lib/dpkg/info/crossplatformui*
-rw------- 1 root root 175 Dec 11 2009 /var/lib/dpkg/info/crossplatformui.conffiles
-rw-r--r-- 1 root root 394 Sep 19 14:00 /var/lib/dpkg/info/crossplatformui.list
-rw-r--r-- 1 root root 43809 Dec 11 2009 /var/lib/dpkg/info/crossplatformui.md5sums
-rwxr-xr-x 1 root root 4769 Dec 11 2009 /var/lib/dpkg/info/crossplatformui.postinst
-rwxr-xr-x 1 root root 1142 Dec 11 2009 /var/lib/dpkg/info/crossplatformui.postrm
anandakumar@ubuntu:~$ cat -n /var/lib/dpkg/info/crossplatformui*.postrm
     1 #!/bin/sh
     2 set -e
     3
     4 SETTING_DATA_PATH=".ztemtapp/ZTEEVDO"
     5
     6 #e.g. /var/lib/dpkg/info
     7 # when execs "sudo dpkg -P xxxx", 1st execute this script with "remove" arg, then execute this script with "purge" arg
     8 if [ "$1" = "remove" ] ; then
     9 sudo sed '/ztemt/d' /etc/init.d/rc.local > tmpfile; sudo mv -f tmpfile /etc/init.d/rc.local; sudo chmod 0755 /etc/init.d/rc.local
    10
    11 #kill ztemtvcdromd
    12 sudo killall -9 ztemtvcdromd
    13 if [ -d /usr/local/bin/ztemtApp/zteusbserial ] ; then
    14 sudo /bin/rm -Rd /usr/local/bin/ztemtApp/zteusbserial
    15 fi
    16
    17 #purge: Remove USB Driver
    18 if [ -n "$(lsmod|grep ztemt)" ]; then
    19 sudo /sbin/rmmod ztemt ;
    20 fi
    21
    22 sudo /sbin/ldconfig
    23
    24 #Delete Setting.conf
    25 /bin/rm -f /root/$SETTING_DATA_PATH/Setting.conf
    26 /bin/rm -f /root/$SETTING_DATA_PATH/EVDOApp.pid
    27
    28 for ALLUSERPATH in `find /home -mount -maxdepth 1 -mindepth 1 -type d`;
    29 do
    30 if [ -d $ALLUSERPATH ] ; then
    31 /bin/rm -f $ALLUSERPATH/$SETTING_DATA_PATH/Setting.conf
    32 /bin/rm -f $ALLUSERPATH/$SETTING_DATA_PATH/EVDOApp.pid
    33 fi
    34 done
    35
    36 fi
    37
    38 #if [ "$1" = "purge" ] ; then
    39 #fi
    40 # End automatically added section
    41

Revision history for this message
ananda kumar (powerblaster-kumar) said :
#3

here is the out put;

anandakumar@ubuntu:~*$ dpkg -l | grep crossplatformui*
*rH crossplatformui:i386 1.0.27
                        Reliance Netconnect - Broadband+*
anandakumar@ubuntu:~*$ dpkg -l | grep reliance*
anandakumar@ubuntu:~*$ ls -l /var/lib/dpkg/info/crossplatformui**
*-rw------- 1 root root 175 Dec 11 2009
/var/lib/dpkg/info/crossplatformui.conffiles*
*-rw-r--r-- 1 root root 394 Sep 19 14:00
/var/lib/dpkg/info/crossplatformui.list*
*-rw-r--r-- 1 root root 43809 Dec 11 2009
/var/lib/dpkg/info/crossplatformui.md5sums*
*-rwxr-xr-x 1 root root 4769 Dec 11 2009
/var/lib/dpkg/info/crossplatformui.postinst*
*-rwxr-xr-x 1 root root 1142 Dec 11 2009
/var/lib/dpkg/info/crossplatformui.postrm*
anandakumar@ubuntu:~*$ cat -n /var/lib/dpkg/info/crossplatformui*.postrm*
    * 1 #!/bin/sh*
* 2 set -e*
* 3 *
* 4 SETTING_DATA_PATH=".ztemtapp/ZTEEVDO"*
* 5 *
* 6 #e.g. /var/lib/dpkg/info*
* 7 # when execs "sudo dpkg -P xxxx", 1st execute this script with
"remove" arg, then execute this script with "purge" arg*
* 8 if [ "$1" = "remove" ] ; then*
* 9 sudo sed '/ztemt/d' /etc/init.d/rc.local > tmpfile; sudo mv -f
tmpfile /etc/init.d/rc.local; sudo chmod 0755 /etc/init.d/rc.local*
* 10 *
* 11 #kill ztemtvcdromd*
* 12 sudo killall -9 ztemtvcdromd*
* 13 if [ -d /usr/local/bin/ztemtApp/zteusbserial ] ; then*
* 14 sudo /bin/rm -Rd /usr/local/bin/ztemtApp/zteusbserial*
* 15 fi*
* 16 *
* 17 #purge: Remove USB Driver*
* 18 if [ -n "$(lsmod|grep ztemt)" ]; then*
* 19 sudo /sbin/rmmod ztemt ;*
* 20 fi*
* 21 *
* 22 sudo /sbin/ldconfig*
* 23 *
* 24 #Delete Setting.conf*
* 25 /bin/rm -f /root/$SETTING_DATA_PATH/Setting.conf*
* 26 /bin/rm -f /root/$SETTING_DATA_PATH/EVDOApp.pid*
* 27 *
* 28 for ALLUSERPATH in `find /home -mount -maxdepth 1 -mindepth 1
-type d`;*
* 29 do*
* 30 if [ -d $ALLUSERPATH ] ; then*
* 31 /bin/rm -f $ALLUSERPATH/$SETTING_DATA_PATH/Setting.conf*
* 32 /bin/rm -f $ALLUSERPATH/$SETTING_DATA_PATH/EVDOApp.pid*
* 33 fi*
* 34 done*
* 35 *
* 36 fi*
* 37 *
* 38 #if [ "$1" = "purge" ] ; then*
* 39 #fi*
* 40 # End automatically added section*
* 41 *

[image: --] <http://www.creatimail.com/?ref=1>

On Thu, Sep 19, 2013 at 1:31 PM, Manfred Hampl <
<email address hidden>> wrote:

> Your question #235977 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/235977
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> crossplatformui is no genuine Ubuntu package, but from a third party, so
> we can only provide limited support with it.
>
> Please provide the output of the commands
>
> dpkg -l | grep crossplatformui
> dpkg -l | grep eliance
> ls -l /var/lib/dpkg/info/crossplatformui*
> cat -n /var/lib/dpkg/info/crossplatformui*.postrm
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/235977
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

A procedure to follow when packages removal fails is described in http://www.cyberciti.biz/tips/troubleshooting-debian-ubuntu-package-upgrades-removals.html

In your case it is:
open a terminal window and issue the command

gksudo gksudo kate /var/lib/dpkg/info/crossplatformui.postrm

provide your password when asked so, and an editor should open that has a shell script loaded
comment out the second line by changing it from "set -e" to "# set -e"
save the file and close the editor.

Finally issue the command

sudo dpkg -P crossplatformui:i386 --force-remove-reinstreq

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Oops, it seems that you are not using Kubuntu, but Ubuntu, so the editor command should be

gksudo gksudo gedit /var/lib/dpkg/info/crossplatformui.postrm

Revision history for this message
ananda kumar (powerblaster-kumar) said :
#6

anandakumar@ubuntu:~$ gksudo gksudo gedit /var/lib/dpkg/info/crossplatformui.postrm
then saved the editor.
anandakumar@ubuntu:~$ sudo dpkg -P crossplatformui:i386 --force-remove-reinstreqdpkg: error: package name in specifier '--force-remove-reinstreq' is illegal: must start with an alphanumeric character

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

Sorry, it seems that I missed the right sequence of options and parameters:

sudo dpkg --force-remove-reinstreq -P crossplatformui:i386

Revision history for this message
ananda kumar (powerblaster-kumar) said :
#8

Thanks Manfred Hampl, that solved my question.