Discussion:
[R-sig-Debian] r-base-dev not installing in Ubuntu 16.04
Syed Murtuza baker
2018-06-13 09:22:42 UTC
Permalink
Hello All,
When I try to install r-base-dev on my Ubuntu 16.04 it gives me the following error

r-base-dev : Depends: dh-r but it is not installable
E: Unable to correct problems, you have held broken packages.

I added the following two repos

deb https://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu xenial-cran35
deb http://uk-mirrors.evowise.com/ubuntu/ bionic-backports main restricted universe

but still giving error. Could you please suggest me how to fix it.

Thank you.

Best Regards,
Syed


————————————
Dr. Syed Murtuza Baker
Bioinformatics Core Facility
Faculty of Biology, Medicine & Health
The University of Manchester


[[alternative HTML version deleted]]
Dirk Eddelbuettel
2018-06-13 12:34:08 UTC
Permalink
On 13 June 2018 at 09:22, Syed Murtuza baker wrote:
| Hello All,
| When I try to install r-base-dev on my Ubuntu 16.04 it gives me the following error
|
| r-base-dev : Depends: dh-r but it is not installable
| E: Unable to correct problems, you have held broken packages.
|
| I added the following two repos
|
| deb https://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu xenial-cran35
| deb http://uk-mirrors.evowise.com/ubuntu/ bionic-backports main restricted universe
|
| but still giving error. Could you please suggest me how to fix it.

Michael is currently traveling but I am sure he'll take a look. I poked my
head into a 16.04 Docker container and also saw the issue. You may have to
find a dh-r package in the c2d4u or other related repository. Sorry.

I am sure this can get squared off in a day or two once Michael is back.

Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | ***@debian.org
Robin Lovelace
2018-06-13 19:54:11 UTC
Permalink
I have recently re-installed R on my Ubuntu system to get R 3.5 and found
this to have worked:

# you may need to remove incumbent repos e.g. with:
sudo apt-add-repository --remove ppa:marutter/rrutter

# add new repos
sudo apt-add-repository ppa:marutter/rrutter3.5 # for base R
sudo apt-add-repository ppa:marutter/c2d4u4.5 # for pkgs - this saved me
lots of time installing my set-up

At the end of it these are the only R-related repos I have:

apt policy | grep 3.5

# 500 http://ppa.launchpad.net/marutter/rrutter3.5/ubuntu xenial/main i386
Packages
# release
v=16.04,o=LP-PPA-marutter-rrutter3.5,a=xenial,n=xenial,l=RRutter
v3.5,c=main,b=i386
# 500 http://ppa.launchpad.net/marutter/rrutter3.5/ubuntu xenial/main amd64
Packages
# release
v=16.04,o=LP-PPA-marutter-rrutter3.5,a=xenial,n=xenial,l=RRutter
v3.5,c=main,b=amd64
# 500 http://ppa.launchpad.net/marutter/c2d4u3.5/ubuntu xenial/main i386
Packages
# release
v=16.04,o=LP-PPA-marutter-c2d4u3.5,a=xenial,n=xenial,l=cran2deb4ubuntu_3.5,c=main,b=i386
# 500 http://ppa.launchpad.net/marutter/c2d4u3.5/ubuntu xenial/main amd64
Packages
# release
v=16.04,o=LP-PPA-marutter-c2d4u3.5,a=xenial,n=xenial,l=cran2deb4ubuntu_3.5,c=main,b=amd64

Hope this helps. Please add-to this advice anyone who's more experienced
than me in this.

Thanks to all involved in getting this working and documented.

Robin

On Wed, Jun 13, 2018 at 10:22 AM, Syed Murtuza baker <
Post by Syed Murtuza baker
Hello All,
When I try to install r-base-dev on my Ubuntu 16.04 it gives me the following error
r-base-dev : Depends: dh-r but it is not installable
E: Unable to correct problems, you have held broken packages.
I added the following two repos
deb https://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu xenial-cran35
deb http://uk-mirrors.evowise.com/ubuntu/ bionic-backports main restricted universe
but still giving error. Could you please suggest me how to fix it.
Thank you.
Best Regards,
Syed
————————————
Dr. Syed Murtuza Baker
Bioinformatics Core Facility
Faculty of Biology, Medicine & Health
The University of Manchester
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Debian mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
[[alternative HTML version deleted]]
Dirk Eddelbuettel
2018-06-13 20:23:28 UTC
Permalink
On 13 June 2018 at 20:54, Robin Lovelace wrote:
| I have recently re-installed R on my Ubuntu system to get R 3.5 and found
| this to have worked:
|
| # you may need to remove incumbent repos e.g. with:
| sudo apt-add-repository --remove ppa:marutter/rrutter
|
| # add new repos
| sudo apt-add-repository ppa:marutter/rrutter3.5 # for base R
| sudo apt-add-repository ppa:marutter/c2d4u4.5 # for pkgs - this saved me
| lots of time installing my set-up

*Very* good point. Given that what Michael does is outside of the distro, we
are lacking some bells and whistles -- and moreover some check and balances
I get thrown at me from within the distro and its quality checks.

So one thing we had run into was inconsistent versioning so the "old" PPAs
may have shadowed the new one with the dh-r version wanted -- but 'hidden'
behind a higher version number. (This can happens as the version strings get
expanded with Ubuntu distro strings added etc pp).

