I meet some troubles when I Updating R on Ubuntu - r

I want to update R from 3.4.4 to 3.5 on ubuntu. I follow this How to upgrade R in ubuntu? ,but always meet some troubles
my try:
1、su
2、vi /etc/apt/sources.list and add
deb https://mirrors.ustc.edu.cn/CRAN/bin/linux/ubuntu/ xenial/
3、gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
4、gpg -a --export E084DAB9 | sudo apt-key add -
5、sudo apt-get update && sudo apt-get upgrade # meet some troubles
6、apt-get install r-base-dev # also meet some troubles
Err:27 http://ppa.launchpad.net/nebc/bio-linux/ubuntu xenial/main amd64 Packages 404 Not Found
W: GPG error: http://dl.google.com/linux/chrome/deb stable Release: The followin g signatures couldn't be verified because the public key is not available: NO_PU BKEY 6494C6D6997C215E
W: The repository 'http://dl.google.com/linux/chrome/deb stable Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potential ly dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration deta ils.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support archit ecture 'i386'
W: The repository 'http://ppa.launchpad.net/nebc/bio-linux/ubuntu xenial Release ' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potential ly dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration deta ils.
E: Failed to fetch http://ppa.launchpad.net/nebc/bio-linux/ubuntu/dists/xenial/m ain/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
x/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found^C-linu
root#omnisky:~# sudo apt-get install r-base-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
r-base-dev is already the newest version (3.4.4-1xenial0). # why?
The following package was automatically installed and is no longer required:
snapd-login-service
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.

Related

Unable to install R 4.0 on Linux Mint 19.1 Tessa

I have been trying for days now. I would like to upgrade to the latest version of R. I have followed advice found on this link :
Problem installing R4.0 on LInux Mint 19.3
but for me the problem persists for me.
When I do
echo -e "\ndeb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/" | sudo tee -a /etc/apt/sources.list
then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get install r-base
I get this
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 4.0.5-1.1804.0) but it is not going to be installed
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
E: Unable to correct problems, you have held broken packages.
If anyone has an idea of how to solve this I would be eternally grateful.
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
Remove the duplicate entry in your sources (line 5 and 7):
sudo sed -i '7d' /etc/apt/sources.list
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 4.0.5-1.1804.0) but it is not going to be installed
Use the following command:
sudo apt update
sudo apt install --no-install-recommends r-base
This post:
https://unix.stackexchange.com/a/612316/367012
Says Mint is different than Ubuntu in adding repositories, and suggests manually editing the repository list,
$ sudo xed /etc/apt/sources.list.d/additional-repositories.list
to add:
deb cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
Save and exit the editor, then update the package list:
$ sudo apt update
This post: https://askubuntu.com/a/1113944/968912 suggests removing all the previous versions of R first.

Having difficulty with re-installing R in Ubuntu 18.04

Very recently I shifted to Ubuntu from Windows and downloaded R-base (3.4.4) and R studio. However, some packages (car, ROCR etc) were not available and hence I tried to update R. Because of error messages, I finally tried to uninstall and remove R and then install it again.
I tried
sudo apt-get upgrade
sudo apt install r-base
However, it is showing me error message like,
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 3.6.2.20200221-1~ubuntu18.04.1~ppa1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So basically right now, I have no R-base installed.
I tried to remove R-base.
sudo apt-get remove r-base
And all I am getting is-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'r-base' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I am a beginner in both R and Linux. I need your valuable suggestions.
Thanks in advance.
If you are using Ubuntu 18.04, please follow these steps if you are using your local machine of your own. (If your are working in any office environment please setup proxy and follow these steps)
1) Let’s first add the relevant GPG key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
2) Add the R Repository
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
3) Update Package Lists
sudo apt update
4) Install R
sudo apt install r-base
5) Test Install
sudo -i R
6) Installing R Packages from CRAN
install.packages('dplyr')

readr package not installing on Ubuntu

Hello I am trying to install reader onto my Ubuntu VPS. I only have 1 GB of RAM which is why I can not install it. I came across Dirk's post R (Ubuntu) - Can't install packages "readr" and "eurostat" where he explained the work around.
apt-get update # refresh
apt-get install software-properties-common
add-apt-repository -y "ppa:marutter/rrutter"
add-apt-repository -y "ppa:marutter/c2d4u"
apt-get update # now with new repos
apt-get install r-cran-readr
However, when I run the code. The final line gives me this error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-cran-readr : Depends: r-api-3.4
Depends: r-cran-rcpp but it is not going to be installed
Depends: r-cran-tibble but it is not going to be installed
Depends: r-cran-hms but it is not going to be installed
Depends: r-cran-r6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I was able to install all the packages separately and tried running the code again. I got the same error. I am not to sure what my next steps should be.
Edit**
I am trying to follow Dirk's advice in the comment section. I am having a difficult time understanding what to do with the "deb" file. Once I have the deb link
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
Some sources to me to run the command
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
However, I recieve this error.
keyserver receive failed: No dirmngr
It seems like I have to add the deb link to a directory. I am brand new to Ubuntu and the shell. If someone could explain this to me in simple terms that would be greatly appreciated.

