Cannot install Mariadb on Linux Ubuntu 20.04 - mariadb

I would like to install Mariadb on Ubuntu 20.04. I followed instructions on download page.
Here is what I get.
joe#joeslinux:~$ curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
[sudo] password for joe:
[info] Repository file successfully written to /etc/apt/sources.list.d/mariadb.list
[info] Adding trusted package signing keys...
[info] Running apt-get update...
E: The repository 'http://ppa.launchpad.net/zanchey/asciinema/ubuntu focal Release' does not have a Release file.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://ocean.surfshark.com/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG 1DB7590E83C8F643 Surfshark package maintainer <admin#surfshark.com>
W: GPG error: http://dl.google.com/linux/earth/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository 'http://dl.google.com/linux/earth/deb stable Release' is not signed.
[error] Failed to add trusted package signing keys
joe#joeslinux:~$
I notice it's balking at something to do with Surfshark. Yes, I have surfshark vpn running.
Please advise.

I'm not sure if problem with Mariadb installation is related with surfshark (I don't check MariaDB installation script, but probably it's fail when apt fail).
But,
GPG keys for surfshark repo was changed. Go to official surfshark website, and download new deb package. This package install repo and public keys, not surfshark itself.

Related

RStudio Server (community) can't find libR.so even though it is in path

Note: I have filed this as an issue, but I'm not sure if it is really a bug or just something I need to resolve about my system configuration.
This seems to be a library that causes many people trouble with RStudio and RStudio Server. Often people can fix the problem by reinstalling the core R libraries with apt or manually copying or linking the libR.so file to a place where RStudio finds it.
In my case, I'm using a Conda instance for my R executable.
My instance was working and stopped after upgrading my ubuntu 22.04 VM. I tried some things to fix the problem but have not succeeded.
System details
RStudio Edition : Server
RStudio Version : 2022.07.2+576 (Spotted Wakerobin) for Ubuntu Bionic
OS Version : Ubuntu 22.04.1 LTS
R Version : 4.1.3 (2022-03-10) -- "One Push-Up"
Describe the problem in detail
I have a GCP VM running ubuntu 22.04 which I use for RSS.
I did a sudo apt update && sudo apt dist-upgrade and a restart. RSS stopped working. I ran sudo rstudio-server verify-installation and received
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory
I decided to reinstall RSS using:
wget https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2022.07.2-576-amd64.deb
sudo gdebi rstudio-server-2022.07.2-576-amd64.deb
and did not receive any errors during installation. However I received the same error as above with verify-installation. I then tried doing conda update --all -y. This also did not fix the problem.
Here is some useful information:
(base) balter#rstudio:~$ which R
/home/balter/conda/bin/R
(base) balter#rstudio:~$ head -n3 /etc/rstudio/rserver.conf
# Server Configuration File
rsession-which-r=/home/balter/conda/bin/R
(base) balter#rstudio:~$ find . -name "libR.so"
./conda/lib/R/lib/libR.so
./conda/pkgs/r-base-4.1.3-h7880091_3/lib/R/lib/libR.so
(base) balter#rstudio:~$ sudo rstudio-server verify-installation
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory

EPEL & Codeready-builder AWS EC2 RHEL8

I am running an EC2 instance with a RHEL8 AMI.
I am looking to install R on the instance and I believe I need the EPEL package and to enable the codeready builder through the following two commands
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
more info at (https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/)
I can download epel (first line) fine but when I run the second line I get the following:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: No matching repo to modify: rhui-codeready-builder-for-rhel-8-rhui-rpms.
Also when I try to run the following, I get the following:
This system has no repositories available through subscriptions.
and for completeness, this is the error when i try to install R
$sudo yum install -y R
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:52:36 ago on Mon 04 May 2020 01:17:58 AM UTC.
Error:
Problem: package R-3.6.3-1.el8.x86_64 requires R-devel = 3.6.3-1.el8, but none of the providers can be installed
- package R-devel-3.6.3-1.el8.x86_64 requires R-core-devel = 3.6.3-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides openblas-devel needed by R-core-devel-3.6.3-1.el8.x86_64
- nothing provides texinfo-tex needed by R-core-devel-3.6.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Does anyone have any ideas or has solved this same problem?
I worked this out just after writing it...
For anyones reference, it seems AWS had their command written wrongly.
Still download epel package as shown above
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
and instead of the following from AWS website
sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms
You can use
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
Then go ahead with sudo yum install -y R

I meet some troubles when I Updating R on Ubuntu

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.

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 OpenSSL on CentOS vagrant box gives 404 error

I'm running a CentOS 6 vagrant virtual machine under VMWare Fusion. The machine is working well. I need to test LDAP over SSL which requires me to install OpenSSL, so I ran sudo yum install openssl and I get the following errors:
http://mirror5.layerjet.com/remi/enterprise/6/remi/x86_64/repodata/repomd.xml: [
Errno 14] PYCURL ERROR 7 - "Failed to connect to 2a01:4f8:11a:b1f::1: Network is
unreachable"
Trying other mirror.
http://apt.sw.be/redhat/el6/en/x86_64/extras/repodata/repomd.xml: [Errno 14] PYC
URL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repoforg
eextras. Please verify its path and try again
Googling this error led me to try and clear the metadata cache with sudo yum clean metadata and sudo yum clean all, both of which evidently work but when I try and install OpenSSL I get the same errors.

Resources