mysqlclient is not installing in python3.5 centos 7 - python-3.5

mysqlclient is not installing in centos 7 and I attached the image where errors are shown so that you take idea from that. Your help is very appreciable for me.
Edit1 : #Jose
I tried your steps but at the very first step I get the following error:
Error downloading packages:
mysql-community-devel-5.6.36-2.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
mysql-community-libs-5.6.36-2.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
mysql-community-common-5.6.36-2.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
Please tell me why?

ok, let's check possible issues step by step. The problem could be related to connectivity issues, broken packages, a broken rpm repository, or a problem with the mirrors used to download packages. Here are the things to look for:
So first thing we need to check is whether the internet connection is working fine. I'm not convinced this is the real issue, since based your comments it seems you were actually able to other packages, but you never know. Try pinging the DNS server for Google (ping 8.8.8.8) or curling the google website (curl www.google.com). If those things work, move on to the next step, otherwise we need to troubleshoot network service configuration.
If the internet connection is working fine, we need to investigate broken packages:
Run the following commands to clear up your yum cache: sudo yum clean all, sudo yum clean headers, and sudo yum-complete-transaction, then try to install your package again. If still doesn't work, move on to the next step.
Can yum tell us about problem with certain packages? Run package-cleanup --problems. If it shows problems, please update your question with the report. Otherwise move on the the next step.
It's possible that some installation you made in the past made things go wrong. Do yum history and see if you can spot the step where everything went wrong, and use the ID to remove that step by running sudo yum history undo <ID>. Try installing your package now. If that doesn't work, move on to the next step.
Try reinstalling all packages: sudo yum reinstall \*. If that works, try to install your package now, otherwise paste the error in your question.
If all of your packages are fine, we need to investigate issues with rpm.
Try rebuilding your rpm database: sudo rpm --rebuilddb and then try to install again your package.
Please let me know if none of this works, and I'll update the answer.

Related

"Package does not match intended download" error when running yum update

I've run a yum update and get the below error:
Downloading packages:
scx-1.6.4-7.universal.x64.rpm FAILED
https://packages.microsoft.com/rhel/7/prod/scx-1.6.4-7.universal.x64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=packages-microsoft-com-prod clean metadata
Trying other mirror.
Error downloading packages:
scx-1.6.4-7.x86_64: [Errno 256] No more mirrors to try.
I tried running the suggested command but it made no difference when I ran yum update again afterwards.
I've just encountered the same issue. Looks like Microsoft goofed something on that repo, I'm sure they'll eventually fix it. It happens from time to time on various repos.
To do the rest of the updates while excluding the Microsoft ones, try this:
yum clean all
yum clean metadata
yum makecache
yum update --disablerepo=packages-microsoft-com-prod
Note: The first 3 lines might not be necessary in your situation, however it does give a clean start point if you haven't done updates for a while.

Installing Docker on an isolated (no internet) Centos 7 box?

I have an isolated box (no outside internet connection) that I need to install docker on. I downloaded the docker-engine-1.12.3-1.el7.centos.x86_64.rpm file from the Docker archives, and then copied it to the isolated box.
I then ran:
sudo yum localinstall --nogpgcheck docker-engine-1.12.3-1.el7.centos.x86_64.rpm
I get a failed install and this error multiple times:
https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to yum.dockerproject.org:443; Connection refused"
Yum gives me the suggestion to the disable the repo, and that does not work either.
How do I correctly install Docker engine on an isolated CentOS 7 box?
Might be worth running rpm -q -R -p docker-engine-1.12.3-1.el7.centos.x86_64.rpm to find out what else you need to download.
– Mark Plotnick
I ran that and I have quite a list of things to download. … That fixed it. – user1566200

How to resolve Unmet dependencies issue in Ubuntu 14.04

Recently, I tried to download the Google Chrome in Ubuntu. But I couldn't installed it correctly. Now I am getting a red minus sign in upper right corner, stating that I have unmet dependencies. I tried to run the following command:
apt-get install -f
I got this output:
E: Could not open lock file /var/lib/dpkg/lock - -open(13: Permission denied)
E:Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Please help. I am new to Ubuntu. so please explain what exactly I did wrong initially, and what is this all about?
The error you are getting is common for one of two reasons:
You didn't run the command as root (should be sudo apt-get install -f google-chrome)
You have an updater open somewhere else (hence the lock).
I would try the command above with all other programs closed if that doesn't work see this post on the Ubuntu SO (which is where you should post your Ubuntu questions from now on, BTW) on how to install Google Chrome.
Good luck!

Debian wheezy - lost gnome during install

Upgraded dist, no problem, although lost xbmc, found documentation saying to include additional source for xbmc as install wasn't working.
installed xbmc not realising it's completely replaced/up/down graded dist.
Needless to say I've lost gnome and samba config has been modified. i can fix after i get desktop back, packages are still there but no longer referenced.
when i try an apt-get install gnome i get a lot of message about Dependants and how they're not going to be installed.
any help appreciated.
Try sudo aptitude install gnome-desktop-environment, review solution and do not accept it until you're happy with what's going to be installed/removed.

Disable yum transaction check for file conflict

How do I disable yum transaction check for a file ?
Transaction check error:
file /usr/local/xenco/backend/current from install of xenco-rr-1.9.6-104.x86_64 conflicts with file from package xenco-server-1.9.6-104.x86_64
Replacing files from another RPM package is bad idea in most cases and I strongly advise against what you're trying to do. That said, apply following at your own risk.
Yum does not provide an option to install conflicting files, I think. However, that does not prevent you from installing a RPM package with rpm(1) which does provide an option to override existing files from another package, namely --replacefiles.
So, first get the RPM of the package you want to install on a local filesystem (/usr/local/xenco... makes me suspect that is the case already). Next install the RPM with rpm -i --replacefiles <your_rpm_file>.
This method worked for me, when I faced similar issue
Simply get the existing package with below command
rpm -qa | grep xenco
Remove those conflicting package with
yum remove packageNameFromTheList
what i always do is remove the package that is on the right hand side. In your case it would be -
yum remove xenco-server-1.9.6-104.x86_64
yum remove <> can work with any package error, i have encountered many such transactions errors when working on vm on cloud, i always remove the package that causes conflicts and always has worked for me.
My two cents:
yum erase ${old_package}
yum install ${new_package_with_same_files}
The exclusion of --replacefiles is intentional. Yum is a package manager, let it manage the packages.
(This answer adds a yum-only solution to the accepted answer.)

Resources