参考: 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…
在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…
今天安装build-essential时出现了以下问题,这属于包的依赖. 解决方案: 1,sudo apt-get install aptitude:完成aptitude命令安装 2,sudo aptitude install 软件包:自动安装某个软件包 3,出现以下选项 4,完成安装 注:aptitude这个命令可以自动处理安装包之间的依赖关系 参考链接:https://www.shangmayuan.com/a/834381feea79424297f4a5f3.html…
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…
今天在新来了一台ubutnu 18.04 在安装zabbix客户端是报依赖问题 root@VM_0_10:~# apt-get install zabbix-agent Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested…
其实这篇接着上文(一),主要是解决samba安装的问题,中间又是一路曲折.不过这个问题也算是比较典型,有必要记录一下. #apt-get install smb* 安装失败.其实顺利的话,直接一条这样的命令就过了,上次就是直接过的,不知道这次怎么蹦出来的. Error:  Unable to correct problems, you have held broken package 这个在使用Ubuntu系统的时候多多少少都碰到过,尤其是用旧版本的系统. 这个记得之前在BlackTrack里面…
问题: Springboot启动报错: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.…