Ivan and Dirk, Finally, finally, your mojo works! 1. I followed Ivan's suggestion. I ran bspm::enable() in a new R session. Installed a package. The process seemed to use r2u. Again, I followed Ivan and restored the following lines in the script: echo "suppressMessages(bspm::enable())" >> ${RHOME}/etc/Rprofile.site echo "options(bspm.version.check=FALSE)" >> ${RHOME}/etc/Rprofile.site 2. I then ran sudo ./add_cranapt_noble.sh Before doing this, I made the file executable as program (after right clicking on the properties). After this, I was able to run the above command. 3. Now, the old error message about not being able to locate python3-{dbus,gi,apt} did not appear. 4. In a fresh R session, I was able to install packages via r2u. 5. One final question. I seem to have read somewhere that r2u provides binaries for about 5000 packages. If a particular package is not in a list, will I get a message? How will I know? Thanks to you, Ivan. Thanks, Dirk, for your patient help. Cheers, Ravi
On Saturday, 17 May 2025 at 20:42:17 CEST, Dirk Eddelbuettel <e...@debian.org> wrote: On 17 May 2025 at 21:18, Ivan Krylov via R-SIG-Debian wrote: | В Sat, 17 May 2025 17:17:09 +0000 (UTC) | ravi via R-SIG-Debian <r-sig-debian@r-project.org> пишет: | | > 7. Anyway, the bspm package has now been installed in | > /usr/local/lib/R/site-library. No namespace error is returned. | | Try running bspm::enable() in a fresh R session. After that, do calls | to install.packages() in the same R session go through r2u? If yes, | feel free to restore the lines "suppressMessages(bspm::enable())" and | "options(bspm.version.check=FALSE)" in ${RHOME}/etc/Rprofile.site. If | no, maybe the resulting error messages provide more of a hint. That's actually a good debugging step: - check if you can use r2u without bspm, ie try to run sudo apt install r-cran-digest or any other package with more depenendies - if that works try to see why involving bspm does create an issue As Ivan noted, it matters to re-enable bspm in /etc/R/Rprofile.site Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ R-SIG-Debian mailing list R-SIG-Debian@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian _______________________________________________ R-SIG-Debian mailing list R-SIG-Debian@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian