Debian7安装Chrome浏览器安装包(.deb包)失败

6400阅读 0评论2013-05-09 zhengb302
分类:LINUX

文章已迁移到: 
从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一条命令完成安装。



上一篇:Debian 7.0 Wheezy 稳定版正式发布
下一篇:Debian7安装中文KDE环境