-   Linux - Software (
-   -   Installing Mono 2.10 on Debian Squeeze? (

Robster400 09-06-2012 10:39 AM

Installing Mono 2.10 on Debian Squeeze?
I have Debian Squeeze on a vps with Mono 2.6.7
but I could really do with Mono 2.10 in the hope of curing a few small problems I have.
As there doesn't seem to be a backport, will there be any issues trying to build 2.10 from source? or is there another way?

As a bit of a newb, I'm terrified trying will break something bad :)

knudfl 09-06-2012 12:30 PM

Mono 2.10 for Debian Squeeze.

0) Add this line to /etc/apt/sources.list :
deb-src wheezy main

1) # apt-get install fakeroot dpkg-dev

2) If you got dpkg-dev version 1.15.x.x in the above :
# dpkg -i libdpkg-perl_1.16.1.2~bpo60+1_all.deb
# dpkg -i dpkg-dev_1.16.1.2~bpo60+1_all.deb
( Don't know why the dpkg* backports packages weren't installed by apt.)

3) # apt-get build-dep mono && exit

4 ) $ cd <new empty directory>/ ( If success, the build will spit out 160 packages !)
4a) $ apt-get -b source mono=

Then install the packages you want from the result with
# dpkg -i <package> <package> <package> <package>

Note 1 : Mono packages overview
Note 2 : The 160 packages were created, mono-runtime_2.10.8.1-5_amd64.deb etc. etc.


Robster400 09-06-2012 01:55 PM

Edit: Ignore below, I needed a apt-get update..

Ok, Added source

less /etc/apt/sources.list
deb squeeze main contrib non-free
deb squeeze/updates main contrib non-free
deb-src wheezy main
/etc/apt/sources.list (END)

dpkg-dev intalled v1.15, so wgetted and installed the two packages you listed,



root@neotox:/home/badrobot# apt-get build-dep mono && exit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/ - open (2: No such file or directory)

Contents of /var/lib/apt/lists

root@neotox:/home/badrobot# ls -lha /var/lib/apt/lists/
total 33M
drwxr-xr-x 3 root root 4.0K Sep  6 20:30 .
drwxr-xr-x 5 root root 4.0K Sep  6 22:27 ..
-rw-r--r-- 1 root root 109K May 12 16:08 ftp.debian.org_debian_dists_squeeze_Release
-rw-r--r-- 1 root root 1.7K May 12 16:10 ftp.debian.org_debian_dists_squeeze_Release.gpg
-rw-r--r-- 1 root root 202K May 12 15:39 ftp.debian.org_debian_dists_squeeze_contrib_binary-i386_Packages
-rw-r--r-- 1 root root  31M May 12 15:39 ftp.debian.org_debian_dists_squeeze_main_binary-i386_Packages
-rw-r--r-- 1 root root 456K Oct  8  2011 ftp.debian.org_debian_dists_squeeze_non-free_binary-i386_Packages
-rw-r----- 1 root root    0 Aug 28 04:23 lock
drwxr-xr-x 2 root root 4.0K Sep  6 20:30 partial
-rw-r--r-- 1 root root  85K Sep  6 15:41 security.debian.org_dists_squeeze_updates_Release
-rw-r--r-- 1 root root  836 Sep  6 15:41 security.debian.org_dists_squeeze_updates_Release.gpg
-rw-r--r-- 1 root root 1017 Sep  6 15:41 security.debian.org_dists_squeeze_updates_contrib_binary-i386_Packages
-rw-r--r-- 1 root root 1.5M Sep  6 15:41 security.debian.org_dists_squeeze_updates_main_binary-i386_Packages
-rw-r--r-- 1 root root    0 Sep  6 15:41 security.debian.org_dists_squeeze_updates_non-free_binary-i386_Packages

Something I've missed somehow?

knudfl 09-06-2012 02:04 PM


Something I've missed somehow ?
Yes, after any "adding repository", an # 'apt-get update'
is required.

Robster400 09-06-2012 03:37 PM

Ok, all seems to have went well, thankyou.

A couple of questions if I may.
I previously installed the mono-complete metapackage, which installed

