LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-21-2010, 09:10 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Question on backport packages upgrade


Hi folks,

Debian 5.0

On running "sudo aptitude upgrade" following packages have not been NOT upgraded;
Code:
The following packages have been kept back:
  libmono-accessibility2.0-cil libmono-cairo1.0-cil libmono-cairo2.0-cil
  libmono-cecil-private-cil libmono-corlib1.0-cil libmono-corlib2.0-cil
  libmono-data-tds1.0-cil libmono-data-tds2.0-cil libmono-dev
  libmono-getoptions2.0-cil libmono-i18n-west2.0-cil libmono-management2.0-cil
  libmono-peapi2.0-cil libmono-posix1.0-cil libmono-posix2.0-cil
  libmono-relaxng1.0-cil libmono-security1.0-cil libmono-security2.0-cil
  libmono-sharpzip0.84-cil libmono-sharpzip2.84-cil libmono-sqlite2.0-cil
  libmono-system-data1.0-cil libmono-system-data2.0-cil
  libmono-system-runtime1.0-cil libmono-system-runtime2.0-cil
  libmono-system-web1.0-cil libmono-system-web2.0-cil libmono-system1.0-cil
  libmono-system2.0-cil libmono-webbrowser0.5-cil libmono-winforms1.0-cil
  libmono-winforms2.0-cil libmono0 libmono1.0-cil libmono2.0-cil
  mono-2.0-devel mono-2.0-gac mono-csharp-shell mono-devel mono-gac mono-gmcs
  mono-mcs mono-runtime monodoc-base
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.

Backport repo has been added already.

$ cat /etc/apt/sources.list | grep backports
Code:
deb http://www.backports.org/debian lenny-backports main contrib non-free

According to following document;
Code:
You can also use pinning:

Then you have to set a higher priority for each backport, yes that means every backport, also for every dependency. For mutt, you have to add these lines:

Package: mutt
Pin: release a=lenny-backports
Pin-Priority: 999

to your /etc/apt/preferences (if you haven’t use pinning before, the file has to be created).

After running apt-get update run apt-get install mutt as usual.
on;
http://www.backports.org/dokuwiki/do...d=instructions


1)
Whether I have to creating /etc/apt/preferences and adding follows on it;
Code:
Package: package-name
Pin: release a=lenny-backports
Pin-Priority: 999

2)
I have to add 44 packages on the file manually. Is there an easy way to do it?


3)
Do I need adding the version?

e.g.
Package: libmono-accessibility2.0-cil libmono-cairo1.0-cil libmono-cairo2.0-cil ..... etc.
Pin: release a=lenny-backports
Pin-Priority: 999


OR
just the package-name without version?

e.g.
Package: libmono-accessibility libmono-cairo libmono-cecil-private-cil libmono-corlib .... etc.
Pin: release a=lenny-backports
Pin-Priority: 999


3)
After finish running;
$ sudo aptitude update
$ sudo aptitude upgrade
???


Please advise. TIA

B.R.
satimis
 
Old 06-21-2010, 09:39 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
try full-upgrade instead of upgrade

it probably wants to remove some packages
 
Old 06-21-2010, 09:57 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by AlucardZero View Post
try full-upgrade instead of upgrade

it probably wants to remove some packages
Hi,


Thanks for your advice.

I tried it before posting.

$ sudo aptitude update
$ sudo aptitude full-upgrade
Code:
.....
.....
.....
. or
                                    libc0.1 (>= 2.11) which is a virtual package.
  libmono-cil-dev: Depends: libnunit-cil-dev (>= 2.4) which is a virtual package.
  libmono-system1.0-cil: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                                  libc6.1 (>= 2.11) which is a virtual package. or
                                  libc0.1 (>= 2.11) which is a virtual package.
  mono-mcs: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                     libc6.1 (>= 2.11) which is a virtual package. or
                     libc0.1 (>= 2.11) which is a virtual package.
  mono-csharp-shell: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                              libc6.1 (>= 2.11) which is a virtual package. or
                              libc0.1 (>= 2.11) which is a virtual package.
  mono-runtime: Depends: libglib2.0-0 (>= 2.24.0) but 2.16.6-3 is installed.
  mono-devel: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                       libc6.1 (>= 2.11) which is a virtual package. or
                       libc0.1 (>= 2.11) which is a virtual package.
              Depends: libglib2.0-0 (>= 2.24.0) but 2.16.6-3 is installed.
  mono-2.0-devel: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                           libc6.1 (>= 2.11) which is a virtual package. or
                           libc0.1 (>= 2.11) which is a virtual package.
  libmono-cairo1.0-cil: Depends: libcairo2 (>= 1.8.0-2) but 1.6.4-7 is installed.
  libmono-system2.0-cil: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                                  libc6.1 (>= 2.11) which is a virtual package. or
                                  libc0.1 (>= 2.11) which is a virtual package.
  libmono-oracle1.0-cil: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                                  libc6.1 (>= 2.11) which is a virtual package. or
                                  libc0.1 (>= 2.11) which is a virtual package.
  mono-gmcs: Depends: libc6 (>= 2.11) but 2.7-18lenny4 is installed. or
                      libc6.1 (>= 2.11) which is a virtual package. or
                      libc0.1 (>= 2.11) which is a virtual package.
