How to install R studio in Ubuntu 20.04?

How to install R studio in Ubuntu 20.04?

Hello readers,
Today As of the time of writing this article there is no any official specific RStudio available for Ubuntu 20.04 (Code-name: focal) but Rstudio for Ubuntu 18.04 works fine for Ubuntu 20.04. I am using R studio in 20.04 for a weak ago and it's working fine for me.
Now visit the  RStudio downloads page and check for it to grab the latest release of RStudio for Debian based Linux distributions "Ubuntu 18/" or if available "Ubuntu 20/" download .deb file from here.

Installation process is almost same for 18.04 and 20.04.

Here in this article, we’ll dive to the installation of Open source edition of RStudio released under AGPL License.

Steps to Install RStudio:

  • Update system

Update System package index (this is the good practice) and optionally upgrade all installed package.
  • sudo apt update
  • sudo apt -y upgrade
  • Install R on Ubuntu/Debian

At this point, we’re ready to install R with the following command.
We need to install r-base package which contains the basic R functions that let you perform basic R programming and arithmetic operations. Use the command below to install.

  • sudo apt -y install r-base

If prompted to confirm installation, press y to continue.
verify your R Installation
  • sudo -i R
Output



This confirms that we’ve successfully installed R and entered its interactive shell.

Exit to the shell

press "ctrl+z"

  • Download and Install RStudio

Visit to RStudio downloads to download the latest release of RStudio for Ubuntu.
As of the time of writing, the latest version is rstudio-1.3.1056

  • sudo apt -y install wget
  • wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.3.1056-amd64.deb
Note: This link maybe outdated.

jump to your local directory where your file downloaded in terminal and run
  • sudo apt install ./rstudio-1.3.1056-amd64.deb

Enjoy! Your installation of R and RStudio on Ubuntu / Debian and Linux Mint has been successful.


"sources.list file empty" or "E: Package package_name has no installation candidate" in ubuntu 20.04

"sources.list file empty" or "E: Package package_name has no installation candidate" in Ubuntu 20.04



Hello Ubuntu users, I  am writing this article because i faced this problem as follow by other old solutions on internet when i was upgrading my Ubuntu v18.04 to v20.04, accidentally i remove or clear "sources.list" file from location /etc/apt/sources.list

I don't have screenshots of errors because i didn't taught to write article on this error. but it works for me.

first check your Ubuntu version
lsb_release -a

I don't even know this will work for other Ubuntu versions or not.

If your sources.list file is empty then it will not allow you to install any packages.

I was getting error "E: Package 'lsb-core' has no installation candidate"
after investing couples of hrs. to solve E: Package 'lsb-core' has no installation candidate i got about sources.list but it was empty for,  and start searching to regenerate sources.list file contents back, and finally i collect information from different sources and combine them and got solution.

Let's start!

Solution:: It Works For Me( You Can Try )

Copy of your sources.list file backed-up to your "/etc/apt/" directory by named "sources.list.save" In my case it was there if you didn't get this file name you can skip this article.
  sudo apt update
  cd /etc/apt/
  ls 
 Check file name "sources.list.save" If file exists open and check contents available or not.

Copy file using
  cp sources.list.save sources.list
 
open sources.list
  vi sources.list
Note: You can use any editor to edit

change all text "bionic" to focal
Note: line starts with # is comment so you can leave this unchanged.

once all bionic changed to focal save file and exit

  sudo apt update
  sudo apt upgrade

 
some files will not upgrade directly using upgrade command.
you can manually install them if you know up-gradable package name.
  sudo apt install package_name
I hope this will work for you i am also a beginner in Ubuntu, and if you have query related to this feel free to write in comment section.

If you have another solution related this can share your solution in comment section it help others.

Thanks


Home
 

Error “Device /dev/ttyUSB0 is locked” in linux

Error “Device /dev/ttyS0 is locked”


Sometimes terminal gives error "Device /dev/ttyS0 is locked" or
"Device /dev/ttyUSB0 is locked" that is happens, if the connection to Linux from external device which was made via Minicom is lost, and then the next time you start Minicom, you could see an error:

Device /dev/ttyS0 is locked
Error Device /dev/ttyUSB0 is locked
Device /dev/ttyS0 is locked
or
Device /dev/ttyUSB0 is locked

or The name /dev/tty*** may be different, depending on what COM-port you have.
To avoid such error, it is necessary to properly shut down Minicom using the command

"CTRL+A" keys and then the "Q" key on keyboard.

There are different  options available to overcome this error, some are:

1- Kill the process as a root user with the command:

   "$ killall -9 minicom"

   In Ubuntu, use the command:

   "$ sudo killall -9 minicom"

2- Or can simply delete the file «LCK..tty***» in the /var/lock/ directory.

Now try to open the minicom. Error will not be display.

😂️Enjoy😂️

Home    email us