Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried various ways of removing a package, trying all variations of apt-get remove, --purge, -P and so on. Also trying them with dpkg. I always get the same errors:
Removing serna-3.1 ...
Variable INSTALL_PREFIX is not set!
dpkg: error processing serna-3.1 (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
serna-3.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
but it does the same thing (below). BTW, does
anyone know how to remove something from the database by hand?
# apt-get remove --force-yes serna-3.1
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
serna-3.1
0 upgraded, 0 newly installed, 1 to remove and 1004 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 94.9MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 111457 files and directories currently installed.)
Removing serna-3.1 ...
Variable INSTALL_PREFIX is not set!
dpkg: error processing serna-3.1 (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
serna-3.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Obviously, that package never came from a Debian repo, so in order to delete it, you're going to have to reverse the command that originally installed it.
dpkg --purge -f serna-3.1
dpkg: conflicting actions --field and --purge
However to reverse the command that originally installed it I would have to convert a Serna .rpm
to the .deb format and try that with dpkg. Thats
what didn't work originally. Separately Serna is
installed (by install.sh (I am out of my depth!))
and working Ok. I guess the problem is
the original dpkg failure.
If I have the manufactured Serna .deb, how would that help dpkg to remove it? Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.