Installing ansible 2.6 or older - apt-get

With 2.6.2, ansible started ignoring config files in world writable dirs, rendering many windows/vagrant setups useless. I try to install Ansible 2.6 or older.
System:
Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-132-generic x86_64)
The propvision.sh states
# Add Ansible Repository & Install Ansible
sudo add-apt-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible && sudo touch /root/ansible_ready
I adapted it to
sudo apt-get install -y ansible=2.6.0 && sudo touch /root/ansible_ready
^^^^^^
but that version was not found. How can I obtain 2.5 or 2.6? I am quite unexperienced with linux and the concept of installing something not by a doubleclick.

For installation of Ansible version 2.6 on Trusty Tahr 14.04 (LTS), proceed with the follow commands:
sudo apt update
sudo apt install -y software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
Add apt source list:
sudo tee -a /etc/apt/sources.list.d/ansible-2.6.list << EOF
deb http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu trusty main
deb-src http://ppa.launchpad.net/ansible/ansible-2.6/ubuntu trusty main
EOF
Update apt and install Ansible:
sudo apt update
sudo apt install -y ansible

Related

winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1)

The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I am using ubuntu-20.04
sudo dpkg --add-architecture i386
sudo wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt update
sudo apt -y install --install-recommends winehq-stable
sudo apt-get install wine-stable-amd64
or
sudo apt-get install wine-stable-i386
sudo apt-get install --install-recommends winehq-stable
Had the same problem on debian 11. Tried the solution proposed here(https://forum.winehq.org/viewtopic.php?t=35417) and it worked for me:
First install wine-stable-amd64 or wine-stable-i386.
Then sudo apt -y install --install-recommends winehq-stable again

How to install MySQL 5.6 in Ubuntu 18.04(VM)

I'm using packer to install MySQL 5.6 on an Ubuntu VM. To install it, I'm using the below script.
#!/bin/bash
sudo add-apt-repository 'deb http://kr.archive.ubuntu.com/ubuntu xenial main' -y
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' -y
sudo apt-get update -y
sudo apt-get install mysql-server-5.6 -y
systemctl restart mysql
However, the installer kept prompting for a password. Is there any way to pass the password in the script since it's installed within a VM? I'm stuck in this situation.
error-screenshot

Unable to install Mysql community server on Debian 10

Hi I am unable to install mysql 8 on my newly installed Debian 10 machine.
Here is what I did:
$ cd /tmp
$ wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
$ sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb
After this ran
$ sudo apt update
$ sudp apt install mysql-server
I am getting the bellow error:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-community-server (= 8.0.18-1debian10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Not sure if dependencies are available in debian 10 repo.
Try your luck with installing the dependencies with
sudo apt update
sudo apt install -f

unable to install libzip4 on ubuntu 19.04

trying to install libzip4 on ubuntu 19.04 for mysql-workbench dependency
Install method:
sudo apt install ./mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
error message:
mysql-workbench-community : Depends: libzip4 (>= 0.10) but it is not installable
apt install list:
sudo apt install libzip
libzip5 libzip-dev libzipios++0v5 libzipios++-dev libzipios++-doc libzip-ocaml libzip-ocaml-dev
Tried installing php-zip with the hopes it would install libzip4 but that was fails!
I am not sure of any other way to solve this issue if anyone could provide guidance that would be amazing!!
As suggested by the name mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb was packaged for Ubuntu 18.04 which has libzip4. You can add the Ubuntu 18.04 package repository to your Ubuntu 19.04 installation like so:
$ echo deb http://archive.ubuntu.com/ubuntu/ bionic universe | sudo tee /etc/apt/sources.list.d/bionic.list
$ sudo apt-get update
And you will then be able to install with:
$ sudo apt install ./mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
snap install mysql-workbench-community

Zabbix upgrade to 4.0.2

Greetings!
I do not know how to upgrade from Zabbix 4.0.1 to Zabbix 4.0.2
What I'm trying to do:
rm -Rf /etc/apt/sources.list.d/zabbix.list
wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-2+stretch_all.deb
dpkg -i zabbix-release_4.0-2+stretch_all.deb
apt-get update
apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
It says that there is no new version. And I'm still on 4.0.1.
Any guess why?
I've got it!
In some reason there was no zabbix.list in /etc/apt/sources.list.d/
What I've did - add next line to /etc/apt/sources.list
deb http://repo.zabbix.com/zabbix/4.0/debian stretch main
after i did apt-get update and apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
That's all!