LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-27-2014, 12:50 PM   #1
rdgreenlaw
Member
 
Registered: May 2007
Location: Newport, Maine, USA
Distribution: Debian 8.7
Posts: 73

Rep: Reputation: 18
Question Problem trying to upgrade mono on Ubuntu 14.04LTS


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?

Any help greatly appreciated.
 
Old 06-29-2014, 03:23 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
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.


Halvy

Last edited by halvy; 06-29-2014 at 03:25 PM.
 
1 members found this post helpful.
  


Reply

Tags
mono, monodevelop, ubuntu 14.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.04LTS to 12.04LTS, Upgrade or install? Soadyheid Ubuntu 14 07-21-2014 10:47 AM
Firefox problem in Ubuntu 14.04LTS? ivtec Ubuntu 2 04-18-2014 03:56 PM
wubi problem for ubuntu 12.04LTS harry456 Linux - Software 1 12-30-2013 12:42 PM
problem with any ns2 version on ubuntu 12.04LTS r0w225 Linux - Software 0 10-30-2013 01:44 AM
Suspected Networking Problem with Ubuntu Server 10.04lts amgenhammer Linux - Networking 5 09-12-2010 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration