Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-22-2013, 02:23 PM   #1
LQ Newbie
Registered: Jun 2013
Distribution: Ubuntu 12.04 LTS
Posts: 2

Rep: Reputation: Disabled
"E: Sub-process /usr/bin/dpkg returned an error code (1)" while purging package

In order to make sure you people see the full picture, i'm going to slightly lengthy, please bear with me.

I have a ZTE USB modem. It came with its dialer software for various platforms. It also had one .deb file. I copied that file to my /home and ran
sudo dpkg -i CrossPlatformRelianceHSD-Ubuntui386.deb
Although there was an error, it installed and was available in the dash, but didn't work.
Now i tried to remove it using
sudo apt-get remove --purge crossplatformui

I got a message saying that removing crossplatformui required removal of various other packages including vlc, i hit yes and it removed vlc, but when it tried to remove the modem software it gave me this error.

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:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Now i can't install anymore packages. No updates, nothing. whenever i try to install new packages ubuntu tries to first remove this crossplatformui i get the above error code. What do i do?

List of things i've tried-

sudo dpkg --force-all -P crossplatformui
ran autoclean and autoremove.
ran dpkg --configure -a.
deleted files from /var/crash since i was also getting the message "No apport report written because MaxReports is reached already"

none of them helped.
Old 06-23-2013, 07:44 AM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864
Try it with
apt-get -f install
Which error did you get when installing?
Old 06-23-2013, 11:54 AM   #3
LQ Newbie
Registered: Jun 2013
Distribution: Ubuntu 12.04 LTS
Posts: 2

Original Poster
Rep: Reputation: Disabled
My problem is fixed. I went to the directory

/var/lib/dpkg/status (or maybe it was info)

and i saw a file that had an entry

Package: crossplatformui
Status: deinstall ok half-installed
Priority: extra
Section: non-free/net
Maintainer: ztemt
Architecture: i386
Version: 1.0.38
 /etc/acpi/events/ztemtEVDO-lidbtn 20fe0e769bea115150fed0715b78737f
 /etc/acpi/events/ztemtEVDO-powerbtn 48f6cf0bf3e7694c24ae8afbf2ff8714
 /etc/acpi/events/ztemtEVDO-sleepbtn 39e022399f624095fffe5102e5a2eaa3
 /etc/ 354d2849fbfb769a38425ae304d5b9ce
 /etc/udev/rules.d/10-ztemtEVDO.rules aa924f3f8b9ac35a9adcd0abad07e529
Description: Reliance Netconnect - Broadband+
I removed this text from the file, (sorry i don't remember that filename) and my problem is now fixed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) nardev Linux - Software 3 04-17-2013 04:01 AM
Errors installing wine to Ubuntu 12.04 "Sub-process /usr/bin/dpkg returned an error" dapurplesharpie Linux - Software 2 06-26-2012 07:07 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) acm321 Linux - Newbie 2 11-10-2008 10:32 PM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration