Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I was installing MTS Mblaz crossplatformui.deb for MTS data connect, its installed partial and shows error, and So I tried to uninstall "crossplatformui" but every time it showed following error.

installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 205769 files and directories currently installed.)
Removing crossplatformui ...
ztemtvcdromd: no process found
dpkg: error processing crossplatformui (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 crossplatformui
Setting up firmware-b43-installer (4.150.10.5-5) ...
--2012-06-01 14:11:21--  http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
Resolving mirror2.openwrt.org... 46.4.11.11
Connecting to mirror2.openwrt.org|46.4.11.11|:80... failed: Connection refused.
dpkg: error processing firmware-b43-installer (--configure):
 subprocess installed post-installation script returned error exit status 4
share|improve this question
    
did you try removal of the package with apt-get -f remove packagename option (fixes broken dependencies)? –  Samik Jun 1 '12 at 10:33
    
yha, I used sudo apt-get -f remove crossplatformui –  Arvind Gangwar Jun 2 '12 at 12:41
add comment

1 Answer 1

up vote 1 down vote accepted

Follow these steps carefully.

  1. sudo gedit /var/lib/dpkg/info/crossplatformui.postrm. This will open that file in gedit text editor with super-user privileges.
  2. press Ctrl+F in gedit to search. Write in the search-box ztemtvcdromd and comment out those lines which contains the search string by placing # at the start of the line(s).
    If this process seems complicated then simply put exit 0 after the first line (which should contain #!/sbin/sh).
  3. save the file /var/lib/dpkg/info/crossplatformui.postrm.
  4. then try dpkg -r --force-remove-reinstreq crossplatformui to uninstall the package.
share|improve this answer
    
And preferably set the locale en_US.UTF-8 which is universally supported instead of Indian English subset :). –  Samik Jun 2 '12 at 15:10
    
Thanks for reply but when i use that command the following message display (Reading database ... 205769 files and directories currently installed.) Removing crossplatformui ... ztemtvcdromd: no process found dpkg: error processing crossplatformui (--remove): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: crossplatformui –  Arvind Gangwar Jun 3 '12 at 17:44
    
Please provide the output of the command locale. –  Samik Jun 3 '12 at 17:48
    
Again Thanks for helping me, The output of locele command is as arvind@arvind-laptop:~$ locale LANG=en_IN LANGUAGE=en_IN:en LC_CTYPE="en_IN" LC_NUMERIC="en_IN" LC_TIME="en_IN" LC_COLLATE="en_IN" LC_MONETARY="en_IN" LC_MESSAGES=en_IN.UTF-8 LC_PAPER="en_IN" LC_NAME="en_IN" LC_ADDRESS="en_IN" LC_TELEPHONE="en_IN" LC_MEASUREMENT="en_IN" LC_IDENTIFICATION="en_IN" LC_ALL= –  Arvind Gangwar Jun 5 '12 at 4:31
1  
en_US.UTF-8 does not have to be universally available. Use the C locale, that is always available. Shortcut: LANG=C locale. See also askubuntu.com/q/142812/6969 on changing locales temporarily. –  Lekensteyn Jun 5 '12 at 9:33
show 11 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.