How to update SELinux version in CentOS? (Docker install) - docker

I'm trying to install docker-engine-1.13.1 on my CentOS machine following this instruction: https://docs.docker.com/cs-engine/1.13/#install-on-centos-7172--rhel-70717273-yum-based-systems
But I keep getting this error message
So the problem is that my SELinux version is low (3.13.1-23), and I need higher version (3.13.1-60)
I've tried 'yum -y update selinux-policy-targeted' but didn't work.
Can anyone help me update selinux?
Or is there any other way I can install docker properly?

Related

Trying to download docker on my raspberry pi 4

I'm trying to download docker on my raspberry pi 4 but I keep getting the same error.
The error message I get is:
W: https://deb.nodesource.com/node_14.x/dists/buster/InRelease: No system certificates available. Try installing ca-certificates.
W: https://deb.nodesource.com/node_14.x/dists/buster/Release: No system certificates available. Try installing ca-certificates.
E: The repository 'https://deb.nodesource.com/node_14.x buster Release' no longer has a Release file.
I don't understand this because I've re-installed ca-certificate but that still doesn't fix it.
(Note: I don't know if this means anything but I also get the same error when I run sudo apt update)
Okay I fixed the problem by simple running sudo apt-get install --reinstall ca-certificates

GDAL: library not loasded libhdf5.100.dylib

I would like to run a GMT file wrote in tcsh environment. When I'm running it, I have the following error message :
dyld: Library not loaded: /opt/local/lib/libhdf5.100.dylib
Referenced from: /opt/local/lib/gmt4/bin/gmtset
Reason: image not found
I went to /opt/local/lib path, and indeed, libhdf5.103.dylib is installing, and not libhdf5.100.dylib. I did not find a way to reinstall libhdf5.100.dylib using port or brew.
The later doesn't work :
sudo port install libhdf5-100
sudo port install libhdf5.100
sudo port install libhdf5.100.dylib
I already try:
brew reinstall osgeo-gdal --build-from-source
But, this doesn't work. I have the following issue:
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
qt: macOS Sierra or newer is required.
Error: An unsatisfied requirement failed this build.
Do you have any ideas?
Thank you.
Looks like gdal needs to be rebuilt with the current hdf5. You can try:
sudo port uninstall gdal && sudo port install -s gdal
This will build gdal from source and link against the installed HDF5 library.

I can't run the "perf" command. Perf is a linux profiler for stack traces

Trying to use the perf profiler. I've installed linux generic tools, but no luck. Here is the message I'm getting:
r#r-K55A:~$ perf
WARNING: perf not found for kernel 3.16.0-45
You may need to install the following packages for this specific kernel:
linux-tools-3.16.0-45-generic
linux-cloud-tools-3.16.0-45-generic
You may also want to install one of the following packages to keep up to date:
linux-tools-generic
linux-cloud-tools-generic
I've tried to install the above packages, but I get the following error:
Unable to locate package linux-tools-3.16.0-45-generic
E: Couldn't find any package by regex 'linux-tools-3.16.0-45-generic'
You can safely use this snippet:
sudo apt install linux-tools-common linux-tools-generic linux-tools-$(uname -r)
I could never get it working. Updated my Kernal to newest stable version and tried to download the above packages from sudo apt-get install. I finally found the packages manually online, and it's working fine.

Install later version of docker-engine stuck on Travis build

Because I need a newer version of docker-compose, I also need a newer version of docker-engine. I tried:
before_install:
- sudo apt-get install -qq docker-engine
However, the build gets stuck at a prompt:
Configuration file '/etc/default/docker'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** docker (Y/I/N/O/D/Z) [default=N] ?
How do I make it keep the old version without blocking? (Or should I accept the new version? I'm guessing Travis CI is doing some stuff to it...)
I tried sudo apt-get remove -qq docker-engine first, which didn't seem to do anything.
Make sure you're using the right Travis CI environment, the Trusty beta environment.
Then see the Travis docs for updating your Docker Compose here.

Xvfb not found on your system

I try to use Xvfb to make the headless code run. However, I encountered the problem that "Xvfb not found on your system" when I tried to run my ruby code. Then I tried to install Xvfb using
sudo apt-get install xvfb
However, "apt-get: command not found" is showed. Thus, I have not idea what should be installed to avoid the original Xvfb error. Any helps? Thank you.
Old question, but found it will trying to find the apt-get commands. The command not found is likely because you are not on a debian system. So you should probably be using yum.
Some potentially useful links:
https://serverfault.com/questions/344793/install-xvfb-via-yum-yum-repository-for-xvfb
How to install Xvfb (X virtual framebuffer) on Redhat 6.5?
In CentOS 7, the following command will install it:
$ sudo yum install xorg-x11-server-Xvfb

Resources