[R-sig-Debian] Is r2u at 3.4.1? [branch about handling package collisions under Ubuntu/Debian]

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Aug 24 02:14:04 CEST 2023


Chris,

This got a little long so I'll chop a few things down.

On 22 August 2023 at 19:38, Chris Evans wrote:
| On 16/08/2023 00:06, Dirk Eddelbuettel wrote:
| >
| > That can happen, and pinning can help. I would suggest to look at 'apt-cache
| > polict nameofthepackagehere'. (See below for concrete example.)
| 
| So I try this.
| 
| root using Clevo2:/media/chris/Clevo_SSD2/Data/MyR/R/distill_blog/test2/_posts# 
| apt-cache policy libmagick++-dev
| libmagick++-dev:
|    Installed: (none)
|    Candidate: 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm2
|    Version table:
|       8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm2 500
|          500 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main 
| amd64 Packages
|          500 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main 
| i386 Packages
|       8:6.9.11.60+dfsg-1.3build2 500
|          500 http://mirror.infomaniak.ch/ubuntu jammy/universe amd64 
| Packages
|          500 http://mirror.infomaniak.ch/ubuntu jammy/universe i386 Packages

This shows you two sources supplying libmagick++-dev: one from esm.ubuntu.com
security updates. That is fine.  The other is an add-on repo, just like r2u.

But we cannot limitlessly combine those. r2u assume "everything else" comes
from the standard repos and tries to (and succeeds, generally) in working
with it. So here, for now, I would point at mirror.infomaniak.ch/ubuntu as a
likely source of your troubles.

| And the key problems remains this (actually, it's got a bit worse):
| 
| root using Clevo2:/media/chris/Clevo_SSD2/Data/MyR/R/distill_blog/test2/_posts# 
| apt-get install libmagick++-dev
| Reading package lists... Done
| Building dependency tree... Done
| 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.
|   libcairo2-dev : Depends: libfontconfig1-dev (>= 2.2.95)
|                   Depends: libfreetype6-dev (>= 2.1.10)
|   libglib2.0-dev : Depends: libglib2.0-0 (= 2.72.4-0ubuntu1) but 
| 2.72.4-0ubuntu2.2 is to be installed
|                    Depends: libglib2.0-bin (= 2.72.4-0ubuntu1)
|                    Depends: libglib2.0-dev-bin (= 2.72.4-0ubuntu1)
|   libmagickcore-6.q16-dev : Depends: libfreetype6-dev
|   libwmf-dev : Depends: libfreetype-dev but it is not installable
| E: Unable to correct problems, you have held broken packages.

At that point I generally try to packages it lists on the left (ie
libcairo2-dev,  libglib2.0-dev,  libmagickcore-6.q16-dev, libwmf-dev) and try
individual 'apt install PACKAGEHERE' to see what errors that implies. With a
bit experience you gain from trying this you generally can work out what is
wrong and make amends.

I should add that none of this so far has anything to do with r2u. This is
just mixing repo.

So let's try to see if we can get your libmagick++-dev issue resolved and
take it from there.

Cheers, Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-SIG-Debian mailing list