LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Question on backport packages upgrade (https://www.linuxquestions.org/questions/debian-26/question-on-backport-packages-upgrade-815552/)

satimis 06-21-2010 09:10 PM

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

AlucardZero 06-21-2010 09:39 PM

try full-upgrade instead of upgrade

it probably wants to remove some packages

satimis 06-21-2010 09:57 PM

Quote:

Originally Posted by AlucardZero (Post 4010900)
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

AlucardZero 06-22-2010 07:14 AM

Sounds like you broke your system. Post your sources.list.

satimis 06-22-2010 08:13 AM

Quote:

Originally Posted by AlucardZero (Post 4011296)
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

AlucardZero 06-22-2010 08:27 AM

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.

satimis 06-22-2010 08:59 AM

Quote:

Originally Posted by AlucardZero (Post 4011371)
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

craigevil 06-22-2010 11:57 AM

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 ./

satimis 06-24-2010 08:11 AM

Quote:

Originally Posted by craigevil (Post 4011605)
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


All times are GMT -5. The time now is 11:09 PM.