Unsandboxed installation on Ubuntu 22

Hello,
I upgraded Rstudio following the pop-up reminders. I am using Ubuntu 22, I downloaded the deb file, and install it on the terminal. But, every time I do this, I get a final error/warning message:

$ sudo apt install ./rstudio-2024.09.0-375-amd64.deb

[sudo] password for gigiux:

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Note, selecting 'rstudio' instead of './rstudio-2024.09.0-375-amd64.deb'

The following package was automatically installed and is no longer required:

libdeflate-dev

Use 'sudo apt autoremove' to remove it.

The following packages will be upgraded:

rstudio

1 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.

Need to get 0 B/204 MB of archives.

After this operation, 19.5 MB disk space will be freed.

Get:1 /home/gigiux/Downloads/rstudio-2024.09.0-375-amd64.deb rstudio amd64 2024.09.0+375 [204 MB]

(Reading database ... 266044 files and directories currently installed.)

Preparing to unpack .../rstudio-2024.09.0-375-amd64.deb ...

Unpacking rstudio (2024.09.0+375) over (2024.04.2+764) ...

Setting up rstudio (2024.09.0+375) ...

Processing triggers for mailcap (3.70+nmu1ubuntu1) ...

Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...

Processing triggers for hicolor-icon-theme (0.17-2) ...

Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...

Processing triggers for shared-mime-info (2.1-2) ...

N: Download is performed unsandboxed as root as file '/home/gigiux/Downloads/rstudio-2024.09.0-375-amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Is this bad? Has the installation succeded?
How can I get rid of this warning?

Thank you

Does RStudio open for you and, if so, does Help > About RStudio show the correct version?

I now have Rstudio 2024.09.0 Build 375 so I guess the installation was successful. But why the last warning then? Thank you.

I think it has to do with your using apt install with a .deb file, as opposed to dpkg -i with the .deb file or apt install with a package name (e.g., "rstudio"). What you did was perfectly legal, but under the hood there is some technical stuff going on. Personally, I just double click the .deb file (on Linux Mint) and let nature take its course. :wink:

1 Like

Thank you, I was not aware of such a difference. I'll try it next time.

Hi gigiux,

I'm sorry for replying to this thread but I don't have an option to send a private message yet. I was wondering if you could reply or pm me about this post you made about colouring function and variables in RStudio theme, as I am trying to do the same!

Thanks!

Hi,

it turned out that Rstudio already has a wide battery of themes:
https://github.com/max-alletsee/rstudio-themes
You just need to give it a try and pick the one you like. I must say that there is not one that is perfect, at least to me, but I can work with it. In case, you can set your custom theme and even publish it.
I hope this helps.
Cheers
Luigi

Thanks so much for the reply!

I've been fiddling with a bunch of them this week (and have decided on One Dark Pro for now), but my main question for you was specifically the variables part.

I've read the documentation and it seems that there isn't functionality for colouring objects but I was hoping somebody else knew if I was missing something. I can see that the tmthemes have them but when I look for it in rthemes I can't seem to find anything. Wish I could suggest them adding it, either for declared variables or for function variables.

Thanks again!!

sorry I could not be of more help; this is a feature I still miss too...
Perhaps you can talk with Rstudio and propose an amendment.
All the best
Luigi