解決Ubuntu報錯 E: Unable to locate package yum
# 這裡以locate命令為例 sudo apt-get install mlocate
1. 報錯 E: Unable to locate package yum
# yum安裝locate sudo yum install mlocate sudo updatedb locate -h
2. 修改sources.list
# 包括但不限於以下update方法 sudo apt-get update sudo apt-get upgrade sudo apt update
# 修改 apt-get 源的配置檔案 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #備份 sudo vim /etc/apt/sources.list #修改 sudo apt-get update #更新列表
deb deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb deb deb deb-src deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src deb-src deb-src
Shift + I 編輯文件 Esc 退出編輯 :q! 關閉文件 :wq! 儲存文件並關閉
# 依賴庫的安裝 sudo apt-get install python-sqlitecachec sudo apt-get install python-urlgrabber sudo apt-get install python-libxml2 sudo apt-get install python-rpm sudo apt-get install python-sqlite sudo apt-get install python-urlgrabber
yum
3. 意識到問題沒那麼複雜
# apt-get 安裝 mlocate sudo apt-get install mlocate
# 解除安裝yum sudo apt-get remove yum
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70003733/viewspace-2894797/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Unable to locate package錯誤解決辦法Package
- ubuntu安裝軟體出現Unable to locate package錯誤解決UbuntuPackage
- Ubuntu 安裝包時提示錯誤E: Unable to locate package mysql-server錯誤 解決辦法UbuntuPackageMySqlServer
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- 解決E: Package ‘libmysqlclient-dev‘ has no installation candidate報錯PackageIBMMySqlclientdev
- 完美解決xhost +報錯: unable to open display
- adcfgclone.pl appsTier報錯Unable to locate 'linkxlC' utility in pathGCAPP
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- Unable to locate factory with name [default]
- 打成Jar包後執行報錯 Unable to locate Spring NamespaceHandler for XML schema namespaceJARSpringnamespaceXML
- Centos下yum安裝Nginx報錯 No package nginx available.CentOSNginxPackageAI
- 解決ubuntu修改密碼 Module is unknow報錯Ubuntu密碼
- 爛泥:【解決】ubuntu使用遠端NFS報錯UbuntuNFS
- yum error - package is a duplicate withErrorPackage
- yum方式安裝Percona XtraBackup報錯解決一例
- vm安裝ubuntu後,update報錯問題解決Ubuntu
- 修復 Ubuntu 中 “E: The package cache file is corrupted, it has the wrong hash”UbuntuPackage
- git pull報“unable to update local ref”解決方案Git
- jenkins - svn: E170001報錯的原因以及解決方案Jenkins
- 【ubuntu】解決Unable to determine the device handle for GPU 0000:02:00.0: Unknown ErrorUbuntudevGPUError
- mybatis報錯解決MyBatis
- yii2 Unable to verify your data submission錯誤解決
- pip install scrapy報錯:error: UnableError
- ubuntu下git報錯fatal: The remote end hung up unexpectedly解決方案UbuntuGitREM
- android錯誤unable to execute dex java heap space解決方案AndroidJava
- CentOS 中yum命令執行錯誤解決辦法CentOS
- 解決fitz模組報錯
- SS報錯的解決
- 解決eslint報錯EsLint
- iText中文,報錯解決
- Nagios監控MySQL報錯:NRPE: Unable to read output的詳細解決過程iOSMySql
- Linux系統yum安裝報錯Cannot find a valid baseurl for repo的解決方法Linux
- yum問題解決
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- yum安裝軟體時,出現"No package XXX available"的解決辦法PackageAI
- yum groupinstall報錯,處理方法
- CentOS release 6.5 yum安裝報錯CentOS
- sudo apt update時報錯 E: Unable to lock directory /var/lib/apt/lists/APT