This is the 8th day of my participation in the August More Text Challenge. For details, see:August is more challenging

Hi, I’m Lex the Lex who likes to bully Superman

Areas of expertise: Python development, network security penetration, Windows domain control Exchange architecture

Today’s focus: Share an open source project that converts WiFi information (ID+ password) into QR codes

Here’s what happened

Recently the operation and maintenance group came to a 211 bachelor’s degree just graduated little sister.

New to the job, proactive

After giving her an overview of the business and server architecture,

Gave her a test server she hadn’t used in a long time so she could familiarize herself with it

Dare not to give formal clothes, because after all, just come here, do not know her what level

Just in case, learn some commands from the Internet

Go ahead and execute ~ emmm

After a while, he came to me and said the server was not working

How to do. I…

Welcome to wechat official account: Hacklex focus on security technology, focus on programming development ~~~

Check the problem for the little sister

System version

First look at her server and system version

It’s the classic CentOS

Last login: Wed Mar  3 14:32:29 2021 from 192.168.154.1
[root@mail ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)
Copy the code

See the error

I can’t use yum. I can’t use any of the downloads and installations. You can use yum to install LRZSZ.

[root@mail ~]# yum install LRZSZ # Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. To address this issue please refer to the below wiki articleCopy the code

Problem analysis

But after a look, this error should be a network problem or a problem with the yum source.

I visit the Ali cloud yum source link, copy out, open directly on the page to try

????? Really cannot visit, did Ali cloud hang up???

In a face of meng in front of the little sister, doubt the world.

I just remembered something from last year

Stop maintenance detailed schedule

CentoS 6 Stop maintenance Update Date November 30, 2020 CentoS 7 stop maintenance Update date June 30, 2024 CentoS 8 stop maintenance update date May 31, 2029Copy the code

So since the end of November, the classic Cent0S6 has officially been out of maintenance,

In fact, maintenance at the system level does not affect the operation.

Most importantly, the system’s yum source is no longer available,

Ali cloud yum source, netease yum source, Tsinghua yum source, of course, including the official YUM source are not used

http://mirrors.aliyun.com/centos/6/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned ERROR: 404 Not Found" Try another image.Copy the code

Problem solving

Most of us beginners, as well as some operations and maintenance personnel, in the process of learning Linux, testing, operation and maintenance, or will need to use CentOS6 this classic system.

So what to do?

1. Use the local mirror source

2. Network mirroring source

Most network image source has stopped maintenance, after the blogger search, finally found a temporary network can also use yum source.

Address: vault.centos.org/6.9/

The configuration is simple. Delete everything from centos-base. repo and add the following.

[base] name = CentOS - 6 failovermethod = priority baseurl=https://vault.centos.org/6.9/os/x86_64/ gpgcheck = 0Copy the code

After the replacement is complete, run the following commands:

yum clean all

yum makecache
Copy the code

To the little sister, changed the yum source, can be used normally.

The way my sister looks at me is different