dpkg -i 安装软件出现依赖的 解决办法

root@debian:/mnt/isolinux# cd /root/Downloads/
root@debian:~/Downloads# ls
debian-live-8.8.0-amd64-standard.iso           skypeforlinux-64.deb
firmware.tar.gz                       ubuntu-16.04.6-server-amd64.iso
onie-recovery-x86_64-accton_wedge100bf_32x-r0.iso
root@debian:~/Downloads#
root@debian:~/Downloads#
root@debian:~/Downloads#
root@debian:~/Downloads# dpkg -i skypeforlinux-64.deb
正在选中未选择的软件包 skypeforlinux。
(正在读取数据库 ... 系统当前共安装有 161590 个文件和目录。)
正准备解包 skypeforlinux-64.deb  ...
正在解包 skypeforlinux (8.34.0.78) ...
dpkg: 依赖关系问题使得 skypeforlinux 的配置工作不能继续:
 skypeforlinux 依赖于 gconf-service;然而:
  未安装软件包 gconf-service。
 skypeforlinux 依赖于 libgconf-2-4 (>= 3.2.5);然而:
  未安装软件包 libgconf-2-4。

dpkg: 处理软件包 skypeforlinux (--install)时出错:
 依赖关系问题 - 仍未被配置
正在处理用于 desktop-file-utils (0.23-1) 的触发器 ...
正在处理用于 mime-support (3.60) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.15-1) 的触发器 ...
在处理时有错误发生:
 skypeforlinux
root@debian:~/Downloads# apt update
获取:1 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease [18.1 kB]
忽略:2 http://mirrors.163.com/debian stretch InRelease                                    
获取:3 http://mirrors.163.com/debian stretch-updates InRelease [91.0 kB]                  
获取:4 http://mirrors.163.com/debian stretch-backports InRelease [91.8 kB]                
命中:5 https://download.docker.com/linux/debian stretch InRelease                         
忽略:6 http://www.scootersoftware.com bcompare4 InRelease                                 
命中:7 http://mirrors.163.com/debian-security stretch/updates InRelease                   
获取:8 http://mirrors.163.com/debian stretch-proposed-updates InRelease [110 kB]          
命中:9 http://mirrors.163.com/debian stretch Release                                      
命中:10 http://www.scootersoftware.com bcompare4 Release                                  
命中:11 http://linux.teamviewer.com/deb stable InRelease                                  
已下载 311 kB,耗时 1秒 (241 kB/s)               
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有 12 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
root@debian:~/Downloads# apt upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 skypeforlinux : 依赖: gconf-service 但是它还没有被安装
                 依赖: libgconf-2-4 (>= 3.2.5) 但是它还没有被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。

root@debian:~/Downloads# apt --fix-broken install
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在修复依赖关系... 完成
将会同时安装下列软件:
  gconf-service gconf2-common libgconf-2-4
下列【新】软件包将被安装:
  gconf-service gconf2-common libgconf-2-4
升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 12 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
需要下载 1,881 kB 的归档。
解压缩后会消耗 7,679 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.163.com/debian stretch/main amd64 gconf2-common all 3.2.6-4 [1,040 kB]
获取:2 http://mirrors.163.com/debian stretch/main amd64 libgconf-2-4 amd64 3.2.6-4+b1 [427 kB]
获取:3 http://mirrors.163.com/debian stretch/main amd64 gconf-service amd64 3.2.6-4+b1 [415 kB]
已下载 1,881 kB,耗时 7秒 (250 kB/s)                                                      
正在选中未选择的软件包 gconf2-common。
(正在读取数据库 ... 系统当前共安装有 161713 个文件和目录。)
正准备解包 .../gconf2-common_3.2.6-4_all.deb  ...
正在解包 gconf2-common (3.2.6-4) ...
正在选中未选择的软件包 libgconf-2-4:amd64。
正准备解包 .../libgconf-2-4_3.2.6-4+b1_amd64.deb  ...
正在解包 libgconf-2-4:amd64 (3.2.6-4+b1) ...
正在选中未选择的软件包 gconf-service。
正准备解包 .../gconf-service_3.2.6-4+b1_amd64.deb  ...
正在解包 gconf-service (3.2.6-4+b1) ...
正在设置 gconf2-common (3.2.6-4) ...

Creating config file /etc/gconf/2/path with new version
正在处理用于 sgml-base (1.29) 的触发器 ...
正在处理用于 libc-bin (2.24-11+deb9u4) 的触发器 ...
正在设置 libgconf-2-4:amd64 (3.2.6-4+b1) ...
正在设置 gconf-service (3.2.6-4+b1) ...
正在设置 skypeforlinux (8.34.0.78) ...
正在处理用于 libc-bin (2.24-11+deb9u4) 的触发器 ...
root@debian:~/Downloads#
root@debian:~/Downloads# dpkg -i skypeforlinux-64.deb
(正在读取数据库 ... 系统当前共安装有 161854 个文件和目录。)
正准备解包 skypeforlinux-64.deb  ...
正在将 skypeforlinux (8.34.0.78) 解包到 (8.34.0.78) 上 ...
正在设置 skypeforlinux (8.34.0.78) ...
正在处理用于 desktop-file-utils (0.23-1) 的触发器 ...
正在处理用于 mime-support (3.60) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.15-1) 的触发器 ...
root@debian:~/Downloads#

 

  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值