Skip to content

Instantly share code, notes, and snippets.

@wallace
Created July 13, 2012 01:28
Show Gist options
  • Save wallace/3102188 to your computer and use it in GitHub Desktop.
Save wallace/3102188 to your computer and use it in GitHub Desktop.
root@wallaces-desktop:/home/kristina/Downloads# apt-get remove scratch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
scratch
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 46.7 MB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing scratch (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
scratch
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wallaces-desktop:/home/kristina/Downloads# apt-get install scratch
Reading package lists... Done
Building dependency tree
Reading state information... Done
scratch is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/29.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Selecting previously unselected package scratch.
(Reading database ... 155928 files and directories currently installed.)
Preparing to replace scratch 1.4.0.6~dfsg1-1~ubuntu12.04.1 (using .../scratch_1.4.0.6~dfsg1-1~ubuntu12.04.1_all.deb) ...
Unpacking replacement scratch ...
/var/lib/dpkg/info/scratch.postrm: 6: /var/lib/dpkg/info/scratch.postrm: gtk-update-icon-cache: not found
dpkg: warning: subprocess old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: 6: /var/lib/dpkg/tmp.ci/postrm: gtk-update-icon-cache: not found
dpkg: error processing /var/cache/apt/archives/scratch_1.4.0.6~dfsg1-1~ubuntu12.04.1_all.deb (--unpack):
subprocess new post-removal script returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: 6: /var/lib/dpkg/tmp.ci/postrm: gtk-update-icon-cache: not found
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 127
Processing triggers for desktop-file-utils ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/scratch_1.4.0.6~dfsg1-1~ubuntu12.04.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wallaces-desktop:/home/kristina/Downloads#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment