[Solution] Linux downloads mysql, cannot find dependencies, and a lot of "requires" certain package errors

Project scenario:

I installed mysql on linux, it is normal to use yum to download and install the package, but once the following sentence is executed, an error will be reported crazily, the dependencies cannot be found, and various packages are needed .

yum -y install mysql-community-server

According to the popular tutorial: https://blog.csdn.net/Aykl119/article/details/122223582


Problem Description

In order to solve the above problems, I made many attempts.

1. Use yum to download the missing dependencies .

Here I was misled by the tutorial I learned: still big data in Silicon Valley . It says that if the error of missing dependencies is reported, it is likely that when you downloaded linux, you chose the minimized kernel, so there are many things that are missing. Then I followed this idea to check blogs. The result is rather miserable:

  • yum install <a missing dependency> always reports an error that the package cannot be found, and then I continue to investigate, it may be a problem with the source of yum, so I change the source for yum, but there is no yum configuration file in my configuration file , This makes me very strange. In short, I am very desperate to go down this road.
  • yum install spel will tell me that there is no warehouse or something, I don't understand it, and it won't work anyway.

2. After downloading the tar package on the windows system, use xftp to upload it to linux for decompression

After the first road was killed by me, I started思考,可能所需要的依赖在压缩包里面,然后我跟着教程去下载的时候,发现一个问题,我的OS是ubuntu的,我利用yum在线下载的mysql包都是rpm后缀结尾,的,但是我在apache网站上面找到的适合ubuntu的都是deb结尾的,这个时候我就开始有点疑惑了,因为我真的不知道下载哪一个包。


Cause Analysis:

If you read my analysis above carefully, you should be able to guess where the crux of the problem lies.

That's right, as you think, my OS is ubuntu not centOS . So my package manager is not yum at all, but apt-get. I said why I still have to download it when I use yum, and it feels like I asked yum to download any package and it said no, just like a little idiot.

I am convinced, the tutorials given by the teacher and most of the commands on the Internet are for centOS, which is outrageous! ! ! !


solution:

The solution is obvious, just change your search keywords and download the mysql tutorial on ubuntu.

This is the problem that has bothered me for two days... I deleted it, deleted it, and was misled by 555....

Attached is a link that I think is good:

(3 messages) Install Hive3.1.2 tutorial under Ubuntu (with MySQL installation method and installation package)_Z.Q.Feng's Blog-CSDN Blog

Guess you like

Origin blog.csdn.net/Youweretrouble/article/details/131218547