Unable to install r-base due to errors '404 Not Found' and unmet dependencies

I am unfamiliar with command-lines and trying to install R onto my Google Cloud VM instance. Here is the version of my Ubuntu.
Distributor ID: Debian
Description: Debian GNU/Linux 9.2 (stretch)
Release: 9.2
Codename: stretch
I have been using this link to guide me: http://cran.r-project.org/bin/linux/ubuntu
First, I added a deb repository into my source.list.
The line I added into the source.list is 'deb https://cran.ma.imperial.ac.uk/bin/linux/ubuntu utopic/'.
Then I performed the following.
kefei#pectendashboard:~$ sudo nano /etc/apt/sources.list
kefei#pectendashboard:~$ sudo apt-key adv --keyserver
keyserver.ubuntu.com --recv-keys E084DAB9
Executing: /tmp/apt-key-gpghome.Zdt2MbceSW/gpg.1.sh --keyserver
keyserver.ubuntu.com --recv-keys E084DAB9
gpg: key 51716619E084DAB9: "Michael Rutter <marutter#gmail.com>" not
changed
gpg: Total number processed: 1
gpg: unchanged: 1
I would like to know what is meant by 'gpg:no valid OpenPGP data found.'
kefei#pectendashboard:~$ sudo add-apt-repository ppa:marutter/rdev
The latest developmental version of R for testing packages
More info: https://launchpad.net/~marutter/+archive/ubuntu/rdev
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp3c2s3m12/pubring.gpg' created
gpg: /tmp/tmp3c2s3m12/trustdb.gpg: trustdb created
gpg: key 5E25F516B04C661B: public key "Launchpad PPA for marutter"
imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
More errors appear when I ran apt-get update, mainly 404 Errors. For example:
kefei#pectendashboard:~$ sudo apt-get update
Ign:23 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
bionic/main Translation-en_US
Err:12 http://ppa.launchpad.net/marutter/rdev/ubuntu bionic/main amd64
Packages
404 Not Found
This is then followed by a series of warning and error messages.
The repository 'http://ppa.launchpad.net/marutter/rdev/ubuntu bionic
Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user
configuration details.
W: The repository 'http://ppa.launchpad.net/marutter/rrutter/ubuntu
bionic Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user
configuration details.
W: The repository 'http://ppa.launchpad.net/ubuntugis/ubuntugis-
unstable/ubuntu bionic Release' does not have a Rel
ease file.
E: Failed to fetch
http://ppa.launchpad.net/marutter/rdev/ubuntu/dists/bionic/main/binary-
amd64/Packages
404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
After this, I ran 'sudo apt-get upgrade' and 'sudo apt-get install r-base', obtaining the following messages.
kefei#pectendashboard:~$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.4.2-2xenial2) but it is not going
to be installed
Depends: r-recommended (= 3.4.2-2xenial2) but it is not going to
be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have tried numerous sources and repositories for installing r-base, but the same error messages keep on appearing. I would be very grateful if anyone could help me.

"Installing Docker: FAILED" Error on setup with Meteor-Up and Debian 7 wheezy

I just buy a new VPS (from OVH - VPS SSD 1 - Debian 7 Wheezy 64bit) and I try to deploy on prod my Meteor project using Meteor-Up (more exactly the mupx version).
When I try to setup mupx setup I got some error for installing Docker.
I tried to install manually docker on the server, and on my local computer. I also tried to launch the setup command with sudo, but nothing better..
Any idea ?
Started TaskList: Setup (linux)
[158.69.210.254] - Installing Docker
[158.69.210.254] x Installing Docker: FAILED
-----------------------------------STDERR-----------------------------------
opportunity to cancel the
installation.
If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.
You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D || apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server pool.sks-keyservers.net
gpg: key 2C52609D: "Docker Release Tool (releasedocker) <docker#docker.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
+ sh -c mkdir -p /etc/apt/sources.list.d
+ dpkg --print-architecture
+ sh -c echo deb [arch=amd64] https://apt.dockerproject.org/repo debian-wheezy main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
E: Unable to correct problems, you have held broken packages.
-----------------------------------STDOUT-----------------------------------
an-wheezy/main Translation-en_GB
Ign https://apt.dockerproject.org debian-wheezy/main Translation-en
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker-engine : Depends: init-system-helpers (>= 1.18~) but it is not installable
Recommends: aufs-tools but it is not going to be installed
Recommends: cgroupfs-mount but it is not installable or
cgroup-lite but it is not installable
Recommends: git but it is not going to be installed
Recommends: yubico-piv-tool (>= 1.1.0~) but it is not installable
----------------------------------------------------------------------------
The error is because Docker version didn't work on Debian 7, but only Debian 8.
Si just have to reinstall VPS using OVH manager and all work fine !

Resources