簡體   English   中英

在CentOS 7上安裝Jekyll錯誤

[英]Installing Jekyll on CentOS 7 error

我試圖在CentOS 7上安裝Jekyll,所以我對操作系統進行了全新安裝並開始遵循以下步驟:

http://www.resilvered.com/blog/2014/08/26/Installing-Jekyll-on-CentOS-7/

第1步有效,但如果運行第2步,則會出現此錯誤:

[jxsmith@localhost ~]$ sudo yum install nodejs npm ruby ruby-devel rubygems git
Loaded plugins: fastestmirror, langpacks


 One of the configured repositories failed (Unknown),
 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 retrieve metalink for repository: epel/x86_64. Please verify its path and try again
[jxsmith@localhost ~]$

有人可以告訴我如何解決這個問題嗎

全新安裝后,您是否更新了yum? 如果不是,請對其進行更新,然后按照相同的步驟進行操作。 會的。

以root用戶身份登錄並應用yum update命令

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM