dpkg安装deb缺少依赖包的解决方法

问题描述
~/Downloads$ sudo dpkg -i youdao-dict_1.1.0-0-deepin_amd64.deb
Selecting previously unselected package youdao-dict.
(Reading database … 205197 files and directories currently installed.)
Preparing to unpack youdao-dict_1.1.0-0-deepin_amd64.deb …
Unpacking youdao-dict (1.1.0-0~deepin) …
dpkg: dependency problems prevent configuration of youdao-dict:
youdao-dict depends on tesseract-ocr; however:
Package tesseract-ocr is not installed.
youdao-dict depends on tesseract-ocr-eng; however:
Package tesseract-ocr-eng is not installed.
youdao-dict depends on tesseract-ocr-chi-sim; however:
Package tesseract-ocr-chi-sim is not installed.
youdao-dict depends on tesseract-ocr-chi-tra; however:
Package tesseract-ocr-chi-tra is not installed.
youdao-dict depends on ttf-wqy-microhei; however:
Package ttf-wqy-microhei is not installed.
youdao-dict depends on python3-pyqt5; however:
Package python3-pyqt5 is not installed.
youdao-dict depends on python3-xlib; however:
Package python3-xlib is not installed.
youdao-dict depends on python3-pyqt5.qtmultimedia; however:
Package python3-pyqt5.qtmultimedia is not installed.
youdao-dict depends on python3-pyqt5.qtquick; however:
Package python3-pyqt5.qtquick is not installed.
youdao-dict depends on python3-pyqt5.qtwebkit; however:
Package py
dpkg: error processing package youdao-dict (–install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) …
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.59ubuntu1) …
Errors were encountered while processing:
youdao-dict
例如安装有道词典时 出现上述的问题 显示缺少一些依赖
执行如下指令:
sudo apt-get -f install

  1. sudo命令:sudo命令用来以其他身份来执行命令,预设的身份为root,简单来说就是提升权限,因为apt-get install是要安装程序,这个需要管理员权限,因此借助于sudo命令提权。
  2. apt-get命令:apt-get命令是Debian Linux发行版中的APT软件包管理工具。所有基于Debian的发行都使用这个包管理系统。deb包可以把一个应用的文件包在一起,大体就如同Windows上的安装文件。
  3. install:是apt-get命令的参数,用于安装程序包。
  4. -f参数为–fix-broken的简写形式,可以在man apt-get 中搜索-f参数查询到其帮助信息。
    在这里插入图片描述
    -f参数的主要作用是是修复依赖关系(depends),假如用户的系统上有某个package不满足依赖条件,这个命令就会自动修复,安装程序包所依赖的包。

你可能感兴趣的:(dpkg安装deb缺少依赖包的解决方法)