ubuntu 下安装python开发包,执行命令 sudo apt-get install python-dev,报错;

Reading package lists... Error!

E: Encountered a section with no Package: header

E: Problem with MergeList /var/lib/apt/lists/AZ.archive.ubuntu.com_ubuntu_dists_natty_main_i18n _Translation-en

E: The package lists or status file could not be parsed or opened.

 
解决:

run these two commands and it should get you fixed up.
Code:
sudo rm /var/lib/apt/lists/* -vf
The first command will remove the damaged list and when you run the second command it will replace it with a new list.

Code:
sudo apt-get update

相关文章:

  • 2022-12-23
  • 2021-07-28
  • 2021-10-20
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2021-06-04
  • 2021-11-24
  • 2021-08-05
  • 2021-09-11
  • 2021-10-16
相关资源
相似解决方案