Install later version of docker-engine stuck on Travis build - docker

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.

Related

docker version number 18.09

See link on explanation of release naming
https://docs.docker.com/install/
My understanding is its using YY.mm. e.g. 18.09.0
So I go to install for ubuntu following steps here
https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
where in 3b it gives an example of installing a specific version:
docker-ce=18.03.0~ce-0~ubuntu
sudo apt-get install docker-ce=<VERSION>`
So I go ahead and do this:
sudo apt-get install docker-ce=18.09.0~ce-0~ubuntu
and get
Version '18.09.0~ce-0~ubuntu' for 'docker-ce' was not found
So checking cache I have to install
5:18.09.0~3-0~ubuntu-bionic
What is the 5 about?
It's the epoch. Think of it as a versioning for the version number e.g. if the package decides to change versioning from date-based to semver style, they can begin prefixing version numbers with 1:1.0.1.
Here's the official policy manual, some examples are given here.
Have to specify the 5.
Running the following works
sudo apt-get install docker-ce=5:18.09.0~3-0~ubuntu-bionic
Docker version then shows up as 18.09

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

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?

Updating Erlang freeBSD port to newer minor version

I have Erlang OTP version 17 on my freeBSD system. Now I want to update to the newest release of the OTP 17 branch. I don't want to upgrade to OTP 18 (I only need the latest release of OTP 17 with all patches)
Do I achieve this by entering the following command:
cd /usr/ports/lang/erlang-runtime17/ && make install clean
I'm not very experienced with freeBSD and afraid to destroy something on my system.
If you have installed Erlang from the packages run pkg install erlang-runtime17.
To compile it from ports run command you mentioned, just make sure you have to to date ports tree.
Finally, to compile and update Erlang and all its dependencies, first install portmaster utility and then run portmaster erlang-runtime.
I know that this is old qustion.
but, i strugled with the same, and have another solution: using portdowngrade.
With this tool you may downgrade any software in ports, without spoilong /usr/ports.
And in my case, I needed some tools from /usr/ports/lang/erlang, which are not included into runtime, so i had to find how to install old one.
And this is very easy:
cd /usr/ports/ports-mgmt/portdowngrade
make && make install clean
portdowngrade lang/erlang r420247
cd /usr/ports/ports-mgmt/portdowngrade/erlang
make config && make && make install clean
here I show show how to downgrade to revision "r420247". And this is last for OTP18.
If you run portdowngrade without any options, it will ask for information, so you may find the latest for OTP17.

php55w not installed, CentOS 6.5

I am installing php55 based on the instructions here: https://webtatic.com/packages/php55/
after I run the "yum install php55w", it says NO package,
then I tried this command to list: "yum --enablerepo=webtatic list | grep php", I got this list which does not make any sense:
cups-php.x86_64 1:1.4.2-52.el6_5.2 updates
eclipse-phpeclipse.noarch 1.2.1-6.el6 epel
graphviz-php.x86_64 2.26.0-10.el6 base
nntpgrab-php.x86_64 0.7.2-1.el6 epel
remctl-php.x86_64 3.8-2.el6 epel
rrdtool-php.x86_64 1.3.8-6.el6 base
sphinx-php.x86_64 2.0.8-1.el6 epel
uuid-php.x86_64 1.6.1-10.el6 base
can any one help?
this not not work for me either:
php55w-mysql not listed in webtatic repo
The guide you linked to has the repo from el5, which would be CentOS 5. If you install the webtatic repo for CentOS 6 instead, it will work, i.e.
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
and then install PHP 5.5 and any other modules, e.g.
yum install php55w php55w-{ldap,intl,xml,gd,pdo,pgsql}

Javac not installed with openjdk-6-jdk

I have been trying some different java compilers over the weekend and decided to stick with javac this morning. I then proceeded to clean up the mess that was caused by my testing and removed every last trace of java and did a fresh 'apt-get install openjdk-6-jdk' after autoremove and autoclean.
The following weirdness was then encountered:
tarskin#5-PARA-11-0120:~$ javac
The program 'javac' can be found in the following packages:
* openjdk-6-jdk
* ecj
* gcj-4.4-jdk
* gcj-4.6-jdk
* gcj-4.5-jdk
* openjdk-7-jdk
Try: sudo apt-get install <selected package>
I had allready installed openjdk but i tried it anyhow yielding:
tarskin#5-PARA-11-0120:~$ sudo apt-get install openjdk-6-jdk
[sudo] password for tarskin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-6-jdk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tarskin#5-PARA-11-0120:~$
I know i must be doing something stupid but I have no idea what, if anyone else could give a pointer in the right direction that would be very much appreciated...
Cheers
EDIT: Found some other weird aspects about the 'new' instance of my java distro, it doesn't seem to recognise for example 'Pattern' or 'Matcher' that should be coming from the regex import shrugs.
TL;DR: install java-1.6.0-openjdk-devel
I had a similar issue on Fedora, but used rpm -q -l to list the contents of the (pre-installed) java-1.6.0-openjdk package, and discovered that it doesn't include javac. It is in fact only a JRE, not a JDK, as implied by the installation instructions on http://openjdk.java.net/install/ . To get javac, I installed java-1.6.0-openjdk-devel . Not exactly what I expected, because the usual packaging conventions would indicate that is the package for doing openjdk development (i.e., working on the JVM), not for developing programs with it.
Basically, openjdk's package naming doesn't follow either standard Java conventions (would require calling it a JRE somewhere), or standard Linux packaging conventions (using -devel indicates it is used for developing the package w/o -devel itself).
As per http://openjdk.java.net/install/, to install the OpenJDK-6 JRE only:
$ sudo apt-get install openjdk-6-jre
To install the full JDK:
$ sudo apt-get install openjdk-6-jdk
Check /etc/alternatives and /usr/bin. One or both will contain links to old Java versions which you had installed. When those links are broken, you can get the error message above.
To update the links after installing a new version of Java, try update-alternatives
First to check if javac is installed try to look for that file:
1. locate javac
2. or find / -name javac
And also you can check at this website with instrucions on how to install java on Ubuntu (i suppose you are on ubuntu):
http://openjdk.java.net/install/
You can also check:
http://packages.ubuntu.com/hardy/i386/openjdk-6-jdk/filelist for the files installed by the pacakge, and you can notice that javac should be installed.
Maybe you also need to run:
Open the terminal and run this command to install OpenJDK 7.0 on Ubuntu Oneiric:
sudo update-alternatives --config java

Resources