Skip to content

Add note about enabling source repos on Ubuntu 24.04+#264

Open
thisisnic wants to merge 2 commits into
r-devel:mainfrom
thisisnic:r-source-deps
Open

Add note about enabling source repos on Ubuntu 24.04+#264
thisisnic wants to merge 2 commits into
r-devel:mainfrom
thisisnic:r-source-deps

Conversation

@thisisnic

Copy link
Copy Markdown
Contributor

Summary

On Ubuntu Noble and later, source repositories are not enabled by default. Users need to edit /etc/apt/sources.list.d/ubuntu.sources to add deb-src before apt-rdepends and build-dep commands will work. Instructions added in this PR.

Fixes #261

What should a reviewer concentrate their feedback on?

  • Everything looks ok?

On Ubuntu Noble and later, source repositories are not enabled by
default. Users need to edit /etc/apt/sources.list.d/ubuntu.sources
to add deb-src before apt-rdepends and build-dep commands will work.

Closes r-devel#261

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@llrs llrs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking this! Maybe a line explaining the message users might get would make it even more helpful. Could you add it? Then I'll merge it.

Probably unrelated but after following these steps I get a somewhat confusing message (might be related to me not using ubuntu directly but a downstream distribution):

sudo apt-get build-dep r-base-dev
Reading package lists... Done
Picking 'r-base' as source package instead of 'r-base-dev'

@eddelbuettel

Copy link
Copy Markdown

@llrs it make sense when you step back and look at the debian/control file which has

Source: r-base

followed by all the package names, including r-base-core and r-base-dev. Here apt is telling you that it pivots from the binary package name you gave it to the source package it shows -- as the Build-Depends entry is in the source package paragraph.

@thisisnic

Copy link
Copy Markdown
Contributor Author

Thanks - added a little more context here now @llrs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R source code dependencies installation may need update to instructions on Ubuntu Noble (24.04)

3 participants