open: 7394; closed: 4914; defer: 0; conflict: 37                               oNo solution found within the allotted time.  Try harder? [Y/n]Y
Resolving dependencies...
open: 13610; closed: 9871; defer: 0; conflict: 56                              ONo solution found within the allotted time.  Try harder? [Y/n]Y
Resolving dependencies...
open: 21981; closed: 14831; defer: 0; conflict: 56                             oNo solution found within the allotted time.  Try harder? [Y/n]Y
Resolving dependencies...
open: 30621; closed: 19949; defer: 0; conflict: 56                             .No solution found within the allotted time.  Try harder? [Y/n]
It was repeated continueously. Finally I have to exit by pressing [Ctrl]+c


Edit:

If input 'n' followed by '?';
Resolve these dependencies by hand? [N/+/-/_/:/?] ?
Code:
Commands:
  y: continue with the installation
  n: abort and quit
  i: show information about one or more packages; the package names should
     follow the 'i'
  c: show the Debian changelogs of one or more packages; the package names
     should follow the 'c'
  d: toggle the display of dependency information
  s: toggle the display of changes in package sizes
  v: toggle the display of version numbers
  w: try to find a reason for installing a single package, or explain why
     installing one package should lead to installing another package.
  r: run the automatic dependency resolver to fix the broken dependencies.
  e: enter the full visual interface
  
  You may also specify modification to the actions which will be taken.  To do
  so, type an action character followed by one or more package names (or
  patterns).  The action will be applied to all the packages that you list.  The
  following actions are available:
  
  '+' to install packages
  '+M' to install packages and immediately flag them as automatically installed
  '-' to remove packages
  '_' to purge packages
  '=' to place packages on hold
  ':' to keep packages in their current state without placing them on hold
  '&M' to mark packages as automatically installed
  '&m' to mark packages as manually installed
  '&BD' to install the build-dependencies of a package.
Resolve these dependencies by hand? [N/+/-/_/:/?]
I have no idea which of above command shall I select? Shall I remove the BROKEN packages and then install the new packages and upgrade the installed packages? I have no idea what those broken packages are used for ?


B.R.
satimis

Last edited by satimis; 06-22-2010 at 01:28 AM.
 
Old 06-22-2010, 07:14 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Sounds like you broke your system. Post your sources.list.
 
Old 06-22-2010, 08:13 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by AlucardZero View Post
Sounds like you broke your system. Post your sources.list.
$ cat /etc/apt/sources.list
Code:
# 

#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 NETINST Binary-1 20090413-22:27]/ lenny main

deb http://ftp.hk.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.hk.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

deb http://www.backports.org/debian lenny-backports main contrib non-free

deb ftp://ftp.debian-multimedia.org lenny main

deb http://debian.meebey.net/pkg-mono /

Thanks


B.R.
satimis
 
Old 06-22-2010, 08:27 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
It's your mono line (deb http://debian.meebey..). Comment it out and apt-get update again. I assume you added it from http://pkg-mono.alioth.debian.org/ ? The line you added is for Unstable, and mixing Stable and Unstable is not possible.
 
Old 06-22-2010, 08:59 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by AlucardZero View Post
It's your mono line (deb http://debian.meebey..). Comment it out and apt-get update again. I assume you added it from http://pkg-mono.alioth.debian.org/ ? The line you added is for Unstable, and mixing Stable and Unstable is not possible.
Hi AlucardZero,

Follows are notes taken down on installing mono;
Code:
$ apt-file search System.Xml.dll | grep 2.0
libmono-system2.0-cil: /usr/lib/mono/2.0/System.Xml.dll
libmono-system2.0-cil: /usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
mono-dbg: /usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.mdb

$ apt-cache policy mono-dbg
mono-dbg:
  Installed: (none)
  Candidate: 1.9.1+dfsg-6
  Version table:
     2.4.2.3+dfsg-2~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
     1.9.1+dfsg-6 0
        500 http://ftp.hk.debian.org lenny/main Packages



Fatal Error System.ArgumentOutOfRangeException.  Argument is out of range Parameter name: index
at System Collections Generic List`1 [System String] get_item (int32 index) [0x00000] at Verse_of_the_Day.MainForm.ctor () [0x00000]
at (wrapper remoting-invoke_with-check) Verse of the_Day.MainForm.ctor ()
at Verse_of_the_Day.English.ReadWrite () [0x0000]



$ sudo apt-file update
Can't get http://security.debian.org/dists/lenny/updates/Contents-i386.gz

$ sudo apt-get install mono-winforms*

$ sudo aptitude -t lenny-backports install mono-devel


$ apt-cache policy mono-2.0-devel
mono-2.0-devel:
  Installed: 1.9.1+dfsg-6
  Candidate: 1.9.1+dfsg-6
  Version table:
    2.4.2.3+dfsg-2~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
*** 1.9.1+dfsg-6 0
        500 http://ftp.hk.debian.org lenny/main Packages
        100 /var/lib/dpkg/status


$ apt-cache policy mono-devel
mono-devel:
  Installed: (none)
  Candidate: 2.4.2.3+dfsg-2~bpo50+1
  Version table:
    2.4.2.3+dfsg-2~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
satimis@vm0:~$
satimis@vm0:~$ sudo aptitude -t lenny-backports install mono-devel

$ mono --version
Mono JIT compiler version 2.4.2.3 (Debian 2.4.2.3+dfsg-2~bpo50+1)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
    TLS:          __thread
    GC:            Included Boehm (with typed GC)
    SIGSEGV:      altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none


Mono for Debian 
http://mono-project.com/DistroPackages/Debian

Add this line to your /etc/apt/sources.list file:
deb http://debian.meebey.net/pkg-mono /


Run;
sudo aptitude update
sudo aptitude safe-upgrade

satimis@vm0:~$ apt-cache search mono | grep assemblies
libmono-cecil0.5-cil - library to generate and inspect CIL assemblies

satimis@vm0:~$ sudo aptitude install libmono-cecil0.5-cil


$ sudo aptitude install mono-utils
$ apt-cache policy monodevelop
Code:
monodevelop:
  Installed: 1.0+dfsg-3
  Candidate: 1.0+dfsg-3
  Version table:
     2.2.1+dfsg-1~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
 *** 1.0+dfsg-3 0
        500 http://ftp.hk.debian.org lenny/main Packages
        100 /var/lib/dpkg/status

$ apt-cache policy mono-devel
Code:
mono-devel:
  Installed: 2.4.2.3+dfsg-2~bpo50+1
  Candidate: 2.6.3-1
  Version table:
     2.6.3-1 0
        500 http://debian.meebey.net  Packages
        500 http://debian.meebey.net  Packages
 *** 2.4.2.3+dfsg-2~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
        100 /var/lib/dpkg/status

It seems I have 2 mono running here. Which of them shall I remove? TIA

But mono-devel is newer.


B.R.
satimis
 
Old 06-22-2010, 11:57 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Package mono-devel

* etch (oldstable) (interpreters): Mono CLI runtime with development tools
1.2.2.1-1etch1: amd64 arm i386 ia64 powerpc
* lenny-backports (cli-mono): Mono development tools
2.4.2.3+dfsg-2~bpo50+1 [backports]: all
* squeeze (testing) (cli-mono): Mono development tools
2.4.4~svn151842-2: all
* sid (unstable) (cli-mono): Mono development tools
2.4.4~svn151842-2: all
* experimental (cli-mono): Mono development tools
2.6.3-1: all

You are mixing a experimental repo with stable, good things never happen when you do that. heck good things never happen when you install from experimental at all.

Quote:
Debian/EXPERIMENTAL Current preview packages of Mono

/etc/apt/sources.list should contain:

deb http://debian.meebey.net/pkg-mono ./

Last edited by craigevil; 06-22-2010 at 12:03 PM.
 
Old 06-24-2010, 08:11 AM   #9
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by craigevil View Post
Package mono-devel

* etch (oldstable) (interpreters): Mono CLI runtime with development tools
1.2.2.1-1etch1: amd64 arm i386 ia64 powerpc
* lenny-backports (cli-mono): Mono development tools
2.4.2.3+dfsg-2~bpo50+1 [backports]: all
* squeeze (testing) (cli-mono): Mono development tools
2.4.4~svn151842-2: all
* sid (unstable) (cli-mono): Mono development tools
2.4.4~svn151842-2: all
* experimental (cli-mono): Mono development tools
2.6.3-1: all

You are mixing a experimental repo with stable, good things never happen when you do that. heck good things never happen when you install from experimental at all.
Hi,

Thanks for your advice.

The unstable version is the latest version of Monodevelop. I'll live in this way a while as I'll soon wipe out this 32 bit box and reinstall a 64 bit box running Debian 5.04. This a 5.0 version.

$ uname -a
Code:
Linux vm0.debian50 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 GNU/Linux
B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot Upgrade 9.10 Packages Tim_Olaguna Ubuntu 2 02-28-2010 06:57 PM
HowTo Backport Debian packages kushalkoolwal Debian 5 09-25-2007 03:51 PM
apt-get upgrade stopped, how can I remove packages before continuing upgrade? [KIA]aze Linux - Newbie 4 05-31-2007 07:49 AM
Which of these packages would you upgrade? numb Slackware 3 03-19-2005 12:35 AM
another (different) apt-get.org backport question ncuster3 Debian 3 06-26-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:39 PM.

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