Suivre les instructions ici pour installer le serveur Shiny, rencontre l’erreur - Failed to open the software package
comme ci-dessous.
> Sudo gdebi shiny-server-1.5.3.838-AMD64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Failed to open the software package
The package might be corrupted or you are not allowed to open the file. Check the permissions of the file.
Autorisations
> ls -al
total 83140
drwxr-x--- 3 tom users 4096 Mar 16 07:23 .
drwxrwx--x 5 tom users 4096 Mar 16 08:26 ..
drwxr-x--- 27 tom users 24576 Feb 12 07:48 Ruby-2.4.0
-rw-r----- 1 tom users 14104044 Dec 25 04:30 Ruby-2.4.0.tar.gz
-rw-r----- 1 tom users 70643942 Feb 25 03:23 shiny-server-1.5.3.838-AMD64.deb
>
sans Sudo
> gdebi shiny-server-1.5.3.838-AMD64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
Shiny Server
Shiny Server is a server program from RStudio, Inc. that makes Shiny applications available over the web. Shiny is a web application framework for the R statistical computation language.
Need to be root to install packages
>
update - avec dpkg
> Sudo dpkg -i shiny-server-1.5.3.838-AMD64.deb
dpkg-split: error: unable to read part file `shiny-server-1.5.3.838-AMD64.deb': Permission denied
dpkg: error processing archive shiny-server-1.5.3.838-AMD64.deb (--install):
subprocess dpkg-split returned error exit status 2
Errors were encountered while processing:
shiny-server-1.5.3.838-AMD64.deb
>
Chmod a corrigé ce problème en tant qu'utilisateur non Sudo en raison de la définition d'autorisations particulières dans cette machine d'entreprise.
> chmod 0664 shiny-server-1.5.3.838-AMD64.deb
> ls -al
total 83140
drwxr-x--- 3 tom users 4096 Mar 16 07:23 .
drwxrwx--x 5 tom users 4096 Mar 16 08:26 ..
-rw-rw-r-- 1 tom users 70643942 Feb 25 03:23 shiny-server-1.5.3.838-AMD64.deb
>
> Sudo gdebi shiny-server-1.5.3.838-AMD64.deb
Enter password for tom (INTRANETPASS):
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
Shiny Server
Shiny Server is a server program from RStudio, Inc. that makes Shiny applications available over the web. Shiny is a web application framework for the R statistical computation language.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package shiny-server.
(Reading database ... 81902 files and directories currently installed.)
Preparing to unpack shiny-server-1.5.3.838-AMD64.deb ...
Unpacking shiny-server (1.5.3.838) ...
Setting up shiny-server (1.5.3.838) ...
Creating user shiny
Adding LANG to /etc/init/shiny-server.conf, setting to en_US.UTF-8
shiny-server start/running, process 8854
>
crédits - signaux de @steeldriver, @bistoco