Unable to correct problems, you have held broken package
其实这篇接着上文(一),主要是解决samba安装的问题,中间又是一路曲折。不过这个问题也算是比较典型,有必要记录一下。
#apt-get install smb* 安装失败。其实顺利的话,直接一条这样的命令就过了,上次就是直接过的,不知道这次怎么蹦出来的。
Error: Unable to correct problems, you have held broken package
这个在使用Ubuntu系统的时候多多少少都碰到过,尤其是用旧版本的系统。
这个记得之前在BlackTrack里面更新中文语音包的时候,遇到过类似的问题,这里算是放在一起总结一下吧。
#apt-get update ,upgrade,dist-upgrade
#apt-get clean, autoclean ,clear cache
#apt-get install build-essential
#aptitude install *** ,purge
#aptitude why-not citadel-mta
#apt-get install -f
Synaptic->Custom Filters->Broken to see what appears to be broken.
以上方法全部执行一遍,大概就可以解决,不过过程中更新会耗不少时间。如果不行的话,添加Ubuntu的更新源,重复上述步骤。
不过我最后解决貌似还不是因为这个,中间我尝试执行#apt-get install smbd*
然后更新了一堆东西,貌似这个过程顺便把samba服务一并安装了,我直接locate 到了smb.conf文件。
后面检查service smbd status, running,果然是装好了。
另一个小插曲:
smbd*安装完后,执行sudo 会有以下错误:
Error :no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
这个google一下解决比较简单:http://ubuntuforums.org/showthread.php?t=2214042
#apt-cache policy samba
#apt-get remove libpam-smbpass
总结下:
1、技术问题问google, 不要问某度,这是有经验的程序员和新手程序员效率区分之一;
2、菜鸟遇到问题只会一路google,会陷入问题A——>问题B——>问题C....最后只是参考别人的做法解决了问题,但其实并不明白问题出在哪;大牛遇到问题首先根据自己的知识体系,迅速定位问题到某个局部,最多google一两下就解决了,两种方式效率差距可见一般。
就这两天的记录,基本自己还处于前者,基础知识真是忘记了不少,私房菜有必要再拿出来翻翻了。
Unable to correct problems, you have held broken package的更多相关文章
- E: Unable to correct problems, you have held broken packages 解决方法
在Ubuntu中安装软件的时候经常碰到E: Unable to correct problems, you have held broken packages.的错误,顾名思义是因为某些软件包冲突导致 ...
- ubuntu 'Unable to correct problems, you have held broken packages' 错误
在用apt 安装软件时,有时会用国内的源以加快下载速度. 但是在使用ubuntu 14.04的过程中,这一过程可能会导致错误“Unable to correct problems, you have ...
- E: Unable to correct problems, you have held broken packages
问题: apt install libmysqlclient-dev Reading package lists... DoneBuilding dependency tree Readi ...
- ubuntu16 安装openssh-server 一直安装不上Unable to correct problems, you have held broken packages
zengqi@zengqi:~$ sudo apt-get install openssh-server Reading package lists... DoneBuilding dependenc ...
- 解决 E: Unable to correct problems, you have held broken packages. 问题
参考: Unable to correct problems, you have held broken packages 环境 Ubuntu 14.04, 64bit 问题 在安装gcc-4.9的时 ...
- E: Unable to correct problems, you have held broken packages-之apt-get 下载报依赖问题
今天在新来了一台ubutnu 18.04 在安装zabbix客户端是报依赖问题 root@VM_0_10:~# apt-get install zabbix-agent Reading package ...
- Unable to correct problems, you have held broken packages
Use aptitude instead of apt-get. It is more intelligent. It not only will handle downgrading conflic ...
- 如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题. aptitude
今天安装build-essential时出现了以下问题,这属于包的依赖. 解决方案: 1,sudo apt-get install aptitude:完成aptitude命令安装 2,sudo apt ...
- python-imaging-tk : Depends: python-imaging (= 1.1.7-4ubuntu0.12.04.3) but 3.1.2-0ubuntu1.1 is to be installed E: Unable to corre
最近,将电脑主机升级到ubuntu16.04,但是需要用到 python-imaging-tk,先是报错: import PIL.ImageTk as ImageTkImportError: No m ...
随机推荐
- java继承的一些问题
如果在父类中,你声明了一个静态变量. 然后你有两个子类继承了这个父类.我们想看看这两个子类调用继承的父类的类变量a是不是同一个值. 这时候注意,我们在子类的时候不能重写static int a = a ...
- ElasticSearch安装及简单配置说明
目录 1. 准备安装包... 1 2. 安装jdk7. 1 3. 安装ElasticSearch. 2 4. 安装maven. 3 5. 集成IK ...
- 安装nodejs+npm的体验
NODEJS.NPM安装配置步骤(WINDOWS版本) 1.windows下的NodeJS安装是比较方便的(v0.6.0版本之后,支持windows native),只需要登陆官网(http://no ...
- Leetcode 944. Delete Columns to Make Sorted
class Solution: def minDeletionSize(self, A: List[str]) -> int: ans = 0 for j in range(len(A[0])) ...
- Visual Studio编辑类模板的位置
VS的版本一直在不断更新,每个版本的安装目录都是有一点变化,所以模板文件的位置也是不一样的,下面是从StackOverflow看到的一个大合集,转发记录一下: Extract, edit and re ...
- MySQL auto_increment介绍 以及 查询和修改auto_increment的方法
一.auto_increment使用方法 .创建table时设置auto_increment属性和初始值100 create table nonove ( id bigint unsigned not ...
- Python之matplotlib库
知识结构 pyplot.plot()流程 1. _axes.py中plot()函数说明 a. 调用说明 plot([x], y, [fmt], data=None, **kwargs) p ...
- Scrapy组件之item
Scrapy是一个流行的网络爬虫框架,从现在起将陆续记录Python3.6下Scrapy整个学习过程,方便后续补充和学习.Python网络爬虫之scrapy(一)已经介绍scrapy安装.项目创建和测 ...
- vi下的查找替换命令
1.查找 查找命令 /pattern:向下查找匹配的字符 ?pattern:向上查找匹配的字符 其中pattern是需要匹配的字符串,例如: /cd #全文查找cd / cd <Enter> ...
- Spring Boot系列—(一)入门
前言 因为项目组需要进行微服务改造,而微服务开发中需要以Spring Boot为基础.因此需要先弄懂SpringBoot. 我们先来看看SpringBoot的背景由来,SpringBoot是什么,一个 ...