Chinaunix首页 | 论坛 | 博客
  • 博客访问: 493936
  • 博文数量: 51
  • 博客积分: 257
  • 博客等级: 二等列兵
  • 技术积分: 1489
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-02 18:30
个人简介

Unix/Linux, mysql, web,企业应用

文章分类

全部博文(51)

文章存档

2015年(1)

2014年(1)

2013年(48)

2012年(1)

我的朋友

分类: LINUX

2013-05-09 00:36:59

文章已迁移到: 
从Google Chrome官方网站下载了个Chrome安装包(.deb包),直接用 dpkg -i xxx.deb 安装,没想到缺少依赖的包,导致安装失败。原始的错误信息已经找不到了,类似的错误信息如下:
  1. $ sudo apt-get install chkrootkit
  2. Reading package lists… Done
  3. Building dependency tree… Done
  4. You might want to run ‘apt-get -f install’ to correct these:
  5. The following packages have unmet dependencies.
  6. libcurl4-gnutls-dev: Depends: libcurl3-gnutls (= 7.18.2-8) but it is not going to be installed
  7. Depends: libgnutls-dev
  8. Depends: zlib1g-dev but it is not going to be installed
  9. Depends: libidn11-dev but it is not going to be installed
  10. Depends: libkrb5-dev but it is not going to be installed or hurd but it is not installable
  11. Depends: libldap2-dev but it is not going to be installed
  12. E: unmet dependencies. try ‘apt-get -f install’ with no packages (or specify a solution).
然后我试着安装curl,也出现了类似的错误:
  1. # apt-get install curl
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. You might want to run \'apt-get -f install\' to correct these:
  6. The following packages have unmet dependencies:
  7. curl : Depends: libcurl3 (= 7.26.0-1+wheezy2) but it is not going to be installed
  8. google-chrome-stable : Depends: libgconf2-4 (>= 2.27.0) but it is not going to be installed
  9. Depends: libnss3-1d (>= 3.12.3) but it is not going to be installed
  10. Depends: libcurl3 but it is not going to be installed
  11. E: Unmet dependencies. Try \'apt-get -f install\' with no packages (or specify a solution).
问题就是因为在安装Chrome安装包失败后,导致APT...(此处我也不知道怎么写,反正就那么回事儿)。网上Google了一下,问题解决。只要卸载清理掉没完整安装成功的Chrome安装包就可以了:
  1. # apt-get purge google-chrome-stable
卸载清理之后,再安装Chrome安装包所依赖的那几个包:
  1. # apt-get install libgconf2-4 libnss3-1d libcurl3
现在apt-get能正常工作了。安装完这几个包之后,再安装Chrome:
  1. # dpkg -i /home/zb/software/google-chrome-stable_current_amd64.deb
安装成功!!!
用apt-get再去安装别的软件包也没问题了!

看来直接用dpkg命令离线安装.deb包并不能自动解决依赖关系,装软件还是apt-get方便,幸好Debian在这方便做的相当不错,大部分的软件都能通过apt-get一条命令完成安装。



阅读(6313) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~