运行 dpkg 以安装依赖包

运行 dpkg 以安装依赖包

我已经下载了一个.deb文件,但是当我安装它时,它抱怨没有安装一堆软件包。我正在使用一个非常简单的焦点 Docker 镜像。

dpkg: dependency problems prevent configuration of wkhtmltox:
 wkhtmltox depends on fontconfig; however:
  Package fontconfig is not installed.
 wkhtmltox depends on libfreetype6; however:
  Package libfreetype6 is not installed.
 wkhtmltox depends on libjpeg-turbo8; however:
  Package libjpeg-turbo8 is not installed.
 wkhtmltox depends on libpng16-16; however:
  Package libpng16-16 is not installed.
 wkhtmltox depends on libx11-6; however:
  Package libx11-6 is not installed.
 wkhtmltox depends on libxcb1; however:
  Package libxcb1 is not installed.
 wkhtmltox depends on libxext6; however:
  Package libxext6 is not installed.
 wkhtmltox depends on libxrender1; however:
  Package libxrender1 is not installed.
 wkhtmltox depends on xfonts-75dpi; however:
  Package xfonts-75dpi is not installed.
 wkhtmltox depends on xfonts-base; however:
  Package xfonts-base is not installed.

我习惯了软件开发包管理器,它们通常只是继续安装依赖项。

我怎样才能做dpkg这样的工作?谢谢。

答案1

你无法做到dpkg这一点;适当的工具是apt.代替

dpkg -i /path/to/package.deb

使用

apt install /path/to/package.deb

相关内容