ubuntu上安装某些软件时出现的Reading package lists...Error问题
在ubuntu上安装某些软件时会出现Reading package lists...Error等问题,其中下面问题中的红色部分可能会不一样,但是解决方法都相同.
有些人是在安装python包时出现的问题,我是在集群的从属服务器上安装unrar时出现了这个问题,用下面绿色的两条命令解决了这一问题.
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/mirrors.163.com_ubuntu_dists_trusty-security_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/mirrors.163.com_ubuntu_dists_trusty-security_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
解决:
第一条命令:
sudo rm /var/lib/apt/lists/* -vf
这条命令将删除损坏的列表,当运行下一条命令的时候就会有新的列表去替代它.
sudo apt-get update
之后在进行安装操作就可以了