"xz compression not available" after installing epel-release on centos7 - centos7

As soon as I do a successful yum install epel-release (epel-release-7-6 or epel-release-7-8) on a fresh Centos7 installation then any subsequent yum update or yum install end with the error message xz compression not available. I tried reinstalling a few times and I get the same problem. This is all happening in a chroot but I don t think it s relevant.
Please help :)

Installing pyliblzma before epel-release solves the problem for me. Remove epel-release if it already installed.
yum remove -y epel-release
yum install -y pyliblzma
yum install -y epel-release

Related

Uninstalling a package installed with amazon-linux-extras

How do you UNinstall a package installed with amazon-linux-extras??
sudo amazon-linux-extras install postgresql10
Installs it. Now... how do I remove it?
sudo amazon-linux-extras uninstall postgresql10
Nope.
sudo amazon-linux-extras remove postgresql10
Nope.
yum remove postgresql10
Nope.
WTH?
sudo yum remove postgresql
In order to confirm we are removing what we did install with amazon-linux-extras, we can check the Repository after we run the sudo yum remove command:

How to install unavailable python packages in aws ec2

I gonna install pyaudio and sounddevice packages via requirements.txt in EC2.
But it says raise OSError('PortAudio library not found')
So I tried to install libasound-dev for sounddevice...
Yum install libasound-dev
But it also said :
No package libasound-dev available
How should I do? I am in AWS EC2.
libasound-dev is for Ubuntu. For Amazon Linux 2 it should be:
sudo yum install alsa-lib-devel
For portaudio:
sudo amazon-linux-extras install epel -y
sudo yum install -y portaudio-devel portaudio
If you are in Window and gonna use pyaudio, you would use like this:
pip install pipwin
pipwin install pyaudio
This works well on Window.

How to install python-mysqldb for Python 2.7 in Ubuntu 20.04 (Focal Fossa)?

I've tried "apt-get install python-mysqldb" which results in:
root#ps1svr:~# apt-get install python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-mysqldb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-mysqldb' has no installation candidate
Note: "apt-get install python3-mysqldb" works, however I have a lot of code written for Python 2.x which no longer runs, and this is causing enough problems that I'm probably going to have to reinstall Ubuntu 18.04
Also you can just add the Ubuntu 18.04 repositoery to install the python-mysqldb package:
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu bionic main'
sudo apt update
sudo apt install -y python-mysqldb
This will download, build and install it for all users, using pip
sudo apt install libmysqlclient-dev python2.7-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo python2.7 get-pip.py
sudo wget https://raw.githubusercontent.com/paulfitz/mysql-connector-c/master/include/my_config.h -O /usr/include/mysql/my_config.h
sudo pip2 install MySQL-python
Answer found from MySQLdb install error - _mysql.c:44:23: error: my_config.h: No such file or directory

How to access the review board site from other system via browser?

I have set-up all prerequisites and all the installation required for local reviewboard along with rb-site, server is apache httpd with mod_wsi. Can any one help me on how to access the review bpoard which I have installed locally from different systems via web browser.
Below are the steps detailed:
yum -y install zlib zlib-devel
yum -y install openssl-devel
yum -y install memcached
yum -y install python-devel
yum -y install python-setuptools
yum -y install patch
easy_install mysql-python
yum -y install git-core
easy_install ReviewBoard
rb-site install /var/www/ReviewBoard
While Installing rb-site :
Domain name localhost:80
Root Path : reviews
And other configurations are default.
All steps are executed successfully.
But I do not know how can I access the review board over browser.
Please help me?

Unable to install boost ubuntu 13.10

I'm trying to install boost onto my 32 bit Ubuntu 13.10 system. However, when I run:
sudo apt-get install libboost-all-dev
I get:
The following packages have unmet dependencies.
libboost-all-dev : Depends: libboost-graph-parallel-dev but it is not going to be installed
Depends: libboost-mpi-dev but it is not going to be installed
Depends: libboost-mpi-python-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
To try to get around this, I've done:
sudo apt-get remove --purge libboost-all-dev
But it always comes back with
Package 'libboost-all-dev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
binutils-dev cmake cmake-data comerr-dev expect grive krb5-multidev
libboost-filesystem-dev libboost-program-options-dev libboost-test-dev
libcurl4-openssl-dev libexpat1-dev libgcrypt11-dev libgnutls-dev
libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev libjson-c-dev
libjson0-dev libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkrb5-dev
libldap2-dev libp11-kit-dev librtmp-dev libssl-dev libssl-doc libtasn1-3-dev
libyajl-dev
With nothing changed.
Any ideas?
At first remove the broken packages with,
$>sudo apt-get install -f
$>sudo dpkg --configure -a
$>sudo apt-get --fix-broken install
$>sudo apt-get --fix-missing install
$>sudo apt-get clean
$>sudo apt-get autoclean
$>sudo apt-get autoremove
Then upgrade/update the package base,
$>sudo apt-get update
$>sudo apt-get upgrade
Then,
$>sudo apt-get install libboost-all-dev
If the error persists still, then
$> sudo apt-get install <here goes the dependent pkg, in your case here, 'libboost-graph-parallel-dev' etc.>
This should work probably fine. If still you get an error of broken packages, you have to check for the
/var/lib/dpkg/status
file & check for the package which is broken, then remove it.
For more details, check out here.
None of that really worked.
What did work was installing symantec package manager and manually going through and removing the corrupted packages.
Once all the broken packages were removed, installation worked as expected.
Thanks for your help though.
I had the same problem and I found the answer for my case.
Just run followings
$ sudo apt-get remove libboost1.55-all-dev
$ sudo apt-get autoremove