执行 apt-get -f install 提示错误

执行 apt-get -f install 提示错误

分类: 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 , 还是报错

[plain] view plaincopyprint?

  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并杀之

[plain] view plaincopyprint?

  1. fuser /var/cache/debconf/config.dat

[plain] view plaincopyprint?

  1. kill 找到的ID

[plain] view plaincopyprint?

  1. 参考 http://blog.chinaunix.net/uid-15750156-id-3075708.html

[plain] view plaincopyprint?

  1. </pre><pre code_snippet_id="588231" snippet_file_name="blog_20150124_8_1223340" name="code" class="plain">

[plain] view plaincopyprint?

  1. 5. 再执行 apt-get -f install 最终解决

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

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

时间: 2024-08-14 05:27:58

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

Unmet dependencies. Try &#39;apt-get -f install&#39; with no packages

在ubuntu14.04上用sudo apt-get install percona-xtrabackup安装xtrabackup时提示 [email protected]:~$ sudo apt-get install percona-xtrabackup [sudo] password for zhj: Reading package lists... Done Building dependency tree Reading state information... Done You mi

Ubuntu下apt-get安装文件提示:apt-get -f install

问题: 在通过apt-get安装内存测试工具lmbench的时候,出现如下错误: apt-get install lmbench 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 d

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

在Linux下执行svn add *时出现如下错误: svn:  Valid UTF-8  data(hex: 4b)followed by invalid UTF-8 sequence(hex:  fc 63 68  65) 出现这个错误是因为svn库里有文件的名字不是utf-8编码的,这种情况对于中文来说很常见.比如在自己的windows上建了一个中文名字的文件,就会使这种情况. 几经周折,才找到解决办法: 首先,执行命令: ls * | file -/dev/stdin:  ISO-885

hive执行query语句时提示错误:org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.io.IOException:

hive> select product_id, track_time from trackinfo limit 5; Total MapReduce jobs = 1 Launching Job 1 out of 1 Number of reduce tasks is set to 0 since there's no reduce operator org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.io.IOEx

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

Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded 解决方法: 找到Eclipse安装目录的文件,\eclipse\eclipse.ini 打开把 launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx512m- 修改为: launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=

CentOS6.5桌面版安装VirtualBox提示错误/etc/init.d/vboxdrv setup

安装步骤 1.在VirtualBox主页上面下载 VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm 2.双击安装 3.安装完成后选择镜像后安装系统后将出现错误对话框并提示你运行 /etc/init.d/vboxdrv setup 来解决问题 4.运行/etc/init.d/vboxdrv setup,仍然发现错误并且标准输出提示你查看/var/log/vbox-install.log来发现错误 5.运行vi /var/log/vbox-install.log

ubuntu安装软件或upgrade出现 You might want to run &#39;apt-get -f install&#39; to correct these

今天在ubuntu下安装任何软件都提示以下错误: You might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies: kate : Depends: kdelibs4c2a (>= 4:3.5.9) but it is not going to be installed        Depends: libqt3-mt (>= 3:3.3.8b)

Python3.4 安装 pycrypto 提示错误的处理办法

今天做接口测试,有个接口的参数使用了 AES 加密,开发也提供了加密函数的实现,但是 Python2.6 实现的,我习惯使用的是 Python3.4,于是准备做下兼容处理,结果过程中发现安装 pycrypto 库会报错. 作为测试,定位问题并解决问题乃是我们的强项,于是花了点时间把问题处理了,顺便把解决的结果做个记录,如果后面有同学碰到同样的问题,也不用重复踩坑了. 先看看我安装库用的命令行: python34 -m pip install pycrypto 下面是报错信息: running b

使用tp访问数据库时提示错误: &#39;PDO&#39; not found, 和not defined constant mysql_attr_init_command

第一个问题: PDO not found 是因为 php没有安装pdo扩展, 无法提供给 php 以 数据库访问功能, 所以 报错是在文件: Think/Db.class.php的里面. 解决方法是: 给 php安装 PDO 扩展: dnf install php-pdo 这时 再看 就可以 在 默认 自动 加载的modules目录 中 看到: /usr/lib/php/modules pdo.so这个共享库 安装好 pdo后, 又出现了 没有定义 mysql_attr_init_command