install Rstudio on Ubuntu 20.4 Error (code=exited, status=127) - r

I want to install Rstudio after I have installed R on my ubuntu 20.4
Everything is fine till I want to execute the actual installation with
sudo gdebi rstudio-server-1.3.1073-amd64.deb
rstudio-server.service - RStudio Server
Loaded: loaded (/lib/systemd/system/rstudio-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2020-08-17 11:35:12 CEST; 11ms ago
Process: 128920 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=127)
Why do I get the (code=exited, status=127) and how can I solve it?
Thanks

I had the same issue and solved it by getting to the one for Ubuntu18/Bionic Beaver instead:
https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5042-amd64.deb
sudo apt install gdebi
sudo gdebi rstudio-1.2.5042-amd64.deb

Related

how do i install mariadb on ubuntu 16.04

i have been trying to install mariadb on my ubuntu machine but the error ii keep getting is shown on the link below
https://imgur.com/9LOtUk9 "Error Image"
tried uninstalling mysql and mariadb nd reinstalled mariadb all over again
apt-get install mariadb-server
my expected result is below when i try to check the status after installation
mariadb.service - MariaDB 10.3.10 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running)
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 15152 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.slice/mariadb.service
└─15152 /usr/sbin/mysqld

Nginx+Passenger Error - libcurl.so.4: version `CURL_OPENSSL_3' not found

System:
Ubuntu: 18.04 LTS
Passenger: 5.3.1
nginx with libnginx-mod-http-passenger
$ sudo nginx -t
Returns:
PassengerLoggingAgent: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by PassengerLoggingAgent)
2018/06/04 02:28:40 [alert] 10411#0: Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger logging agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)
```
You can install the required version 3 from the bionic repository if you don't depend on other software that already uses version 4:
sudo apt install libcurl3/bionic
This will ask you to remove curl itself, libcurl4, and dependend software. Consider carefully if you need those, before removing them.
You still can roll back by installing libcurl4 and the removed software again.
This fixed my problem:
sudo apt install libcurl4-openssl-dev

how can i fix this nginx in ubuntu16

I am newer to nginx and am getting this error message while
sudo apt-get install nginx
can any one help me to fix this
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-08-28 15:12:09 IST; 20ms ago
Docs: man:nginx(8)
Process: 6656 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Aug 28 15:12:09 onlyoffice systemd[1]: Starting A high performance web serv.....
Aug 28 15:12:09 onlyoffice nginx[6656]: nginx: [emerg] open() "/etc/nginx/ng...)
Aug 28 15:12:09 onlyoffice nginx[6656]: nginx: configuration file /etc/nginx...d
Aug 28 15:12:09 onlyoffice systemd[1]: nginx.service: Control process exite...=1
Aug 28 15:12:09 onlyoffice systemd[1]: Failed to start A high performance w...r.
Aug 28 15:12:09 onlyoffice systemd[1]: nginx.service: Unit entered failed state.
Aug 28 15:12:09 onlyoffice systemd[1]: nginx.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package nginx-full (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (<< 1.13.3-0+xenial1.1~) | nginx-light (<< 1.13.3-0+xenial1.1~) | nginx-extras (<< 1.13.3-0+xenial1.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (>= 1.13.3-0+xenial1) | nginx-light (>= 1.13.3-0+xenial1) | nginx-extras (>= 1.13.3-0+xenial1); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
thank you in advance
You could try to use the official nginx.repo for Ubuntu (Xenial)
Edit /etc/apt/sources.list and add these lines at the end of the file:
deb http://nginx.org/packages/ubuntu/ codename nginx
deb-src http://nginx.org/packages/ubuntu/ codename nginx
Save the file and run this commands:
sudo apt-get update
sudo apt-get install nginx
It should install the latest nginx version from the nginx official repo.
If that's not working try running this command instead:
apt-get -f install nginx
or
apt-get -f -y install nginx

When I am installing tomcat 7 in ubuntu 16.04 I got this error

When I am installing tomcat 7 in ubuntu 16.04 I got this error
invoke-rc.d: initscript tomcat7, action "start" failed.
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-05-29 00:33:24 IST; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 972 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)
May 29 00:33:24 developer-HP-Notebook systemd[1]: Starting LSB: Start Tomcat....
May 29 00:33:24 developer-HP-Notebook tomcat7[972]: * no JDK or JRE found - please set JAVA_HOME
May 29 00:33:24 developer-HP-Notebook systemd[1]: tomcat7.service: Control process exited, code=exited status=1
May 29 00:33:24 developer-HP-Notebook systemd[1]: Failed to start LSB: Start Tomcat..
dpkg: error processing package tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
Either Java is not installed or you have the environment variable JAVA_HOME not pointed to it. Check for existence of java on your system, by executing following command in a terminal:
java -version
Install Java, by either downloading a jdk or jre from oracle java: https://java.com/.
Or just run:
sudo apt-get install openjdk-8-jdk

R 3.2 on AWS AMI

I am trying to install R with Rstudio on an Amazon AWS AMI. It currently ships R-3.1 and I would like it to have R-3.2. I am currently using 2013.03 release but the new 2015 version also doesn't have the right version.
The yum install R command won't upgrade it.
root#ip-172-31-3-136 tmp]$ sudo yum install R
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest
| 2.1 kB 00:00
amzn-updates/latest
| 2.3 kB 00:00
704 packages excluded due to repository priority protections
Package R-3.1.1-3.18.amzn1.x86_64 already installed and latest version
Nothing to do
I figured I'd add another rpm repo, so I download the rpm list from the most recent CentOS.
wget http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum localinstall epel-release-7-5.noarch.rpm
sudo yum install R
This also doesn't work and gives me a list of errors like:
Error: Package: python26-2.6.9-1.80.amzn1.x86_64 (#amzn-updates)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.8.amzn1.x86_64
Error: Package: rpm-python26-4.11.2-2.64.amzn1.x86_64 (#amzn-updates)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
Error: Package: httpd-2.2.29-1.5.amzn1.x86_64 (#amzn-main)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
I am trying to install R as part of a provisioning script so preferably I would be able to to not have to install from source as this takes a LONG time.
The --enablerepo=epel trick also does not work either.
root#ip-172-31-3-136 tmp]$ sudo yum install R --enablerepo=epel
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
704 packages excluded due to repository priority protections
Package R-3.1.1-3.18.amzn1.x86_64 already installed and latest version
Nothing to do
This all seems very confusing as the following script does work on a CENTOS 7 box when I start it on digital ocean:
[root#servy-server ~]# yum install -y epel-release
[root#servy-server ~]# yum update -y
[root#servy-server ~]# yum install -y R
[root#servy-server ~]# R
The latest Amazon AWS AMI now ships with R version 3.2.

Resources