64位Ubuntu-12.04 系统更新时总报错,软件中心也打不开

1.Ubuntu系统更新时总报错

E:Encountered a section with no Package: header

E:Problem with MergeList/var/lib/apt/lists/ubuntu.uestc.edu.cn_ubuntu_dists_precise_main_binary-amd64_Packages

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

hadoop@master:~$

修改方法:

终端中输入以下两条命令:

sudo rm/var/lib/apt/lists/* -vf

sudo apt-get update

执行完了命令之后,软件更新器应该会自动要求更新的,更新便是。

但是依然无法更新:而且打不开软件中心

然后把原始的更新源文件里面的内容全部删除了,改为了中国的更新源,

hadoop@master:~$sudo gedit /etc/apt/sources.list

hadoop@master:~$sudo apt-get update

安装perl还是报错,

hadoop@master:~$sudo apt-get install perl

Readingpackage lists... Done

Buildingdependency tree      

Readingstate information... Done

E:The package mysql-community-server needs to be reinstalled, but I can't find anarchive for it.

删除mysql-community-server

hadoop@master:~$sudo dpkg --remove --force-remove-reinstreq mysql-community-server

 

再次安装perl成功,

hadoop@master:~$sudo apt-get install perl

你可能感兴趣的:(linux)