Dear all,
I believe there is a typo in the "Install R from Source" instructions reported at Install R from Source – Posit Docs.
According to the information included in Ubuntu 24.04 getting error You must put some 'deb-src' URIs in your sources.list when issuing apt-get build-dep - Ask Ubuntu
There is a new config file location with a new file format layout for 24.04 unlike previous Ubuntu releases
Therefore, the commands included in the "Install required dependencies" section do not work under Ubuntu 24.04. Old command (reported in the webpage):
sudo sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list
New command (that worked on my installation)
sed -i.bak 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
I hope someone else can confirm the problem.
Finally, I'm not sure whether this is the right place to report such problems but I couldn't find anything else.
Thanks,
Andrea