Tôi đang phải đối mặt với một vấn đề với lệnh yum trên một máy chủ chuyên dụng (được tổ chức bởi OVH):lỗi yum - centos 7.1 x86_64
[[email protected] ~]# yum clean all
[[email protected] ~]# yum update
Modules complémentaires chargés : fastestmirror
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
Sau khi điều tra, tôi phát hiện ra rằng dưới lỗi (url trở lại không ok từ máy chủ chuyên dụng):
KO từ chuyên dụng máy chủ:
[[email protected] ~]# curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os"
Invalid release
[[email protected] ~]#
OK từ nhà (ADSL)
MacBook-Air-de-John:~ jjohn$ curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os"
http://mirror.ate.info/ftp.centos.org/7.1.1503/os/x86_64/
http://ftp.rezopole.net/centos/7.1.1503/os/x86_64/
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/7.1.1503/os/x86_64/
http://mirror0.babylon.network/centos/7.1.1503/os/x86_64/
http://centos.crazyfrogs.org/7.1.1503/os/x86_64/
http://centos.mirrors.ovh.net/ftp.centos.org/7.1.1503/os/x86_64/
http://mirrors.ircam.fr/pub/CentOS/7.1.1503/os/x86_64/
ftp://ftp.free.fr/mirrors/ftp.centos.org/7.1.1503/os/x86_64/
http://mirror.ibcp.fr/pub/Centos/7.1.1503/os/x86_64/
http://ftp.ciril.fr/pub/linux/centos/7.1.1503/os/x86_64/
MacBook-Air-de-John:~ jjohn$
Tôi gặp vấn đề tương tự sau khi cài đặt mới và trên máy chủ chuyên dụng của một người bạn (do OVH lưu trữ).
Tôi không biết liệu lỗi có đến từ mạng OVH (DNS, ...) hoặc máy chủ mirrorlist.centos.org hay không.
Giải quyết vấn đề của tôi - không chắc chắn lý do tại sao bạn nhận được phiếu giảm giá. – dsimer
Vui lòng giải thích lý do tại sao điều này hữu ích. Đưa ra một sửa chữa là ok nhưng giải thích lý do tại sao nó hoạt động và nên được sử dụng giáo dục người dùng để họ hiểu những gì họ đang làm. –
giải quyết vấn đề của tôi trên CentOS tôi đã cài đặt từ ISO mọi thứ trong hộp ảo .. Tôi cũng đã cập nhật 'sudo yum' sau đó –