I'm trying to do a Mono install package per package, because the CentOS server doesn't have internet access. However, when I try to install the mono core package using the command:

rpm -i mono-core-

The system displays the following error message:

error: Failed dependencies:
    mono(System.ComponentModel.Composition) = is needed by mono-core-
    mono(System.ComponentModel.DataAnnotations) = is needed by mono-core-
    mono(System.Data) = is needed by mono-core-
    mono(System.IdentityModel) = is needed by mono-core-
    mono(System.Runtime.Serialization) = is needed by mono-core-
    mono(System.ServiceModel) = is needed by mono-core-
    mono(System.ServiceProcess) = is needed by mono-core-

How do I solve these dependencies?


I'm trying to use this command:

yum localinstall mono-core-


Examining mono-core- mono-core-
Marking mono-core- to be installed
Resolving Dependencies
   Running transaction check
   Package mono-core.x86_64 0: will be installed
   Processing Dependency: mono(System.ComponentModel.Composition) = for package: mono-core-                                                                                                                        
   Processing Dependency: mono(System.ComponentModel.DataAnnotations) = for package: mono-core-                                                                                                                                                       
   Processing Dependency: mono(System.Data) = for package: mono-core-4.                                                                                                                                                           
   Processing Dependency: mono(System.IdentityModel) = for package: mono-core-  
   Processing Dependency: mono(System.Runtime.Serialization) = for package: mono-core-                                                                                                                                                             
   Processing Dependency: mono(System.ServiceModel) = for package: mono-core-                                                                                                                                                            
   Processing Dependency: mono(System.ServiceProcess) = for package: mono-core-                                                                                                                                                             
  Finished Dependency Resolution
Error: Package: mono-core- (/mono-core- Requires: mono(System.Data) =                                                                                                                                                            
Error: Package: mono-core- (/mono-core- Requires: mono(System.ComponentModel.DataAnnotations) =                                                                                                                                                             
Error: Package: mono-core- (/mono-core- Requires: mono(System.IdentityModel) =                                                                                                                                                             
Error: Package: mono-core- (/mono-core- Requires: mono(System.ServiceModel) =                                                                                                                                                             
Error: Package: mono-core- (/mono-core- Requires: mono(System.ComponentModel.Composition) =                                                                                                                                                             
Error: Package: mono-core- (/mono-core- Requires: mono(System.Runtime.Serialization) =                                                                                                                                                             
Error: Package: mono-core- (/mono-core- Requires: mono(System.ServiceProcess) =

You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Try yum localinstall mono-core- and ideally yum will find and fetch the dependencies for you.


You could try using --skip-broken to work around the problem you can force to install the package but may have Dependencies issues later.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.