Hi,
I am continuing here from a discussion on r-help. Dirk has advised me to turn to
this group.
I have not succeeded in installing r2u with the add_cranapt_noble.sh script. I
do not want to complicate the picture by detailing all my missteps. Instead, I
will just start by describing my present status.
When I start Rstudio, an error message comes up immediately in the console:
Error in loadNamespace(x) : there is no package called ?bspm?
(I should explain that at one stage, I had copies of the bspm package in two
different directories. I then deleted them and thought I would begin afresh with
the add_cranapt_noble.sh script).
I decided to run the add_cranapt_noble.sh script again. I see the following now:
?
ravi at ravi-P15xEMx:~$ sudo chmod +x /home/ravi/Downloads
ravi at ravi-P15xEMx:~/Downloads$ cd /home/ravi/Downloads
ravi at ravi-P15xEMx:~/Downloads$ sh add_cranapt_noble.sh
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission
denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13:
Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13:
Permission denied)
add_cranapt_noble.sh: 13: cannot create /etc/apt/trusted.gpg.d/cranapt_key.asc:
Permission denied
add_cranapt_noble.sh: 14: cannot create
/etc/apt/trusted.gpg.d/cran_ubuntu_key.asc: Permission denied
gpg: key 51716619E084DAB9: public key "Michael Rutter <marutter at
gmail.com>" imported
gpg: key 67C2D66C4B1D4339: public key "Launchpad PPA for Dirk
Eddelbuettel" imported
gpg: Total number processed: 2
gpg:?????????????? imported: 2
add_cranapt_noble.sh: 17: cannot create /usr/share/keyrings/r2u.gpg: Permission
denied
add_cranapt_noble.sh: 20: cannot create /etc/apt/sources.list.d/cranapt.list:
Permission denied
add_cranapt_noble.sh: 23: cannot create /etc/apt/sources.list.d/cran_r.list:
Permission denied
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission
denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13:
Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13:
Permission denied)
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission
denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are
you root?
add_cranapt_noble.sh: 28: cannot create /etc/apt/preferences.d/99cranapt:
Permission denied
add_cranapt_noble.sh: 29: cannot create /etc/apt/preferences.d/99cranapt:
Permission denied
add_cranapt_noble.sh: 30: cannot create /etc/apt/preferences.d/99cranapt:
Permission denied
add_cranapt_noble.sh: 31: cannot create /etc/apt/preferences.d/99cranapt:
Permission denied
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission
denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are
you root?
Error in loadNamespace(x) : there is no package called ?bspm?
Calls: suppressMessages ... loadNamespace -> withRestarts ->
withOneRestart -> doWithOneRestart
Execution halted
add_cranapt_noble.sh: 39: cannot create /usr/lib/R/etc/Rprofile.site: Permission
denied
add_cranapt_noble.sh: 40: cannot create /usr/lib/R/etc/Rprofile.site: Permission
denied
ravi at ravi-P15xEMx:~/Downloads$
?
Please let me know what I can do.
Thanks, Ravi