[Pkg-mono-devel] Cannot run MonoDevelop, MonoDoc - MonoCommon does not seem to install properly

Jo Shields directhex at apebox.org
Thu Aug 14 07:26:57 UTC 2008


On Wed, 2008-08-13 at 23:55 -0700, Brett Senior wrote:
> I wanted to install monodevelop and the help system monodoc.  All
> seemed to go OK during the install, but when I run monodevelop I get
> the following error:
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for MonoDevelop.Core.GettextCatalog
> ---> System.TypeInitializationException: An exception was thrown by
> the type initializer for Mono.Unix.Native.Stdlib --->
> System.DllNotFoundException: MonoPosixHelper
>   at (wrapper managed-to-native)
> Mono.Unix.Native.Stdlib:GetDefaultSignal ()
>   at Mono.Unix.Native.Stdlib..cctor () [0x00000] --- End of inner
> exception stack trace ---
> 
>   at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000] 
>   at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index,
> Int32 count, System.Text.Encoding encoding) [0x00000] 
>   at Mono.Unix.UnixMarshal.StringToHeap (System.String s,
> System.Text.Encoding encoding) [0x00000] 
>   at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000] 
>   at Mono.Unix.Catalog.MarshalStrings (System.String s1,
> System.IntPtr& p1, System.String s2, System.IntPtr& p2, System.String
> s3, System.IntPtr& p3) [0x00000] 
>   at Mono.Unix.Catalog.Init (System.String package, System.String
> localedir) [0x00000] 
>   at MonoDevelop.Core.GettextCatalog..cctor () [0x00000] --- End of
> inner exception stack trace ---
> 
>   at MonoDevelop.Core.Logging.ConsoleLogger.Log (LogLevel level,
> System.String message) [0x00000] 
>   at MonoDevelop.Core.LoggingService.Log (LogLevel level,
> System.String message) [0x00000] 
>   at MonoDevelop.Core.LoggingService.LogError (System.String message,
> System.Exception ex) [0x00000] 
>   at MonoDevelop.Core.Runtime.SetProcessName (System.String name)
> [0x00000] 
>   at MonoDevelop.Startup.SharpDevelopMain.Main (System.String[] args)
> [0x00000] 

Try "aptitude reinstall libmono0"

> and when I try to install monodoc, I get the following error:
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for Monodoc.EditingUtils --->
> System.TypeInitializationException: An exception was thrown by the
> type initializer for Monodoc.SettingsHandler --->
> System.TypeInitializationException: An exception was thrown by the
> type initializer for System.Xml.Serialization.XmlSerializer --->
> System.Configuration.ConfigurationException: Cannot
> find /etc/mono/1.0/machine.config ()
>   at System.Configuration.DefaultConfig.Init () [0x00000] 
>   at System.Configuration.DefaultConfig.GetConfig (System.String
> sectionName) [0x00000] 
>   at System.Configuration.ConfigurationSettings.GetConfig
> (System.String sectionName) [0x00000] 
>   at System.Xml.Serialization.XmlSerializer..cctor () [0x00000] ---
> End of inner exception stack trace ---
> 
>   at Monodoc.SettingsHandler..cctor () [0x00000] --- End of inner
> exception stack trace ---
> 
>   at Monodoc.EditingUtils..cctor () [0x00000] --- End of inner
> exception stack trace ---
> 
>   at Monodoc.HelpSource.GetHelpXmlWithChanges (System.String id)
> [0x00000] 
>   at Monodoc.EcmaHelpSource.GetXmlFromUrl (System.String url,
> System.String& rest) [0x00000] 
>   at Monodoc.EcmaHelpSource.PopulateIndex (Monodoc.IndexMaker
> index_maker) [0x00000] 
>   at Monodoc.RootTree.MakeIndex () [0x00000] 
>   at Monodoc.Driver.Main (System.String[] args) [0x00000] 
> dpkg: error processing monodoc-browser (--configure):
>  subprocess post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of monodoc:
>  monodoc depends on monodoc-browser; however:
>   Package monodoc-browser is not configured yet.
> dpkg: error processing monodoc (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  monodoc-browser
>  monodoc
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I went into synaptic and looked at package mono-common and according
> to the installed files it installs the /etc... config file - but when
> I look in that directory it is empty.  I did an apt-get update before
> installing so that I have the latest etc.

Try "aptitude purge mono-common; aptitude install mono-common"

I'm not sure why so many important files are missing for you - have you possibly suffered some kind of disk corruption?





More information about the Pkg-mono-devel mailing list