[R-sig-Debian] getting started with r2u

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Sat May 17 13:44:10 CEST 2025


Ravi,

On 17 May 2025 at 10:57, ravi wrote:
| Dirk,
| Thanks for your help. I ran the command
| sudo sh add_cranapt_noble.sh
| 
| This time, it proceeded well till it came to the following hurdle:
| Execution halted
| E: Unable to locate package python3-{dbus,gi,apt}
| Error in loadNamespace(x) : there is no package called ‘bspm’
| Calls: suppressMessages ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
| 
| I ran 
| ravi using ravi-P15xEMx:~/Downloads$ python3 --version
| Python 3.12.3
| 
| What do I do about 
| python3-{dbus,gi,apt}

A normal shell (like bash) with expand what is in {...} so it becomes

   python3-dbus python3-gi python3-apt

so the idea is that you install these (as root) via

   apt install python3-dbus python3-gi python3-apt
  
as bspm needs them to present.
 
| How do I get dbus (and other packages?) installed? Why doesn't the script automatically take care of this? Is this a symptom that something else is also broken?

I am not on your system, so I cannot answer this. The same steps are executed
many times each day when ever someone takes advantage of r2u, say via GitHub
Actions. 

Your error above was to substitute in 'sh'. Nobody suggested that. 'sh' is
(on Debian and derivatives) a more limited shell than 'bash', so the commands
expecting bash did not run.

Not that when a script (such as add_cranapt_noble.sh) has what is called a
'shebang line' as its first line that is

   #!/bin/bash

the executing shell is determined so the common minimal step is

   sudo ./add_cranapt_noble.sh

It's just one of those things: Unix is made up of a million little
conventions like this one, and we all have to learn them one by one. Not your
fault, not my fault or oversigh, just a fact of live.

So please run the remaining steps of the script as root (or via sudo) and
ensure that bash used.

Cheers, Dirk


| Thanks, Ravi
| 
| 
| 
| On Saturday, 17 May 2025 at 10:11:26 CEST, Dirk Eddelbuettel <edd using debian.org> wrote: 
| 
| 
| 
| 
| 
| 
| Ravi,
| 
| On 16 May 2025 at 17:07, ravi via R-SIG-Debian wrote:
| | I decided to run the add_cranapt_noble.sh script again. I see the following now:
| | 
| |  
| | 
| | ravi using ravi-P15xEMx:~$ sudo chmod +x /home/ravi/Downloads
| 
| You use sudo here.
| 
| | ravi using ravi-P15xEMx:~/Downloads$ cd /home/ravi/Downloads
| | 
| | ravi using ravi-P15xEMx:~/Downloads$ sh add_cranapt_noble.sh
| 
| You are supposed to use sudo here, but do not do so.
| 
| 
| [...]
| 
| | Please let me know what I can do.
| 
| 
| Run as sudo. The documentation preceding the script steps clearly states
| 
|   You should run all these commands as `root` to carefully review each one.
| 
| (and I guess I meant 'so carefully review' not 'to', will fix). The scripts
| from inst/scripts contain the header comment
| 
|   ## Note that you need to run this as root
| 
| Let us know how it goes.
| 
| Good luck, Dirk
| 
| -- 
| dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
| 

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-SIG-Debian mailing list