当我安装Heroku时,我的包管理器坏了

前端之家收集整理的这篇文章主要介绍了当我安装Heroku时,我的包管理器坏了前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. sudo apt-get install <anything>
  2.  
  3. Reading package lists... Error!
  4. E: Encountered a section with no Package: header
  5. E: Problem with MergeList /var/lib/apt/lists/toolbelt.heroku.com_ubuntu_._en
  6. E: The package lists or status file could not be parsed or opened.

我接下来要对此进行故障排除的步骤是什么?

更新:我尝试重新安装并获得下面的输出.它似乎安装了,但是当我从命令行尝试heroku时,我得不到命令:heroku.安装命令在[等待标题]上挂了很长时间.

基于这些错误消息,我的下一步是什么?

  1. W: GPG error: http://us.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
  2. W: GPG error: http://us.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
  3. W: A error occurred during the signature verification. The repository is not updated and the prevIoUs index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
  4.  
  5. W: GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google,Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>
  6. W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release
  7.  
  8. W: Some index files Failed to download. They have been ignored,or old ones used instead.
  9. Reading package lists... Done
  10. Building dependency tree
  11. Reading state information... Done
  12. heroku-toolbelt is already the newest version.
以下将解决错误
  1. sudo apt-get clean
  2. cd /var/lib/apt
  3. sudo mv lists lists.old
  4. sudo mkdir -p lists/partial
  5. sudo apt-get clean
  6. sudo apt-get update

猜你在找的Ubuntu相关文章