解決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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Ubuntu 安裝包時提示錯誤E: Unable to locate package mysql-server錯誤 解決辦法UbuntuPackageMySqlServer
- 解決E: Package ‘libmysqlclient-dev‘ has no installation candidate報錯PackageIBMMySqlclientdev
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- 完美解決xhost +報錯: unable to open display
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- Unable to locate factory with name [default]
- 解決ubuntu修改密碼 Module is unknow報錯Ubuntu密碼
- sudo apt update時報錯 E: Unable to lock directory /var/lib/apt/lists/APT
- yum error - package is a duplicate withErrorPackage
- 修復 Ubuntu 中 “E: The package cache file is corrupted, it has the wrong hash”UbuntuPackage
- 【ubuntu】解決Unable to determine the device handle for GPU 0000:02:00.0: Unknown ErrorUbuntudevGPUError
- yum安裝軟體時,出現"No package XXX available"的解決辦法PackageAI
- git pull報“unable to update local ref”解決方案Git
- yii2 Unable to verify your data submission錯誤解決
- pip install scrapy報錯:error: UnableError
- Linux yum提示Loaded plugins錯誤的解決方法LinuxPlugin
- ubuntu下git報錯fatal: The remote end hung up unexpectedly解決方案UbuntuGitREM
- mybatis報錯解決MyBatis
- 解決eslint報錯EsLint
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- Ubuntu18.04..5 配置國內映象源:解決E: Failed to fetchUbuntuAI
- Ubuntu下開啟php除錯模式報錯如何解決UbuntuPHP除錯模式
- Unable to locate the Javac Compiler in: C:\Java\jre1.8\..\lib\tools.jarJavaCompileJAR
- valet install 報 Unable to determine linked PHP. 的解決辦法PHP
- 解決Centos7 yum 出現could not retrieve mirrorlist 錯誤CentOS
- Ubuntu 報錯:無法獲得鎖 /var/lib/dpkg/lock解決辦法Ubuntu
- ubuntu apt-get install xxx報錯無法下載的解決方法Ubuntuapt-get
- 解決ubuntu系統“XXX is not in the sudoers file”錯誤Ubuntu
- ubuntu下import matplotlib錯誤解決辦法UbuntuImport
- SS報錯的解決
- iText中文,報錯解決
- supervisor使用報錯解決
- npm install 報錯解決NPM
- 報錯內容解決
- Linux_Centos_yum報錯總結LinuxCentOS
- 使用yum報錯Your license is invalid.
- iptables報錯!iptables-restore unable to initialize table 'filterRESTFilter