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 ...
随机推荐
- 转:大数据时代快速SQL引擎-Impala
本文来自:http://blog.csdn.net/yu616568/article/details/52431835 如有侵权 可立即删除 背景 随着大数据时代的到来,Hadoop在过去几年以接近统 ...
- 【scala】构造器
和Java或C++一样,Scala可以有任意多的构造器. 不过Scala类有一个构造器比其他所有构造器都更为重要,它就是主构造器. 除了主构造器之外,类还可以有任意多的辅助构造器. 主构造器 在Sca ...
- C#中的异常捕获机制(try catch finally)
(转自:http://blog.csdn.net/zevin/article/details/6901489) 一.C#的异常处理所用到关键字try 用于检查发生的异常,并帮助发送任何可能的异常.ca ...
- log4j文件的配置
public class TestLog4j { /** * 级别从大到小 * fatal * error * warn * info * debug * trace * * off:不打印任何信息! ...
- ss-libev 源码解析local篇(1): ss_local的启动,客户端连入
学习研究ss-libev的一点记录(基于版本3.0.6) ss_local主要代码在local.c中,如果作为一个库编译,可通过start_ss_local_server启动local server. ...
- Leetcode 807. Max Increase to Keep City Skyline
class Solution(object): def maxIncreaseKeepingSkyline(self, grid): """ :type grid: Li ...
- svg实现 圆形 点击扩大、消失
效果: 代码: <!DOCTYPE html> <html> <head lang="en"> <meta charset="U ...
- Write operations are not allowed in read-only mode 只读模式下(FlushMode.NEVER/MANUAL)写操作不
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read ...
- OpenWRT mt7620n 系统升级引起的问题
版权声明:本文为博主原创文章,未经博主同意不得转载. https://blog.csdn.net/qianguozheng/article/details/27237175 OpenWRT系统升级採用 ...
- Ambari的API调用
GET api/v1/clusters/HDP/configurations可以获得所有的配置信息(例如,http://hdp0:8080/api/v1/clusters/HDP/configurat ...