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
分享到:
相关推荐
E: Problem with Merge List /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages E: The package lists or status file could not be parsed or opened. ``` **修复方法:...
octoherd-script-set-pr-merge-config 设置拉取请求合并配置的octoherd脚本用法npx octoherd - script - set - pr - merge - config \ -- octoherd - token 0123456789012345678901234567890123456789 \ ...
npm-merge-driver(1)-用于自动合并锁文件的git merge驱动程序自动设置(推荐): 要立即开始使用它: $ npx npm-merge-driver install --global或按项目在本地安装: $ cd /path/to/git/repository$ npx npm-merge...
"merge-and-count"这个任务,正是基于这一策略的实践,旨在实现一种“sort and count”的算法。在这个过程中,我们将深入探讨如何将大问题分解为小问题,通过合并和计数来解决,并结合实际代码来理解这一过程。 1. ...
《7-PDF.Split.and.Merge.Portable 2:轻松掌握PDF合并与分割技术》 PDF(Portable Document Format)格式因其跨平台、保持原文档格式不变的特性,在日常工作和学习中广泛应用。然而,面对大量的PDF文件,有时我们...
标题“MergeList_Sq.zip_MergeList Sq_MergeList_Sq”暗示了我们正在处理一个与线性表合并相关的项目,可能是一个程序或代码库,其中包含了名为“MergeList_Sq”的压缩文件,该文件包含了一个名为“MergeList_Sq.cpp...
composer global require jcid/sourcetree-merge-request-opener 为什么? 为什么建这个? 因为Jira表示他们将不支持Gitlab自己的实例。 有关更多信息,您可以在这里阅读: 源树配置 打开Sourcetree preferences ...
npm-merge-driver安装 自动合并package-lock.json冲突的软件包。 很大程度上基于 ,在软件包安装时进行自动设置,并且只有一个小的依赖项来进行ci检查。 用生成的目录 安装 安装运行 npm i --save-dev npm-...
- 对于Ubuntu,运行`sudo apt-get update`和`sudo apt-get upgrade`来更新系统。 - 安装必要软件包:`sudo apt-get install curl openssh-server ca-certificates postfix` - 安装Nginx、PostgreSQL、Redis和Ruby...
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 ...
【标题】"POJ2513-Colored Sticks【TrieTree+MergeSet+EulerPath】"涉及的是一道编程竞赛题目,主要考察参赛者的数据结构与算法应用能力,特别是Trie树(字典树)、并查集(MergeSet)以及欧拉路径(Euler Path)这...
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...
WinMerge-2.16.31-x64-Setup安装包
与 RubyMine 中的 Araxis Merge 进行比较这个...配置将compare_with_araxis_merge.rb脚本放在用户的主目录中。 例如, /Users/eugene 。 在脚本中配置您的项目和分支名称: * 在BRANCH常量中指定您的分支名称。 * 在PRO
本文将深入探讨“Image Merge”这一主题,它涉及到如何将两幅图像合并成一幅新的图像。我们将主要关注`image.merge`功能以及其在实际应用中的使用。 在OpenCV库中,`merge`函数是一个关键的图像处理操作,它允许...
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev ...
sudo apt-get install -y python-wstool python-rosdep ninja-build ``` - 创建新的Catkin工作空间。 ```sh mkdir catkin_ws cd catkin_ws wstool init src ``` - 合并`cartographer_ros.rosinstall`文件并...
java java_leetcode题解之Minimum Cost to Merge Stones.java
npm install --save-dev webpack-merge-and-include-globally 用法 假设您想使诸如jquery , moment (包括3种语言)和toastr在全球范围内可用,而您正在努力通过webpack使它们成为全局库,或者只是因为require()...
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 ...