解决E: Unable to locate package XXX

  1. 首先尝试update命令
    sudo apt-get update
  2. 如果不行则执行upgrade
    sudo apt-get upgrade
    上述命令成功以后就能正常使用
    sudo apt-get install xxxxx
  3. 最后上面两项都不行则尝试
    sudo apt-get install aptitude
    成功以后使用
    sudo aptitude install xxxxx
  4. 另外还可以
    sudo apt-get install python-你要安装的包的名字

原文地址:https://www.cnblogs.com/nanke-dream/p/17278067.html