So an implicit "reset" by only looking at one pair is a very good ides,

|
| At the end of it these are the only R-related repos I have:
|
| apt policy | grep 3.5
|
| # 500 http://ppa.launchpad.net/marutter/rrutter3.5/ubuntu xenial/main i386
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-rrutter3.5,a=xenial,n=xenial,l=RRutter
| v3.5,c=main,b=i386
| # 500 http://ppa.launchpad.net/marutter/rrutter3.5/ubuntu xenial/main amd64
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-rrutter3.5,a=xenial,n=xenial,l=RRutter
| v3.5,c=main,b=amd64
| # 500 http://ppa.launchpad.net/marutter/c2d4u3.5/ubuntu xenial/main i386
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-c2d4u3.5,a=xenial,n=xenial,l=cran2deb4ubuntu_3.5,c=main,b=i386
| # 500 http://ppa.launchpad.net/marutter/c2d4u3.5/ubuntu xenial/main amd64
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-c2d4u3.5,a=xenial,n=xenial,l=cran2deb4ubuntu_3.5,c=main,b=amd64
|
| Hope this helps. Please add-to this advice anyone who's more experienced
| than me in this.

Now why does a serious man like you still run 16.04 though? ;-)

| Thanks to all involved in getting this working and documented.

Our pleasure.

Dirk

| Robin
|
| On Wed, Jun 13, 2018 at 10:22 AM, Syed Murtuza baker <
| ***@manchester.ac.uk> wrote:
|
| > Hello All,
| > When I try to install r-base-dev on my Ubuntu 16.04 it gives me the
| > following error
| >
| > r-base-dev : Depends: dh-r but it is not installable
| > E: Unable to correct problems, you have held broken packages.
| >
| > I added the following two repos
| >
| > deb https://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu xenial-cran35
| > deb http://uk-mirrors.evowise.com/ubuntu/ bionic-backports main
| > restricted universe
| >
| > but still giving error. Could you please suggest me how to fix it.
| >
| > Thank you.
| >
| > Best Regards,
| > Syed
| >
| >
| > ————————————
| > Dr. Syed Murtuza Baker
| > Bioinformatics Core Facility
| > Faculty of Biology, Medicine & Health
| > The University of Manchester
| >
| >
| > [[alternative HTML version deleted]]
| >
| > _______________________________________________
| > R-SIG-Debian mailing list
| > R-SIG-***@r-project.org
| > https://stat.ethz.ch/mailman/listinfo/r-sig-debian
| >
|
| [[alternative HTML version deleted]]
|
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-***@r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian
--
http://dirk.eddelbuettel.com | @eddelbuettel | ***@debian.org
Michael Rutter
2018-06-17 02:27:17 UTC
Permalink
Post by Dirk Eddelbuettel
| I have recently re-installed R on my Ubuntu system to get R 3.5 and found
|
| sudo apt-add-repository --remove ppa:marutter/rrutter
|
| # add new repos
| sudo apt-add-repository ppa:marutter/rrutter3.5 # for base R
| sudo apt-add-repository ppa:marutter/c2d4u4.5 # for pkgs - this saved me
| lots of time installing my set-up
*Very* good point. Given that what Michael does is outside of the distro, we
are lacking some bells and whistles -- and moreover some check and balances
I get thrown at me from within the distro and its quality checks.
So one thing we had run into was inconsistent versioning so the "old" PPAs
may have shadowed the new one with the dh-r version wanted -- but 'hidden'
behind a higher version number. (This can happens as the version strings get
expanded with Ubuntu distro strings added etc pp).
So an implicit "reset" by only looking at one pair is a very good ides,
|
|
| apt policy | grep 3.5
|
| # 500 http://ppa.launchpad.net/marutter/rrutter3.5/ubuntu xenial/main i386
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-rrutter3.5,a=xenial,n=xenial,l=RRutter
| v3.5,c=main,b=i386
| # 500 http://ppa.launchpad.net/marutter/rrutter3.5/ubuntu xenial/main amd64
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-rrutter3.5,a=xenial,n=xenial,l=RRutter
| v3.5,c=main,b=amd64
| # 500 http://ppa.launchpad.net/marutter/c2d4u3.5/ubuntu xenial/main i386
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-c2d4u3.5,a=xenial,n=xenial,l=cran2deb4ubuntu_3.5,c=main,b=i386
| # 500 http://ppa.launchpad.net/marutter/c2d4u3.5/ubuntu xenial/main amd64
| Packages
| # release
| v=16.04,o=LP-PPA-marutter-c2d4u3.5,a=xenial,n=xenial,l=cran2deb4ubuntu_3.5,c=main,b=amd64
|
| Hope this helps. Please add-to this advice anyone who's more experienced
| than me in this.
Now why does a serious man like you still run 16.04 though? ;-)
| Thanks to all involved in getting this working and documented.
Our pleasure.
Dirk
Just to complete this thread:

- If you are using a CRAN mirror to install R 3.5, there was an error in
the configuration file that has been fixed. It should work after the
next CRAN sync. This should solve Syed's original problem.

- To confirm Robin's post, regardless of which repository you use to
install R 3.5, RRutter PPA or CRAN, you need to remove/disable the 3.4
repositories. Having both enabled will cause issues.

Michael

Loading...