Azure CentOS 上的 CPanel 安装,gcc 安装失败

Azure CentOS 上的 CPanel 安装,gcc 安装失败

我正在尝试在 Windows Azure 上的 Centos VM 上安装 CPanel。Yum 无法安装 cpanel 安装程序所需的 gcc。

我得到了这个

Error: Package: glibc-2.12-1.80.el6.i686 (base)
2013-02-22 13:08:24  709 (DEBUG):                Requires: glibc-common = 2.12-1.80.el6
2013-02-22 13:08:24  709 (DEBUG):                Installed: glibc-common-2.12-1.80.el6_3.6.x86_64 (@updates)
2013-02-22 13:08:24  709 (DEBUG):                    glibc-common = 2.12-1.80.el6_3.6
2013-02-22 13:08:24  709 (DEBUG):                Available: glibc-common-2.12-1.80.el6.x86_64 (base)
2013-02-22 13:08:24  709 (DEBUG):                    glibc-common = 2.12-1.80.el6

我认为主要问题源于我必须注释掉我的更新存储库,因为它不断出现错误。

Centos 6.3 Azure 更新仓库

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://olcentgbl.trafficmanager.net/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

给出以下恒定错误

# sudo yum update all
Loaded plugins: security
base      | 3.7 kB     00:00
extras    | 3.5 kB     00:00
openlogic | 1.3 kB     00:00
updates   | 3.5 kB     00:00
http://olcentgbl.trafficmanager.net/centos/6/updates/x86_64/repodata/41734c6392fbfa51abb5fb73887b5167c0780eeb485b236bc0eccfd1fc3d6245-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
http://olcentgbl.trafficmanager.net/centos/6/updates/x86_64/repodata/41734c6392fbfa51abb5fb73887b5167c0780eeb485b236bc0eccfd1fc3d6245-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: failure: repodata/41734c6392fbfa51abb5fb73887b5167c0780eeb485b236bc0eccfd1fc3d6245-primary.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.
[indice@indice-centos2 ~]$ sudo yum update
Loaded plugins: security
http://olcentgbl.trafficmanager.net/centos/6/updates/x86_64/repodata/41734c6392fbfa51abb5fb73887b5167c0780eeb485b236bc0eccfd1fc3d6245-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: failure: repodata/41734c6392fbfa51abb5fb73887b5167c0780eeb485b236bc0eccfd1fc3d6245-primary.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.

您能发表一些建议吗?

答案1

构建该虚拟机映像的人通过运行他们自己的 CentOS 镜像(他们不与上游保持同步)的简单方法禁用了对它的更新,然后更改 yum 配置以仅使用他们的镜像。

正如您所注意到的,他们的镜像库并不完美。

您可以/etc/yum.repos.d用标准 CentOS 系统中的 yum 配置文件替换它们的 yum 配置文件(在目录中),这就是我所做的。

请记住,如果您这样做,您将不再获得其存储库中的 Hyper-V 集成服务包的更新;您必须自行手动更新。您还需要更新Windows Azure Linux 代理您可以自己从微软的 github 获取。

相关内容