Solve the problem that centos 6.4 cannot use yum install.

Source: Internet
Author: User

Solve the problem that centos 6.4 cannot use yum install.

After centos 6.4 is created on qingcloud, you may encounter errors when installing emacs:

[Plain] view plaincopyprint?
  1. # Yuminstallemacs
  2. Loadedplugins: fastestmirror
  3. Determiningfastestmirrors
  4. Error: Cannotretrievemetalinkforrepository: epel. Pleaseverifyitspathandtryagain

The solution is to update ca-certificates.

[Plain] view plaincopyprint?
  1. # Yumupgradeca-certificates -- disablerepo = epel
  2. Loadedplugins: fastestmirror
  3. Loadingtransferspeedsfromcachedhostfile
  4. * Base: mirrors.skyshe.cn
  5. * Extras: ftp.sjtu.edu.cn
  6. * Rpmfusion-free-updates: ftp.sjtu.edu.cn
  7. * Rpmfusion-nonfree-updates: ftp.sjtu.edu.cn
  8. * Updates: mirrors.skyshe.cn
  9. Base | 3.7kB00: 00
  10. Base/primary_db | 4.6MB00: 04
  11. Emacs | 2.9kB00: 02
  12. Emacs/primary_db | 37kB00: 01
  13. Extras | 3.4kB00: 00
  14. Extras/primary_db | 37kB00: 00
  15. Rpmfusion-free-updates | 2.7kB00: 00
  16. Rpmfusion-free-updates/primary_db | 272kB00: 00
  17. Rpmfusion-nonfree-updates | 2.2kB00: 00
  18. Rpmfusion-nonfree-updates/primary_db | 65kB00: 00
  19. Updates | 3.4kB00: 00
  20. Updates/primary_db | 5.2MB00: 05
  21. SettingupUpgradeProcess
  22. ResolvingDependencies
  23. --> Runningtransactioncheck
  24. ---> Packageca-certificates.noarch0: 2010.63-3. el6_1.5willbeupdated
  25. ---> Packageca-certificates.noarch0: 2015.2.6-65.0.1.el6 _ 7 willbeanupdate
  26. --> ProcessingDependency: p11-kit-trust> = 0.18.4-2 forpackage: ca-certificates-2015.2.6-65.0.1.el6_7.noarch
  27. --> ProcessingDependency: p11-kit> = 0.18.4-2 forpackage: ca-certificates-2015.2.6-65.0.1.el6_7.noarch
  28. --> Runningtransactioncheck
  29. ---> Packagep11-kit.x86_640: 0.18.5-2. el6_5.2willbeinstalled
  30. --> ProcessingDependency: libtasn1.so. 3 (LIBTASN1_0_3) (64bit) forpackage: p11-kit-0.18.5-2.el6_5.2.x86_64
  31. --> ProcessingDependency: libtasn1.so. 3 () (64bit) forpackage: p11-kit-0.18.5-2.el6_5.2.x86_64
  32. ---> Packagep11-kit-trust.x86_640: 0.18.5-2. el6_5.2willbeinstalled
  33. --> Runningtransactioncheck
  34. ---> Packagelibtasn1.x86 _ 640: 2.3-6. el6_5willbeinstalled
  35. --> ProcessingConflict: p11-kit-trust-0.18.5-2.el6_5.2.x86_64conflictsnss <3.14.3-33
  36. --> RestartingDependencyResolutionwithnewchanges.
  37. --> Runningtransactioncheck
  38. ---> Packagenss. x86_640: 3.14.0.0-12. el6willbeupdated
  39. --> ProcessingDependency: nss = 3.14.0.0-12. el6forpackage: nss-tools-3.14.0.0-12.el6.x86_64
  40. --> ProcessingDependency: nss = 3.14.0.0-12. el6forpackage: nss-sysinit-3.14.0.0-12.el6.x86_64
  41. ---> Packagenss. x86_640: 3.21.0-0.3.el6 _ 7 willbeanupdate
  42. --> ProcessingDependency: nss-util> = 3.21.0forpackage: nss-3.21.0-0.3.el6_7.x86_64
  43. --> ProcessingDependency: nss-softokn (x86-64)> = 3.14.3-22 forpackage: nss-3.21.0-0.3.el6_7.x86_64
  44. --> ProcessingDependency: nspr> = 4.11.0forpackage: nss-3.21.0-0.3.el6_7.x86_64
  45. --> ProcessingDependency: libnssutil3.so (NSSUTIL_3.21) (64bit) forpackage: nss-3.21.0-0.3.el6_7.x86_64
  46. --> ProcessingDependency: libnssutil3.so (NSSUTIL_3.17.1) (64bit) forpackage: nss-3.21.0-0.3.el6_7.x86_64
  47. --> ProcessingDependency: libnssutil3.so (NSSUTIL_3.15) (64bit) forpackage: nss-3.21.0-0.3.el6_7.x86_64
  48. --> Runningtransactioncheck
  49. ---> Packagenspr. x86_640: 4.9.2-1. el6willbeupdated
  50. ---> Packagenspr. x86_640: 4.11.0-0.1.el6 _ 7 willbeanupdate
  51. ---> Packagenss-softokn.x86_640: 3.12.9-11. el6willbeupdated
  52. ---> Packagenss-softokn.x86_640: 3.14.3-23. el6_7willbeanupdate
  53. --> ProcessingDependency: nss-softokn-freebl (x86-64)> = 3.14.3-23. el6_7forpackage: nss-softokn-3.14.3-23.el6_7.x86_64
  54. ---> Packagenss-sysinit.x86_640: 3.14.0.0-12. el6willbeupdated
  55. ---> Packagenss-sysinit.x86_640: 3.21.0-0.3.el6 _ 7 willbeanupdate
  56. ---> Packagenss-tools.x86_640: 3.14.0.0-12. el6willbeupdated
  57. ---> Packagenss-tools.x86_640: 3.21.0-0.3.el6 _ 7 willbeanupdate
  58. ---> Packagenss-util.x86_640: 3.14.0.0-2. el6willbeupdated
  59. ---> Packagenss-util.x86_640: 3.21.0-0.3.el6 _ 7 willbeanupdate
  60. --> Runningtransactioncheck
  61. ---> Packagenss-softokn-freebl.x86_640: 3.12.9-11. el6willbeupdated
  62. ---> Packagenss-softokn-freebl.x86_640: 3.14.3-23. el6_7willbeanupdate
  63. --> FinishedDependencyResolution
  64. DependenciesResolved
  65. ========================================================== ========================================================== ========================================================== ========================================================== ====================================
  66. PackageArchVersionRepositorySize
  67. ========================================================== ========================================================== ========================================================== ========================================================== ====================================
  68. Updating:
  69. Ca-certificatesnoarch2015.2.6-65.0.1.el6_7updates1.2M
  70. Nssx86_643.21.0-0.3.el6_7updates858k
  71. Installingfordependencies:
  72. Libtasn1x86_642.3-6.el6_5base238k
  73. P11-kitx86_640.18.5-2.el6_5.2base94k
  74. P11-kit-trustx86_640.18.5-2.el6_5.2base71k
  75. Updatingfordependencies:
  76. Nsprx86_644.11.0-0.1.el6_7updates114k
  77. Nss-softoknx86_643.14.3-23.el6_7updates262k
  78. Nss-softokn-freeblx86_643.14.3-23.el6_7updates167k
  79. Nss-sysinitx86_643.21.0-0.3.el6_7updates46k
  80. Nss-toolsx86_643.21.0-0.3.el6_7updates435k
  81. Nss-utilx86_643.21.0-0.3.el6_7updates67k
  82. TransactionSummary
  83. ========================================================== ========================================================== ========================================================== ========================================================== ====================================
  84. Install3Package (s)
  85. Upgrade8Package (s)
  86. Totaldownloadsize: 3.5 M
  87. Isthisok [y/N]: y
  88. DownloadingPackages:
  89. (1/11): ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm | 1.2MB00: 01
  90. (2/11): libtasn1-2.3-6.el6_5.x86_64.rpm | 238kB00: 00
  91. (3/11): nspr-4.11.0-0.1.el6_7.x86_64.rpm | 114kB00: 00
  92. (4/11): nss-3.21.0-0.3.el6_7.x86_64.rpm | 858kB00: 00
  93. (5/11): nss-softokn-3.14.3-23.el6_7.x86_64.rpm | 262kB00: 00
  94. (6/11): nss-softokn-freebl-3.14.3-23.el6_7.x86_64.rpm | 167kB00: 00
  95. (7/11): nss-sysinit-3.21.0-0.3.el6_7.x86_64.rpm | 46kB00: 00
  96. (8/11): nss-tools-3.21.0-0.3.el6_7.x86_64.rpm | 435kB00: 00
  97. (9/11): nss-util-3.21.0-0.3.el6_7.x86_64.rpm | 67kB00: 00
  98. (10/11): p11-kit-0.18.5-2.el6_5.2.x86_64.rpm | 94kB00: 00
  99. (11/11): p11-kit-trust-0.18.5-2.el6_5.2.x86_64.rpm | 71kB00: 00
  100. Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  101. Total601kB/s | 3.5MB00: 06
  102. Runningrpm_check_debug
  103. RunningTransactionTest
  104. TransactionTestSucceeded
  105. RunningTransaction
  106. Updating: nspr-4.11.0-0.1.el6_7.x86_641/19
  107. Updating: nss-util-3.21.0-0.3.el6_7.x86_642/19
  108. Updating: nss-softokn-freebl-3.14.3-23.el6_7.x86_643/19
  109. Updating: nss-softokn-3.14.3-23.el6_7.x86_644/19
  110. Updating: nss-sysinit-3.21.0-0.3.el6_7.x86_645/19
  111. Updating: nss-3.21.0-0.3.el6_7.x86_646/19
  112. Installing: libtasn1-2.3-6.el6_5.x86_647/19
  113. Installing: p11-kit-0.18.5-2.el6_5.2.x86_648/19
  114. Installing: p11-kit-trust-0.18.5-2.el6_5.2.x86_649/19
  115. Updating: ca-certificates-2015.2.6-65.0.1.el6_7.noarch10/19
  116. Updating: nss-tools-3.21.0-0.3.el6_7.x86_6411/19
  117. Cleanup: ca-certificates-2010.63-3.el6_1.5.noarch12/19
  118. Cleanup: nss-tools-3.14.0.0-12.el6.x86_6413/19
  119. Cleanup: nss-3.14.0.0-12.el6.x86_6414/19
  120. Cleanup: nss-sysinit-3.14.0.0-12.el6.x86_6415/19
  121. Cleanup: nss-softokn-3.12.9-11.el6.x86_6416/19
  122. Cleanup: nss-util-3.14.0.0-2.el6.x86_6417/19
  123. Cleanup: nspr-4.9.2-1.el6.x86_6418/19
  124. Cleanup: nss-softokn-freebl-3.12.9-11.el6.x86_6419/19
  125. Verifying: p11-kit-0.18.5-2.el6_5.2.x86_641/19
  126. Verifying: nss-util-3.21.0-0.3.el6_7.x86_642/19
  127. Verifying: nss-softokn-3.14.3-23.el6_7.x86_643/19
  128. Verifying: nss-softokn-freebl-3.14.3-23.el6_7.x86_644/19
  129. Verifying: nss-sysinit-3.21.0-0.3.el6_7.x86_645/19
  130. Verifying: libtasn1-2.3-6.el6_5.x86_646/19
  131. Verifying: nss-3.21.0-0.3.el6_7.x86_647/19
  132. Verifying: ca-certificates-2015.2.6-65.0.1.el6_7.noarch8/19
  133. Verifying: nspr-4.11.0-0.1.el6_7.x86_649/19
  134. Verifying: nss-tools-3.21.0-0.3.el6_7.x86_6410/19
  135. Verifying: p11-kit-trust-0.18.5-2.el6_5.2.x86_6411/19
  136. Verifying: nss-tools-3.14.0.0-12.el6.x86_6412/19
  137. Verifying: nss-3.14.0.0-12.el6.x86_6413/19
  138. Verifying: ca-certificates-2010.63-3.el6_1.5.noarch14/19
  139. Verifying: nss-softokn-freebl-3.12.9-11.el6.x86_6415/19
  140. Verifying: nss-util-3.14.0.0-2.el6.x86_6416/19
  141. Verifying: nss-sysinit-3.14.0.0-12.el6.x86_6417/19
  142. Verifying: nspr-4.9.2-1.el6.x86_6418/19
  143. Verifying: nss-softokn-3.12.9-11.el6.x86_6419/19
  144. DependencyInstalled:
  145. Libtasn1.x86 _ 640: 2.3-6. el6_5p11-kit.x86_640: 0.18.5-2. el6_5.2p11-kit-trust.x86_640: 0.18.5-2. el6_5.2
  146. Updated:
  147. Ca-certificates.noarch0: 2015.2.6-65.0.1.el6 _ 7nss. x86_640: 3.21.0-0.3.el6 _ 7
  148. DependencyUpdated:
  149. Nspr. x86_640: 4.11.0-0.1.el6 _ 7nss-softokn.x86_640: 3.14.3-23. el6_7nss-softokn-freebl.x86_640: 3.14.3-23. el6_7nss-sysinit.x86_640: 3.21.0-0.3.el6 _ 7
  150. Nss-tools.x86_640: 3.21.0-0.3.el6 _ 7nss-util.x86_640: 3.21.0-0.3.el6 _ 7
  151. Complete!

Now.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.