
CentOs 6.3 사전 생성 템플릿을 사용하여 OpenVZ 컨테이너에 git을 설치하려고 합니다. 명령줄을 시도할 때
yum install git
다음 메시지를 받았습니다.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: www.cubiculestudio.com
* epel: mirror.csclub.uwaterloo.ca
* extras: www.cubiculestudio.com
* rpmforge: mirror.us.leaseweb.net
* updates: www.cubiculestudio.com
Setting up Install Process
No package git available.
Error: Nothing to do
내가 이해하는 대로 git 패키지는 centos6 기본 저장소에 있어야 합니다. http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/git-1.7.1-2.el6_0.1.x86_64.rpm.html
하지만 찾지 못하고 EPEL 및 RPMForge 저장소도 활성화했지만 여전히 git 패키지를 찾을 수 없습니다.
yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: www.cubiculestudio.com
* epel: mirror.csclub.uwaterloo.ca
* extras: www.cubiculestudio.com
* rpmforge: mirror.us.leaseweb.net
* updates: www.cubiculestudio.com
repo id repo name status
base CentOS-6 - Base 4,776
epel Extra Packages for Enterprise Linux 6 - i386 6,523
extras CentOS-6 - Extras 4
rpmforge RHEL 6 - RPMforge.net - dag 4,501
updates CentOS-6 - Updates 596
vz-base vz-base 3
vz-updates vz-updates 0
repolist: 16,403
가장 이상한 점은 내 OpenVZ 서버가 CentOs 6.3에서 실행되고 있고 아무런 문제 없이 git을 설치할 수 있다는 것입니다.
패키지를 찾을 수 없는 이유를 이해하도록 도와주실 수 있나요?
미리 감사드립니다.
답변1
VPS 공급자가 기본 CentOS 저장소를 비활성화하고 기본 시스템 패키지에 대한 액세스를 실제로 제공하지 않는 저장소로 대체했습니다. 이는 일반적인 OpenVZ 구성 문제인 것 같습니다.
나는 다음과 같은 방법으로 문제를 해결했습니다.
/etc/yum.repos.d
VZ 저장소를 참조하는 모든 파일을 삭제합니다 .최신
centos-release
RPM의 깨끗한 복사본을 가져와 기존 RPM 위에 설치합니다.rpm -Uvh --replacefiles --replacepkgs centos-release-6*.rpm
장기적인 해결책은 아마도 OpenVZ 사용을 중단하는 것입니다. 적절한 구성을 실행하는 단일 공개 OpenVZ 공급자를 아직 찾지 못했습니다.