본문 바로가기

Linux/CentOS5

yum update시 No more mirrors to try 문제해결 centOS에서 패키지 업그레이드를 위해 yum update -y 라고 했을때 아래와 같은 오류 메시지가 나오는 경우가 있다 No more mirrors to try 특정 패키지의 설치에 실패하고 나머지 패키지들도 설치가 안되는 현상이 지속된다 보통은 #yum clean all 또는 #yum repolist 와 같은 명령어로 캐시를 지우고 다시 하면 된다고 알려져있지만 안되는 경우도 있다 일단 급하게는 yum update --exclude=geoipupdate*,popt* 와 같이 문제가 되는 패키지만 제외하고 업데이트하면 당장 설치가 진행된다. 하지만 이 경우 나중에 다시 yum update 를 했을때 똑같은 패키지 명에서 막혀 문제가 지속된다. 이런 경우 특정 패키지가 특정 repo 저장소에서만 다른.. 2023. 7. 6.
ModSecurity: StatusEngine call failed 문제 임시해결 2022/08/18 10:15:17 [notice] 19676#0: ModSecurity for nginx (STABLE)/2.9.1 (http://www.modsecurity.org/) configured. 2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: APR compiled version="1.4.8"; loaded version="1.4.8" 2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: PCRE compiled version="8.32 "; loaded version="8.32 2012-11-30" 2022/08/18 10:15:17 [notice] 19676#0: ModSecurity: LIBXML comp.. 2022. 8. 18.
CentOS7 / nginx / mod_security / 컴파일 설치 mod_security 파일을 다운로드 받는다 $ wget https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gz 압축을 해제한다 $ tar -zxvf modsecurity-2.9.1.tar.gz 해당 경로로 이동한다 $ cd modsecurity-2.9.1 $ ./configure --enable-standalone-module $ make nginx 다운로드 받기 (22-08-18일 기준으로 이것보다 바로 위버전은 컴파일시 에러 발생 - stable 버전 나와야 할듯) ㄴ https://nginx.org/en/download.html $ wget https://nginx.org/download/nginx-1.22.0.tar.gz $ ta.. 2022. 8. 18.
yum(dnf) update 시 'Cannot download All mirrors were tried' 패키지 업데이트시 특정 모듈에서 다운로드가 안되면서 Cannot download All mirrors were tried 라는 메시지가 포함된 에러가 나올때가 있다 또한 커스텀 repo 설정이 안되는 경우도 있는데 이때 이렇게 해결했다 $ yum remove epel-release -y $ yum update 오랜만에 yum update (dnf update) 를 실행할시 업데이트가 안되는 문제가 발생할 수 있는데 epel-release repo 를 위 명령어로 삭제하고 다시 yum update 를 치니까 정상적으로 다운로드가 됨 2022. 7. 23.
centOS 8 에서 repo 사용시 'AppStream' 에러해결 Error: Failed to download metadata for repo 'AppStream' yum update 또는 dnf update 사용시 위와 같은 에러가 발생한다 [root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* [root@localhost yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* 레포 경로로 들어가 위와 같은 형태로 레포를 교체해주면.. 2022. 7. 23.