执行 apt-get -f install 提示错误
1. 问题:
- usloft1359:~# rvm install 2.2.0
- Searching for binary rubies, this might take some time.
- No binary rubies available for: debian/6/x86_64/ruby-2.2.0.
- Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
- /usr/local/rvm/scripts/functions/support: line 360: rvm_debug: command not found
- Checking requirements for debian.
- Installing requirements for debian.
- Updating system...
- Installing required packages: gawk, libreadline6-dev, libyaml-dev, libsqlite3-dev, sqlite3, libgdbm-dev, libffi-dev...
- Error running 'requirements_debian_libs_install gawk libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libgdbm-dev libffi-dev',
- showing last 15 lines of /usr/local/rvm/log/1422103005_ruby-2.2.0/package_install_gawk_libreadline6-dev_libyaml-dev_libsqlite3-dev_sqlite3_libgdbm-dev_libffi-dev.log
- libc6-dev : Depends: libc6 (= 2.19-13) but 2.18-4 is to be installed
- libc6-i386 : Depends: libc6 (= 2.19-13) but 2.18-4 is to be installed
- libffi-dev : Depends: libffi6 (= 3.1-2+b2) but it is not going to be installed
- libgdbm-dev : Depends: libgdbm3 (= 1.8.3-13.1) but 1.8.3-9 is to be installed
- Breaks: libgdbm3 (< 1.8.3-12.1) but 1.8.3-9 is to be installed
- libreadline6-dev : Depends: libreadline6 (= 6.3-8+b3) but 6.1-3 is to be installed
- Depends: libtinfo-dev but it is not going to be installed
- libsqlite3-dev : Depends: libsqlite3-0 (= 3.8.7.4-1) but 3.7.3-1 is to be installed
- libyaml-dev : Depends: libyaml-0-2 (= 0.1.6-3) but it is not going to be installed
- locales : Depends: glibc-2.19-1
- sqlite3 : Depends: libsqlite3-0 (= 3.8.7.4-1) but 3.7.3-1 is to be installed
- Depends: libtinfo5 but it is not going to be installed
- E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
- ++ return 100
- ++ return 100
2. 解决(1) apt-get -f install, 可还是在报错
Hit http://ftp.de.debian.org sid/main amd64 Packages/DiffIndex
Fetched 190 B in 0s (259 B/s)
Reading package lists... Done
W: GPG error: http://us.archive.ubuntu.com lucid Release: The fo
llowing
signatures couldn't be verified because the public key i
s not available: NO_PUBKEY 40976EAF437D05B5
usloft1359:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (> 2.19) but 2.18-4 is installed
libc6-dev : Depends: libc6 (= 2.19-13) but 2.18-4 is installed
libc6-i386 : Depends: libc6 (= 2.19-13) but 2.18-4 is installed
locales : Depends: glibc-2.19-1
E: Unmet dependencies. Try using -f.
3. 解决(2)apt-get check , 还是报错
- usloft1359:~# apt-get --fix-broken install
- <pre name="code" class="plain">debconf: DbDriver "config": /var/cache/debconf/config.dat is lock
4. 解决(3), 使用 fuser 找到进程ID并杀之
- fuser /var/cache/debconf/config.dat
- kill 找到的ID
- 参考 http://blog.chinaunix.net/uid-15750156-id-3075708.html
- </pre><pre code_snippet_id="588231" snippet_file_name="blog_20150124_8_1223340" name="code" class="plain">
- 5. 再执行 apt-get -f install 最终解决
版权声明:本文为博主原创文章,未经博主允许不得转载。
http://blog.csdn.net/beiquandeng/article/details/43090899
执行 apt-get -f install 提示错误的更多相关文章
- Unmet dependencies. Try 'apt-get -f install' with no packages
在ubuntu14.04上用sudo apt-get install percona-xtrabackup安装xtrabackup时提示 zhj@my-SERVER:~$ sudo apt-get i ...
- Ubuntu中 apt-get -f install 命令
Ubuntu 下当发现可能是安装的其他软件包不兼容导致了安装包出错时,可以根据提示需要执行“sudo apt-get -f install ”来卸载之前的冲突包. 如果安装过aptitude包,还可 ...
- 【Java_基础】cmd下使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析
1.问题如下 当在命令行使用java命令执行字节码文件时提示“错误:找不到或无法加载主类” 2. 问题分析 这是由于在运行时类的全名应该是包名+类名,例如在包net.xsoftlab.baike下的类 ...
- 出现命令提示apt-get -f install的解决方法
提示apt-get -f install这个信息,然后查看其他的提示信息发现时缺少了一些以依赖库. 解决办法为执行:sudo apt-get -f install命令. 该命令的含义是去补全那些缺少的 ...
- android Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded
Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded 解决方法: 找到Eclipse安装目录的文件,\eclipse\e ...
- 曲演杂坛--SQLCMD下执行命令失败但没有任何错误提示的坑
今天使用SQLCMD导入到SQL SERVER数据库中,看着数据文件都成功执行,但是意外发现有一个文件数据没有成功导入,但执行不报错,很容易导致问题被忽略. 使用存在问题的文件做下测试,从界面上看几行 ...
- 转载:Linux下执行SVN命令时提示错误:Valid UTF-8 data
在Linux下执行svn add *时出现如下错误: svn: Valid UTF-8 data(hex: 4b)followed by invalid UTF-8 sequence(hex: ...
- 安装npm install app-inspector -g 提示错误
问题1: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^ (node_modules\app-inspector\node_mod ...
- MYSQL导入CSV格式文件数据执行提示错误(ERROR 1290): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement.
MYSQL导入CSV格式文件数据执行提示错误(ERROR 1290): The MySQL server is running with the --secure-file-priv option s ...
随机推荐
- 《JS权威指南学习总结--3.8类型转换》
JS数据类型转换方法主要有三种: 转换函数.强制类型转换.利用js变量弱类型转换. 一.转换函数 parseInt()和parseFloat()两个转换函数. ...
- hdu_5750_Dertouzos(线性筛)
题目连接:hdu_5750_Dertouzos 题意: 给你一个n,一个d,问你比n小的数中有多少个数的最大的因子为d,比如6有因子1 2 3 最大的为3 题解: 当时比赛做这题的时候没考虑常数的优化 ...
- assert()函数用法
assert是定义在头文件cassert中的宏 其作用是如果他的返回值不为真则终止程序. assert(expression); if 为假,先向stderr打印一条错误信息,再用abort终止程序 ...
- why is agreement hard in a distributed system?
same question as: why is PAXOS necessary? 1, what if >1 nodes become leaders simultaneously? that ...
- Java 学习路线
java 入门到精通 转自:http://forum.hibernate.org.cn作者:robbinJava Learning Path (一).工具篇 一. JDK (Java Develop ...
- PatrolRobot(UVa1600)BFS
PatrolRobot(UVa1600)BFS 珉黻郐距 河吏蝉醉 闵棵黏言 芤她之瞌 褰上稽莨 錾傻奉 郦玫睃芩 摇摇头还没回答魏海洪就抢先回答道:呵呵你们几个别试 蚰镉氡 钬 绦可 ...
- 如何获取path与basePath
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding=& ...
- java transient修饰符
1)一旦变量被transient修饰,变量将不再是对象持久化的一部分,该变量内容在序列化后无法获得访问. 2)transient关键字只能修饰变量,而不能修饰方法和类.注意,本地变量是不能被trans ...
- oracle-查询执行速度慢的sql
Oracle 查询每天执行慢的SQL 2014-12-11 18:00:04 分类: Oracle 链接:http://blog.itpub.net/28602568/viewspace-136484 ...
- 【转载】newInstance()和new()
newInstance()和new() 在Java开发特别是数据库开发中,经常会用到Class.forName( )这个方法.通过查询Java Documentation我们会发现使用Class.fo ...