Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing slimrat fails when using fetch-slimrat-svn-ubuntu-package.sh generated debs #176

Open
GoogleCodeExporter opened this issue Oct 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. run fetch-slimrat-svn-ubuntu-package.sh and create deb files
2. install .deb files
3. try uninstalling .deb files


What is the expected output? What do you see instead?
I expect slimrat to uninstall properly Instead, I get this:
-------------
$ sudo apt-get remove slimrat
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  slimrat
0 upgraded, 0 newly installed, 1 to remove and 26 not upgraded.
After this operation, 122kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 244071 files and directories currently installed.)
Removing slimrat ...
/var/lib/dpkg/info/slimrat.postrm: 4: update-menus: not found
dpkg: error processing slimrat (--remove):
 subprocess installed post-removal script returned error exit status 127
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for desktop-file-utils ...
Processing triggers for python-support ...
Errors were encountered while processing:
 slimrat
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----------

This leaves slimrat in a half installed state which prevents me from installing 
or uninstalling anything new.

My only solution was to edit /var/lib/dpkg/info/slimrat.postrm and comment out 
the line trying to run update-menus.

What version of the product are you using? On what operating system?
I am running ubuntu lucid 10.04. 
It apparently does not have update-menus installed

Please provide any additional information below.
/var/lib/dpkg/info/slimrat.postrm assumes that update-menus is installed. Here 
is the file:
-------------
#!/bin/sh
set -e
# Automatically added by dh_installmenu
if [ -x  ]; then update-menus ; fi
# End automatically added section

update-icon-caches /usr/share/icons/hicolor
---------------

Contrast this with /var/lib/dpkg/info/slimrat.postinst, which checks to make 
sure update-menus exists:
-------------
#!/bin/sh
set -e
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  update-menus
fi
# End automatically added section
-------------

Original issue reported on code.google.com by [email protected] on 22 Dec 2010 at 11:45

@GoogleCodeExporter
Copy link
Author

I tested on fresh install of Ubuntu 10.10.

At first script need to be updated - add package "menu". 

So "sudo apt-get install subversion coreutils dpkg fakeroot gawk menu"

Then I build packages of slimrat, but there is still many missing packages. So, 
after 
 "sudo dpkg -i slimrat-nox_*.deb slimrat_*.deb" I need, to do "sudo apt-get install -f" to install missing dependencies.

Here is list of missing dependencies:
aview imagemagick libcdt4 libcrypt-ssleay-perl libfilter-perl libgraph4 
libgtk2-gladexml-perl libgvc5 libhttp-server-simple-perl libilmbase6 
libio-socket-ssl-perl libmagickcore3-extra libnet-libidn-perl 
libnet-ssleay-perl libnetpbm10 libopenexr6 libpathplan4 libspiffy-perl 
libwww-mechanize-perl libxdot4 netpbm tesseract-ocr tesseract-ocr-eng xclip

So, after all command before building have to be "sudo apt-get install 
subversion coreutils dpkg fakeroot gawk menu aview imagemagick libcdt4 
libcrypt-ssleay-perl libfilter-perl libgraph4 libgtk2-gladexml-perl libgvc5 
libhttp-server-simple-perl libilmbase6 libio-socket-ssl-perl 
libmagickcore3-extra libnet-libidn-perl libnet-ssleay-perl libnetpbm10 
libopenexr6 libpathplan4 libspiffy-perl libwww-mechanize-perl libxdot4 netpbm 
tesseract-ocr tesseract-ocr-eng xclip"

Original comment by [email protected] on 18 Feb 2011 at 7:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant