Cannot install RStudio Desktop on my Linux machine (permission problem)

install

#1

I'm on Linux Mint 18, trying to re-install RStudio desktop. After manually downloading the corresponding .deb, I fail to install:

$ sudo dpkg -i rstudio-xenial-1.1.442-amd64.deb
(Reading database ... 378827 files and directories currently installed.)
Preparing to unpack rstudio-xenial-1.1.442-amd64.deb ...
Unpacking rstudio (1.1.442) over (1.1.442) ...
dpkg: error processing archive rstudio-xenial-1.1.442-amd64.deb (--install):
 unable to open '/usr/lib/rstudio/www/rstudio/95E3CC7CEF42AC02D2707DC7AB8BDCE7.cache.js.dpkg-new': Operation not permitted
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
 rstudio-xenial-1.1.442-amd64.deb

I tried to apt-get autoremove rstudio. I also tried with older .deb versions (xenial-1.1.383, xenial-1.1.345, xenial-1.0.153), with the same error.


#2

I do not know if you already solved your problem, but did you try using sudo dpkg -r rstudio to remove the old version?


#3

I ended up re-installing a new OS (not just because of this). I'll keep that in mind if the problem happens again in the future, thanks!