badrobot@neotox:~$ dpkg --get-selections |grep mono
libmono-accessibility1.0-cil                    install
libmono-accessibility2.0-cil                    install
libmono-bytefx0.7.6.1-cil                      install
libmono-bytefx0.7.6.2-cil                      install
libmono-c5-1.1-cil                              install
libmono-cairo1.0-cil                            install
libmono-cairo2.0-cil                            install
libmono-cecil-private-cil                      install
libmono-cil-dev                                install
libmono-corlib1.0-cil                          install
libmono-corlib2.0-cil                          install
libmono-cscompmgd7.0-cil                        install
libmono-cscompmgd8.0-cil                        install
libmono-data-tds1.0-cil                        install
libmono-data-tds2.0-cil                        install
libmono-data1.0-cil                            install
libmono-data2.0-cil                            install
libmono-db2-1.0-cil                            install
libmono-debugger-soft0.0-cil                    install
libmono-dev                                    install
libmono-firebirdsql1.7-cil                      install
libmono-getoptions1.0-cil                      install
libmono-getoptions2.0-cil                      install
libmono-i18n-west1.0-cil                        install
libmono-i18n-west2.0-cil                        install
libmono-i18n1.0-cil                            install
libmono-i18n2.0-cil                            install
libmono-ldap1.0-cil                            install
libmono-ldap2.0-cil                            install
libmono-management2.0-cil                      install
libmono-messaging-rabbitmq2.0-cil              install
libmono-messaging2.0-cil                        install
libmono-microsoft-build2.0-cil                  install
libmono-microsoft7.0-cil                        install
libmono-microsoft8.0-cil                        install
libmono-npgsql1.0-cil                          install
libmono-npgsql2.0-cil                          install
libmono-oracle1.0-cil                          install
libmono-oracle2.0-cil                          install
libmono-peapi1.0-cil                            install
libmono-peapi2.0-cil                            install
libmono-posix1.0-cil                            install
libmono-posix2.0-cil                            install
libmono-profiler                                install
libmono-rabbitmq2.0-cil                        install
libmono-relaxng1.0-cil                          install
libmono-relaxng2.0-cil                          install
libmono-security1.0-cil                        install
libmono-security2.0-cil                        install
libmono-sharpzip0.6-cil                        install
libmono-sharpzip0.84-cil                        install
libmono-sharpzip2.6-cil                        install
libmono-sharpzip2.84-cil                        install
libmono-simd2.0-cil                            install
libmono-sqlite1.0-cil                          install
libmono-sqlite2.0-cil                          install
libmono-system-data-linq2.0-cil                install
libmono-system-data1.0-cil                      install
libmono-system-data2.0-cil                      install
libmono-system-ldap1.0-cil                      install
libmono-system-ldap2.0-cil                      install
libmono-system-messaging1.0-cil                install
libmono-system-messaging2.0-cil                install
libmono-system-runtime1.0-cil                  install
libmono-system-runtime2.0-cil                  install
libmono-system-web-mvc1.0-cil                  install
libmono-system-web-mvc2.0-cil                  install
libmono-system-web1.0-cil                      install
libmono-system-web2.0-cil                      install
libmono-system1.0-cil                          install
libmono-system2.0-cil                          install
libmono-tasklets2.0-cil                        install
libmono-wcf3.0-cil                              install
libmono-webbrowser0.5-cil                      install
libmono-windowsbase3.0-cil                      install
libmono-winforms1.0-cil                        install
libmono-winforms2.0-cil                        install
libmono0                                        install
libmono1.0-cil                                  install
libmono2.0-cil                                  install
mono-1.0-devel                                  install
mono-1.0-gac                                    install
mono-1.0-service                                install
mono-2.0-devel                                  install
mono-2.0-gac                                    install
mono-2.0-service                                install
mono-complete                                  install
mono-csharp-shell                              install
mono-devel                                      install
mono-gac                                        install
mono-gmcs                                      install
mono-jay                                        install
mono-mcs                                        install
mono-runtime                                    install
mono-utils                                      install
mono-xbuild                                    install
monodoc-base                                    install
monodoc-browser                                install
monodoc-manual                                  install

Is there a way to easily replace the already installed packages with the new ones just built?,
or will I need to go through the list of newly built packages, matching them up to what is already installed, and add them to the dpkg -i command?

knudfl 09-06-2012 03:55 PM


will I need to go through the list of newly built packages,
matching them up to what is already installed, and add them
to the dpkg -i command ?
I'd guess that this is the method.

Alternatively uninstall packages you don't use.
Like # apt-get remove monodoc-manual
.. to simplify the install.


Robster400 09-06-2012 04:03 PM

Cool, thankyou for your help, much appreciated. :)

All times are GMT -5. The time now is 11:51 AM.