Mono build

Dear,
I have a Mono application that I want to build on CircleCI.
I have the current .yml file :

Customize the test machine and depend on Docker runtime

machine:
services:

  • docker

Customize dependencies

dependencies:
pre:

  • sudo apt-get update; sudo apt-get install -y monodevelop

Customize test commands

test:
override:

  • mdtool build src/CottonCandy.VS2015.sln # use mdtool to compile solution
    Is it correct to have the build-action on the “test command”? Is it possible to help us out here?
    It seems the package “monodeveloper” is not getting installed properly.
    But the build gives me the following error :

Reading package lists… 98%
Reading package lists… 98%
Reading package lists… 98%
Reading package lists… 99%
Reading package lists… Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Reading package lists… 0%
Reading package lists… 100%
Reading package lists… Done
Building dependency tree… 0%
Building dependency tree… 0%
Building dependency tree… 50%
Building dependency tree… 50%
Building dependency tree
Reading state information… 0%
Reading state information… 0%
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
netbase : Breaks: ifupdown (< 0.7)
Breaks: ifupdown:i386 (< 0.7)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
sudo apt-get update; sudo apt-get install -y monodevelop returned exit code 100
Action failed: sudo apt-get update; sudo apt-get install -y monodevelop
The rest of your commands were successful:

  • Starting the build
  • Start container
  • Enable SSH
  • Restore source cache
  • Checkout using deploy key: cd:54:df:9f:36:4c:75:62:3d:00:aa:d4:81:69:a2:cf
  • Configure the build
  • Starting docker
  • Restore cache
  • Collect test metadata
  • Collect artifacts
  • Disable SSH

Best regards,
Jens

1 Like

I was seeing the same error but trying to install a new version of R language.
My issue was solved when I moved my builds to Ubuntu 14.04.