Skip to content

Report of a successful Ubunutu 22.04 install with some hiccups #171

Open
@zkamvar

Description

@zkamvar

I'm on Ubuntu 22.04 and I was able to install R-devel with a couple of hiccups. I'm not sure they best way to amend the current instructions, but here is my experience:

deb-src errors

apt-rdepends --build-depends --follow=DEPENDS r-base-dev | grep " B" | sed -e "s/  Build-Depends: //"
...
Error: You must put some 'deb-src' URIs in your sources.list 

I used sudo vim /etc/apt/sources.list and then used the command :g/^deb /t.|s/deb/deb-src/ to duplicate all the deb lines and copy the deb-src line.

This did not work until I realized three things:

  1. the apt repository for R was commented out after my recent upgrade (instructions found here https://cran.r-project.org/bin/linux/ubuntu/)
  2. some of the sources were moved to their own files in /etc/apt/sources.list.d/
  3. I needed to run sudo apt update to get deb-src to work

Zombie Conda errors

After I was able to get the deb-src to work and pulled down the changes from svn, I compiled R inside the svn repo and I was getting make errors that said:

"$HOME/anaconda3/include/zlib.h" not found

I removed anaconda six months ago, but apparently there are still a few zombies wandering around.

I found the location of the offending config by searching for "anaconda" with ripgrep (I found it in src/main/dounzip.d) and then I found what zlib I actually had by using:

locate -r '\zconf.h$'

and then manually replaced the lines in src/main/dounzip.d.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions