yum安裝xxx包時出錯,提示No package xxx available.
1.檢視系統版本
[root@hadoopnn-01 yum.repos.d]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
You have mail in /var/spool/mail/root
[root@hadoopnn-01 yum.repos.d]#
[root@hadoopnn-01 yum.repos.d]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
You have mail in /var/spool/mail/root
[root@hadoopnn-01 yum.repos.d]#
2.備份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下載對應版本repo檔案, 放入/etc/yum.repos.d/(操作前請做好相應備份)
執行以下命令生成快取
yum clean all yum makecache
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2120628/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Centos下yum安裝Nginx報錯 No package nginx available.CentOSNginxPackageAI
- yum安裝軟體時,出現"No package XXX available"的解決辦法PackageAI
- Ubuntu 安裝包時提示錯誤E: Unable to locate package mysql-server錯誤 解決辦法UbuntuPackageMySqlServer
- windows解壓檔案時,出錯:不能建立符號連結xxxxxxx客戶端沒有所需得特權Windows符號客戶端
- Spring:錯誤No bean named 'xxxxxxx' availableSpringBeanAI
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- 報錯xxxx of undefinedUndefined
- 使用req.session.xxx時出現 Cannot set property ‘xxxx‘ of undefinedSessionUndefined
- Maven專案報錯:No bean named 'xxxxxx' availableMavenBeanAI
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Error building Player: Win32Exception: ApplicationName=‘xxxxxxxxxxxxxxxxxx//sdk\tools\zipalign.exe' ...ErrorUIWin32ExceptionAPP
- Internal Error with background job scheduling XXXXXXXXXXXXX.Error
- // @require file://C:xxxxxxxxx.jsUIJS
- Centos7使用yum安裝程式軟體時提示未找到安裝包解決方法CentOS
- R語言中package ‘xxxx’ is not available (for R version 3.2.5)解決R語言PackageAI
- mysql Incorrect key file for table ‘/xxxxxxxx/xxxx.MYI'; try to repair itMySqlAI
- go get時出現‘xxx is deprecated’Go
- Android自定義View:No resource identifier found for attribute ‘XXX’ in package ‘XXX‘AndroidViewIDEPackage
- Linux下編譯國標GB28181視訊推流元件EasyGBD報錯undefined reference to `xxxxxxxx@GLIBC_xxxxx‘解決Linux編譯元件Undefined
- Linux虛擬機器配置IP時提示:determining ip information for ip xxx.xxx.xxx.xxx address is alreadyLinux虛擬機ORM
- CentOS 報錯 java.net.UnknownHostException: xxxxxx: 未知的名稱或服務CentOSJavaException
- PostgreSQL cache lookup failed for type XXXX 錯誤SQLAI
- undefine macro xxxxxMac
- composer 安裝包時與php版本不符 提示報錯PHP
- 編譯錯誤導致浪費10多分鐘, 編譯錯誤的提示:xxx does not name a type xxx編譯
- IDEA Error:java xxxx 程式包不存在IdeaErrorJava
- Centos7系統建立使用者時出現“useradd: user ‘xxxx‘ already exists”錯誤CentOS
- (徵文模板參考)xx技能樹/職業路線評測-xxxxxxxx
- QT中error: xxx does not name a type xxx錯誤QTError
- 關於cocopods更新第三方庫報ld: library not found for -lXXXXXX錯誤
- 使用yum安裝oracle的包Oracle
- 記解決OEM起不來提示C4J_DBConsole_xxxx(hostname)_xxxx(sid) not found
- 關於報錯Error creating bean with name 'xxxxx': Invocation of init method....ErrorBean
- 【IOS】關於cocopods更新第三方庫報ld: library not found for -lXXXXXX錯誤iOS
- [Linux] mutt /xxxx/xxxx/sent is not a mailbox.LinuxAI
- Xamarin提示安裝包錯誤解決辦法
- C++ vector<std::tuple<XXX, XXX, XXX>>C++
- could not connect to redis Instance at xxx.xxx.xxx.xxx:6379Redis