Thesd days I've add some sources to the /ect/apt/sources.list, and found I cannot update anymore... this is what i get...
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
I've tryed to substitute status with status.old but nothing changes...
my /var/lib/dpkg/status file is as follows...
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:christian
tty:x:5:
disk:x:6:
lp:x:7:cupsys
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:cupsys,christian
fax:x:21:
voice:x:22:
cdrom:x:24:haldaemon,christian
floppy:x:25:haldaemon,christian
tape:x:26:
sudo:x:27:
audio:x:29:christian
dip:x:30:christian
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:christian
sasl:x:45:
plugdev:x:46:haldaemon,christian
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
dhcp:x:101:
syslog:x:102:
klog:x:103:
ssl-cert:x:104:cupsys
crontab:x:105:
ssh:x:106:
messagebus:x:107:
avahi:x:108:
lpadmin:x:109:christian
haldaemon:x:110:
scanner:x:111:cupsys,hplip,christian
slocate:x:112:
gdm:x:113:
christian:x:1000:
admin:x:114:christian
fuse:x:115:christian
and finally found some soluation on Internet:
Solution 1:
Code:
dpkg --configure -a
if that does not work look in
The above location stores what are called post-installation
(.postinst) and post-removal (.postrm) scripts from deb packages which
include them. Sometimes, packagers do not do a good job of packaging
software and these scripts (which are NOT present in all debs) error
out (during installation or uninstallation) and prevent apt from doing
anything further (in terms of installing or uninstalling other
packages).
What you need to do then is delete the faulty scripts from the above location and then apt-get remove the package.
That will fix apt.
and then manually go and repir anything else that shows up
Solution 2:
cd /var/lib/dpkg
mv status status-bad
cp status-old status
apt-get update
Problem continue:
I needed to remove the lock before I could run the update.
Code:
sudo rm -f /var/lib/dpkg/lock
分享到:
相关推荐
北大POJ2513-Colored Sticks【TrieTree+MergeSet+EulerPath】 解题报告+AC代码
octoherd-script-set-pr-merge-config 设置拉取请求合并配置的octoherd脚本用法npx octoherd - script - set - pr - merge - config \ -- octoherd - token 0123456789012345678901234567890123456789 \ ...
arXiv苹果公司新论文“Self-Play”方法训练车辆道路merge的策略.pdf
npm-merge-driver安装 自动合并package-lock.json冲突的软件包。 很大程度上基于 ,在软件包安装时进行自动设置,并且只有一个小的依赖项来进行ci检查。 用生成的目录 安装 安装运行 npm i --save-dev npm-...
composer global require jcid/sourcetree-merge-request-opener 为什么? 为什么建这个? 因为Jira表示他们将不支持Gitlab自己的实例。 有关更多信息,您可以在这里阅读: 源树配置 打开Sourcetree preferences ...
sudo apt-get install gnuchess gnuchess-book python3-pexpectsudo apt-get install festlex-cmusudo apt-get install ros-noetic-moveit-full ros-noetic-moveit-pythoncd <catkin>/srcwstool initwstool merge ...
完成sort and count算法,是算法分析当中devide and conquer中的一道题
WinMerge can be compiled with: - Visual Studio 2005 or later - GCC 4 - Qt 4.5 or later WinMerge uses Qt's qmake to manage projects. To create makefiles you'll need to run command: > qmake -recursive...
与 RubyMine 中的 Araxis Merge 进行比较这个...配置将compare_with_araxis_merge.rb脚本放在用户的主目录中。 例如, /Users/eugene 。 在脚本中配置您的项目和分支名称: * 在BRANCH常量中指定您的分支名称。 * 在PRO
实现两幅图像的合并zipMerge(Mat inImg1,Mat inImg2,Mat outImg)
实现遥感图像的假彩色合成,使用opencv来实现。
quick sorting algorithms
npm install --save-dev webpack-merge-and-include-globally 用法 假设您想使诸如jquery , moment (包括3种语言)和toastr在全球范围内可用,而您正在努力通过webpack使它们成为全局库,或者只是因为require()...
WinMerge-v2WinMerge-v2WinMerge-v2WinMerge-v2
In this paper, we propose a novel density based spatial clustering algorithm called K-DBSCAN with the main focus of identifying clusters of points with similar spatial density. This contrasts with ...
简单易用的绿色pdf合并与分割工具
WinMerge-文件比较工具,可比较两个文本文件,将其中不同的部分列出来。可以通过此工具来查询修改的部分。
线性表的合并,两个线性表按非递减顺序排列,将他们和为一个线性表,要求也按非递减排列。
Git Mergetool Vimdiff 包装器 这是什么? 修改 git mergetool vimdiff 的 BAD UI(当 git 的 BASE 不存在时,UI 会发生变化)。 总是合并疼痛是底部! 设置 git clone ...
这一切归功于 Ember CLI 的贡献者和 broccoli-merge-trees 的作者 Jo Liss。 安装 npm install --save-dev broccoli-descriptive-merge-trees 用法 var mergeTrees = require ( 'broccoli-descriptive-merge-trees...