E: Sub-process /usr/bin/dpkg returned an error code (1)

Asked by k viswanath reddy

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cmake-data dpkg-dev emacsen-common fakeroot g++ g++-4.4 global libaudio2
  libmng1 libmysqlclient16 libphonon4 libqt4-assistant libqt4-dbus
  libqt4-designer libqt4-help libqt4-network libqt4-script libqt4-scripttools
  libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-test libqt4-webkit libqt4-xml
  libqt4-xmlpatterns libqtcore4 libqtgui4 libstdc++6-4.4-dev libwxbase2.8-0
  libwxgtk2.8-0 mysql-common patch python-foolscap python-sip python-wxgtk2.8
  python-wxversion python2.6-dev xz-utils
Suggested packages:
  debian-keyring debian-maintainers g++-multilib g++-4.4-multilib gcc-4.4-doc
  libstdc++6-4.4-dbg doxygen apache httpd id-utils python-profiler
  python-numpy python-matplotlib nas libqt4-dev qt4-qtconfig
  libstdc++6-4.4-doc libgnomeprintui2.2-0 diffutils-doc python-qt4-dbg
  wx2.8-doc wx2.8-examples python-wxtools ruby tcsh csh octave3.0 mksh pdksh
The following packages will be REMOVED:
  crossplatformui
The following NEW packages will be installed:
  build-essential cmake cmake-data dpkg-dev emacsen-common fakeroot g++
  g++-4.4 global ipython libaudio2 libmng1 libmysqlclient16 libphonon4
  libqt4-assistant libqt4-dbus libqt4-designer libqt4-help libqt4-network
  libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-svg
  libqt4-test libqt4-webkit libqt4-xml libqt4-xmlpatterns libqtcore4 libqtgui4
  libstdc++6-4.4-dev libwxbase2.8-0 libwxgtk2.8-0 mysql-common patch
  python-dev python-foolscap python-qt4 python-sip python-wxgtk2.8
  python-wxversion python2.6-dev xz-utils
0 upgraded, 43 newly installed, 1 to remove and 340 not upgraded.
1 not fully installed or removed.
Need to get 0B/57.5MB of archives.
After this operation, 178MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
(Reading database ... 122943 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
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
k viswanath reddy (viswanath514) said :
#1

please help me in solving this error. I am new to ubuntu

Revision history for this message
J. Austin Rodriguez (jeanaustinr) said :
#2

Please run 'sudo apt-get -f install' (without the quotes) on a Terminal. That should fix your problem.

Revision history for this message
sanjay ahuja (sanjayahuja-iitg) said :
#3

Hi, I have tried to run "sudo apt-get -f install', but problem is not resolved.

sanjay@sanjay:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done

The following packages will be REMOVED:
  crossplatformui
0 upgraded, 0 newly installed, 1 to remove and 70 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 437369 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
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help

Revision history for this message
Ritesh Gurung (ritesh-gurung) said :
#4

I am having the same problem. Tried N number of solutions but was not able to resolve. Is there any update/resolution.

Revision history for this message
allhuda (allhuda) said :
#5

try this one

katya@Tyara ~ $ cd /var/lib/dpkg/info
katya@Tyara /var/lib/dpkg/info $ sudo rm crossplatformui.*
katya@Tyara /var/lib/dpkg/info $ sudo apt-get remove --purge crossplatformui

Revision history for this message
Majisi Jitendrasinh (jitendrasinh) said :
#6

I have same problem.
I tried all the steps given by https://gist.github.com/Brainiarc7/eb140201c25819ab8a5763dc5bee436d
Last step that is <code>sudo cp /etc/mysql/myslq.cnf /etc/mysql/my.cnf.fallback</code>
returns error as
 cp: cannot stat '/etc/mysql/myslq.cnf': No such file or directory.

I tried to open the file and could open the file. So file exists.
Any help is really appreciated.
I am new to LAMP.

Can you help with this problem?

Provide an answer of your own, or ask k viswanath reddy for more information if necessary.

To post a message you must log in.