分类: Linux 2015-01-24 21:26 554人阅读 评论(0) 收藏 举报

1. 问题:

  1. usloft1359:~# rvm install 2.2.0
  2. Searching for binary rubies, this might take some time.
  3. No binary rubies available for: debian/6/x86_64/ruby-2.2.0.
  4. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
  5. /usr/local/rvm/scripts/functions/support: line 360: rvm_debug: command not found
  6. Checking requirements for debian.
  7. Installing requirements for debian.
  8. Updating system...
  9. Installing required packages: gawk, libreadline6-dev, libyaml-dev, libsqlite3-dev, sqlite3, libgdbm-dev, libffi-dev...
  10. Error running 'requirements_debian_libs_install gawk libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libgdbm-dev libffi-dev',
  11. 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
  12. libc6-dev : Depends: libc6 (= 2.19-13) but 2.18-4 is to be installed
  13. libc6-i386 : Depends: libc6 (= 2.19-13) but 2.18-4 is to be installed
  14. libffi-dev : Depends: libffi6 (= 3.1-2+b2) but it is not going to be installed
  15. libgdbm-dev : Depends: libgdbm3 (= 1.8.3-13.1) but 1.8.3-9 is to be installed
  16. Breaks: libgdbm3 (< 1.8.3-12.1) but 1.8.3-9 is to be installed
  17. libreadline6-dev : Depends: libreadline6 (= 6.3-8+b3) but 6.1-3 is to be installed
  18. Depends: libtinfo-dev but it is not going to be installed
  19. libsqlite3-dev : Depends: libsqlite3-0 (= 3.8.7.4-1) but 3.7.3-1 is to be installed
  20. libyaml-dev : Depends: libyaml-0-2 (= 0.1.6-3) but it is not going to be installed
  21. locales : Depends: glibc-2.19-1
  22. sqlite3 : Depends: libsqlite3-0 (= 3.8.7.4-1) but 3.7.3-1 is to be installed
  23. Depends: libtinfo5 but it is not going to be installed
  24. E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
  25. ++ return 100
  26. ++ 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 , 还是报错

  1. usloft1359:~# apt-get --fix-broken install
  2. <pre name="code" class="plain">debconf: DbDriver "config": /var/cache/debconf/config.dat is lock

4. 解决(3), 使用 fuser 找到进程ID并杀之

  1. fuser /var/cache/debconf/config.dat
  1. kill 找到的ID
  1. 参考 http://blog.chinaunix.net/uid-15750156-id-3075708.html
  1. </pre><pre code_snippet_id="588231" snippet_file_name="blog_20150124_8_1223340" name="code" class="plain">
  1. 5. 再执行 apt-get -f install 最终解决

版权声明:本文为博主原创文章,未经博主允许不得转载。

http://blog.csdn.net/beiquandeng/article/details/43090899

执行 apt-get -f install 提示错误的更多相关文章

  1. 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 ...

  2. Ubuntu中 apt-get -f install 命令

    Ubuntu 下当发现可能是安装的其他软件包不兼容导致了安装包出错时,可以根据提示需要执行“sudo apt-get  -f install ”来卸载之前的冲突包. 如果安装过aptitude包,还可 ...

  3. 【Java_基础】cmd下使用java命令运行class文件提示“错误:找不到或无法加载主类“的问题分析

    1.问题如下 当在命令行使用java命令执行字节码文件时提示“错误:找不到或无法加载主类” 2. 问题分析 这是由于在运行时类的全名应该是包名+类名,例如在包net.xsoftlab.baike下的类 ...

  4. 出现命令提示apt-get -f install的解决方法

    提示apt-get -f install这个信息,然后查看其他的提示信息发现时缺少了一些以依赖库. 解决办法为执行:sudo apt-get -f install命令. 该命令的含义是去补全那些缺少的 ...

  5. android Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded

    Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded 解决方法: 找到Eclipse安装目录的文件,\eclipse\e ...

  6. 曲演杂坛--SQLCMD下执行命令失败但没有任何错误提示的坑

    今天使用SQLCMD导入到SQL SERVER数据库中,看着数据文件都成功执行,但是意外发现有一个文件数据没有成功导入,但执行不报错,很容易导致问题被忽略. 使用存在问题的文件做下测试,从界面上看几行 ...

  7. 转载:Linux下执行SVN命令时提示错误:Valid UTF-8 data

    在Linux下执行svn add *时出现如下错误: svn:  Valid UTF-8  data(hex: 4b)followed by invalid UTF-8 sequence(hex:  ...

  8. 安装npm install app-inspector -g 提示错误

    问题1: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^ (node_modules\app-inspector\node_mod ...

  9. 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 ...

随机推荐

  1. 打印出最后执行的mysql 语句

    db.php 文件中添加 public function getlastsql(){ return $this->sql; } 入口文件中添加,公共方法 function getlastsql( ...

  2. raise()函数

    kill和raise函数用来发送信号, 区别在于: kill把信号发送给进程或进程组. kill(pid_t pid, int signo) raise把信号发送给进程自己,相当于 raise(ing ...

  3. BFS and Queue

    BFS (Bridth First Search) can be implemented by a queue. Procedure is like this: (Q is Queue) 1, Put ...

  4. linux expr命令参数及用法详解

    expr用法 expr命令一般用于整数值,但也可用于字符串.一般格式为: #expr argument operator argument expr也是一个手工命令行计数器. #$expr 10 + ...

  5. external 里面文件的介绍

    搞了半天android,竟然对external下的库一无所知?不能容忍! 马上解决: android-mock:编译为java静态库.说明:Android Mock is a framework fo ...

  6. 1.2 sikuli API

    sikuli API网站:http://nightly.sikuli.de/docs/index.html eclipse中如果要用到相应的 sikuli 功能,可以查看API ,然后import相应 ...

  7. C语言头文件

    最近在工作当中遇到了一点小问题,关于C语言头文件的应用问题,主要还是关于全局变量的定义和声明问题.学习C语言已经有好几年了,工作使用也近半年了,但是对于这部分的东西的确还没有深入的思考过.概念上还是比 ...

  8. LightOJ 1030 Discovering Gold 数学期望计算

    题目大意:给出长度为n的一条隧道,每个位置都有一定数量的财宝.给你一枚骰子,roll到几点就前进几步,如果即将到达的地方超过了这条隧道长度,就重新roll一次,走到n点结束.求这个过程能收获多少财宝. ...

  9. HDU2586 How far away ? 邻接表+DFS

    题目大意:n个房子,m次询问.接下来给出n-1行数据,每行数据有u,v,w三个数,代表u到v的距离为w(双向),值得注意的是所修建的道路不会经过一座房子超过一次.m次询问,每次询问给出u,v求u,v之 ...

  10. [转]于Fragment和Activity之间onCreateOptionsMenu的问题

    Fragment和Activity一样,可以重写onCreateOptionsMenu方法来设定自己的菜单,其实这两个地方使用onCreateOptionsMenu的目的和效果都是完全一样的,但是由于 ...