How to fix broken packages?(转)】的更多相关文章

How to Fix Broken Packages in Ubuntu By Nick Congleton – Posted on Jan 11, 2019 in Linux   Apt, Ubuntu’s package manager, is among the most powerful and intuitive, but that doesn’t mean that things can’t go wrong. Occasionally, a package install goes…
Try Code: sudo apt-get update to update your package list.Then Code: sudo apt-get autoclean to clean up any partial packages.Then Code: sudo apt-get clean to clean up the apt cache. Code: sudo apt-get autoremove will clean up any unneeded dependencie…
在Ubuntu中安装软件的时候经常碰到E: Unable to correct problems, you have held broken packages.的错误,顾名思义是因为某些软件包冲突导致,幸运的话sudo apt-get update && sudo apt-get upgrade 可以解决,但这种情况属于可遇不可求,更多的适合这么做不济于事.这样一来如何彻底解决就成了一个问题,经过多次摸索之后,将可行的解决方法记录如下: 以安装libxml2-dev时错误为例,安装时提示如…
在用apt 安装软件时,有时会用国内的源以加快下载速度. 但是在使用ubuntu 14.04的过程中,这一过程可能会导致错误“Unable to correct problems, you have held broken packages”. 经测试,网上的apt-get install -f, aptitude等都无效.其实只要将源换成官方的源,然后apt-get update, apt-get upgrade即可解决.…
问题: apt install libmysqlclient-dev Reading package lists... DoneBuilding dependency tree       Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the…
zengqi@zengqi:~$ sudo apt-get install openssh-server Reading package lists... DoneBuilding dependency tree       Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if…
参考: Unable to correct problems, you have held broken packages 环境 Ubuntu 14.04, 64bit 问题 在安装gcc-4.9的时候,执行: $ sudo apt-get install gcc-4.9 出现以下错误: E: Unable to correct problems, you have held broken packages. 解决方案 1.我的解决方案是先upgrade后update: $ sudo apt-g…
Use aptitude instead of apt-get. It is more intelligent. It not only will handle downgrading conflicting packages for you, but will make a series of recommendations asking you which of many possible suggested working scenarios you would like. sudo ap…
今天安装build-essential时出现了以下问题,这属于包的依赖. 解决方案: 1,sudo apt-get install aptitude:完成aptitude命令安装 2,sudo aptitude install 软件包:自动安装某个软件包 3,出现以下选项 4,完成安装 注:aptitude这个命令可以自动处理安装包之间的依赖关系 参考链接:https://www.shangmayuan.com/a/834381feea79424297f4a5f3.html…
解决E: Encountered a section with no Package: header错误 我的ubuntu机器上出现下面这个错误. Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ftp.sjtu.edu.cn_ubuntu_dists_precise-security_rest…