Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hi, I was having some difficulties running a package under mono. It was recommended by the software developer that I upgrade mono to a newer version.
I downloaded, compiled, and installed the new version of mono. Unfortunately, this broke my system. I have since resolved most of the issues with removal of mono from the system, but get stuck here:
# apt-get remove libglade2.0-cil
(Reading database ... 374488 files and directories currently installed.)
Removing libglade2.0-cil (2.12.10-5) ...
E: File does not exist: /usr/share/cli-common/packages.d/policy.2.8.glade-sharp.installcligac
dpkg: error processing package libglade2.0-cil (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
libglade2.0-cil
#
My attempts to reinstall the Ubuntu supplied version of mono, and any updates or installs of any other packages fails dut to this unresolved error.
I have attempted to force the package removal using dpkg, but that fails with the same error message.
Is there any way I can make my system remove the package, or reinstall it, without having to reinstall Ubuntu on my computer?
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918
Rep:
I am hoping you figured this out without having to pull a backup or reinst..
For next time, you can fool dpkg.. by manually going into the file which tells it what is going on with your system (ie. what is installed, half configured, etc.).
I believe it's in var/lib/dpkg and called either 'state' or something similar.
There you will find (or not find) the offending file(s).. and you can either delete the whole several lines relating to it.. or other mods.
The next time you run 'fix' or 'apt check'.. it will hickup.. but should be ok.
make backups of these 'state' files.. incase you really mess things up.
Sometimes creating a 'fake' file with the name of the file that apt is complaining about (being missing) will help.. or it is looking for a file that you just need to make a link for (to wherever the actual file is).
I try to stay away from mono (as you may have read by now, as do most 'non-m$' folks like us do).
If there are NO alternatives.. then at least ignore the suggesting to 'upgrade it'.. and just try to work around it or with the current ver.
Also.. compiling, although awesome for added power,usage, etc.. seems to put files where it is harder to find them (to correct or delete).
I hope this helps.. at least for future apt problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.