LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "E: Sub-process /usr/bin/dpkg returned an error code (1)" while purging package (https://www.linuxquestions.org/questions/linux-newbie-8/e-sub-process-usr-bin-dpkg-returned-an-error-code-1-while-purging-package-4175467015/)

badboy97 06-22-2013 02:23 PM

"E: Sub-process /usr/bin/dpkg returned an error code (1)" while purging package
 
Hi,
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
Code:

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.

Code:

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
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. :(

TobiSGD 06-23-2013 07:44 AM

Try it with
Code:

apt-get -f install
Which error did you get when installing?

badboy97 06-23-2013 11:54 AM

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

Code:

Package: crossplatformui
Status: deinstall ok half-installed
Priority: extra
Section: non-free/net
Maintainer: ztemt
Architecture: i386
Version: 1.0.38
Conffiles:
 /etc/acpi/events/ztemtEVDO-lidbtn 20fe0e769bea115150fed0715b78737f
 /etc/acpi/events/ztemtEVDO-powerbtn 48f6cf0bf3e7694c24ae8afbf2ff8714
 /etc/acpi/events/ztemtEVDO-sleepbtn 39e022399f624095fffe5102e5a2eaa3
 /etc/ld.so.conf.d/ztemtApp.conf 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.


All times are GMT -5. The time now is 06:15 AM.