susdo apt-get install ./edgesdk-oauth-tool-setup-linux-1.0.0.deb does not work on raspbian - edgesdk

Not able to install oauth-tool due to the following issues.
pi#raspberrypi:~/Downloads $ sudo apt-get install ./edgesdk-oauth-tool-setup-linux-1.0.0.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
**Note, selecting 'edgesdk-oauth-tool:amd64' instead of './edgesdk-oauth-tool-setup-linux-1.0.0.deb'**
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:
edgesdk-oauth-tool:amd64 : Depends: libgtk-3-0:amd64 but it is not installable
Depends: libnotify4:amd64 but it is not installable
Depends: libnss3:amd64 but it is not installable
Depends: libxss1:amd64 but it is not installable
Depends: libxtst6:amd64 but it is not installable
Depends: libatspi2.0-0:amd64 but it is not installable
Depends: libuuid1:amd64 but it is not installable
Depends: libappindicator3-1:amd64 but it is not installable
Depends: libsecret-1-0:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
pi#raspberrypi:~/Downloads $

Sukanta, the package you are trying to install is amd64-based architecture, whereas Raspbian is ARM64-based. You need to install the package on an amd64 machine.

You can also follow the steps below to get edge access token for raspberry pi node.
1) Install edgeSDK and oauthtool in your Windows/Ubuntu/MacOS ( PC platforms)
2) Go to developer portal from your PC platfrom and run oauthttool
3) In "Get OAuth 2.0 section, enter the IP address of raspberry pi unit and click to get the edge Access token Token
4)oauthtool will display the edge access token for raspberry pi

Related

Best way to install R on Ubuntu 20.04?

Does anyone have a good approach to installing R on Ubuntu 20.04? I can't seem to find a solution for this specific to 20.04 focal through apt.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Edit: after going through the link here and adding the entry to sources.list, I ran into issues with dependencies:
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 (>= 4.0.2-1.2004.0) but it is not going to be installed
Depends: r-recommended (= 4.0.2-1.2004.0) 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.
Per #DirkEddelbuettel's comment, I ran sudo apt install r-base-core r-recommended r-base-html to see next level dependencies:
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-core : Depends: libblas3 but it is not installable or
libblas.so.3 but it is not installable
Depends: liblapack3 but it is not installable or
liblapack.so.3 but it is not installable
Depends: libtcl8.6 (>= 8.6.0) but it is not installable
Depends: libtk8.6 (>= 8.6.0) but it is not installable
Recommends: r-base-dev but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
r-recommended : Depends: r-cran-kernsmooth (>= 2.2.14) but it is not going to be installed
Depends: r-cran-mgcv (>= 1.1.5) but it is not going to be installed
Depends: r-cran-rpart (>= 3.1.20) but it is not going to be installed
Depends: r-cran-survival (>= 2.13.2-1) but it is not going to be installed
Depends: r-cran-matrix but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
There was a more underlying issue when I worked on trying to install r-base. I ended up finding out that I had problems with unmet dependencies after adding a PPA. I used this link here to fix the underlying problem of unmet dependencies, which in turn allowed me to apt install and not have any issues installing.
Here is what I do in the Rocker container r-ubuntu for the 20.04 image:
Install software-properties-common to be able to say add-apt-repository
Add the rrutter4.0 PPA for R itself (same as CRAN)
add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0"
Add the c4d4u.teams repo for over 4k CRAN packages:
add-apt-repository --enable-source --yes "ppa:c2d4u.team/c2d4u4.0+"
Run apt install r-base (and a few more).
In a narrow sense you only need 2 (as you likely do not 1 on a full Ubuntu system) and 4 but you may as well do 3.
You can of course also just to docker pull rocker/r-ubuntu:20.04 and get that container pre-made, but I use both: a container for tests, and these settings on my 20.04 machine(s).
Prerequisites
You will need an Ubuntu 20.04 with:
at least 1GB of RAM
a root user / non-root user with sudo privileges
Installing R
Because R is a fast-moving project, the latest stable version isn’t always available from Ubuntu’s repositories, so we’ll start by adding the external repository maintained by CRAN.
Note: CRAN maintains the repositories within their network, but not all external repositories are reliable. Be sure to install only from trusted sources.
Let’s first add the relevant GPG key.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Note that if you’re not using 20.04, you can find the relevant repository from the R Project Ubuntu list, named for each release. Ubuntu 20.04 is referred to as Focal Fossa, and the most recent version of R is 4.0.0, hence the naming convention of the repository below — focal-cran40.
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
Now, we’ll need to run update after this in order to include package manifests from the new repository.
sudo apt update
At this point, we’re ready to install R with the following command.
sudo apt install r-base
If prompted to confirm installation, press y to continue.
Finally get into R shell-
sudo -i R
This confirms that we’ve successfully installed R and entered its interactive shell.

Unable to install latest R version on Ubuntu 18.04 linux

I want to be able to install the latest stable R release for Ubuntu 18.04, I had the ubuntu version installed and so I removed it and then followed several guides like in this link.
No matter what I do I get the following output when I issue a sudo apt-get install r-base:
sudo apt 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.6.1-3disco) but it is not going to be installed
Depends: r-recommended (= 3.6.1-3disco) 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.
What's wrong?

How to install R on ubuntu 16.10 via the terminal?

I'm trying to install R from the terminal following this site:
https://www.r-bloggers.com/how-to-install-r-on-linux-ubuntu-16-04-xenial-xerus/
When I execute sudo apt-get install r-base, I get the following error:
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.3.2-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.3.2-1xenial0) 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.
Add the two others to the command, and see the errors it generates, ie do
sudo apt-get install r-base r-base-core r-recommended
You likely you have something installed which conflicts. Many (and I mean thousands) of us run these packages just fine.
You can also consider the r-sig-debian mailing list.

upgrade r and rstudio on ubuntu 12.10 server using terminal

I have updated the sources.list file in /etc/apt with the link
deb https://cran.stat.nus.edu.sg/bin/linux/ubuntu precise/
I have changed precise with quantal, trusty also. I am staying in singapore so used the link from singapore. After
apt-get update
when I run
sudo apt-get install r-base
command i get the following 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-base : Depends: r-base-core (>= 3.2.2-1precise0) but it is not going to be installed Depends: r-recommended (= 3.2.2-1precise0) 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.
Why Precise aka 12.10? That is neither the current LTS (14.04) nor the previous one (12.04).
As such, it is supported neither by Ubuntu (AFAIK) nor the Michael who (as a volunteer) looks after the "ports" of my Debian packages to Ubuntu.
I generally stay current, so my machines are currently all 15.04 with some 15.10. I recommend you do the same.
As for RStudio, it is still not apt-get'able so that will always be a simple download (though you can script that).

Installing R in ubuntu

I am trying to install R in ubuntu, but faced the following error:
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.0.0-2lucid) but it is not going to be installed
Depends: r-recommended (= 3.0.0-2lucid) 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.
Before doing this, I also added this line to /etc/apt/sources.list
# added from cran.cnr.berkley.edu for R
deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu lucid/
But when I tried to update, I received an authentication error:
...
Reading package lists... Done
W: GPG error: http://cran.cnr.berkeley.edu lucid/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
Any idea how to solve this issue?
I also did the instructions for SECURE APT, but still I get the following dependency error:
The following packages have unmet dependencies:
r-base-dev : Depends: r-base-core (>= 3.0.1-3lucid) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
But then I used a different mirror (by changing /etc/apt/sources.list) it worked:
deb http://cran.mtu.edu/bin/linux/ubuntu precise/

Resources