ubuntu focal(20.04)上的 apt-rdepends php8.2 依赖于 media-types

ubuntu focal(20.04)上的 apt-rdepends php8.2 依赖于 media-types

php8.2我正在尝试在离线 Ubuntu 20.04 (focal) 系统上安装。

我找到了一个指南OSTechNix下载包及其依赖项。

我第一次尝试下载php8.2依赖项,结果如下:

$ apt-get download $(apt-rdepends php8.2 | grep -v "^ ")
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Can't select candidate version from package apache2-api-20120211 as it has no candidate
E: Can't select candidate version from package debconf-2.0 as it has no candidate
E: Can't select candidate version from package libaprutil1-dbd-freetds as it has no candidate
E: Can't select candidate version from package media-types as it has no candidate
E: Can't select candidate version from package time-daemon as it has no candidate
E: Can't select candidate version from package systemd-tmpfiles as it has no candidate

我按照页面上的说明尝试修复缺失的候选者,通过逐一搜索,最终得到:

$ apt-get download $(apt-rdepends php8.2 | grep -v "^ " | \
  sed 's/debconf-2.0/debconf/g' | \
  sed 's/apache2-api-20120211/apache2-bin/g' | \
  sed 's/time-daemon/ntp/g' | \
  sed 's/systemd-tmpfiles/systemd/g' | \
  sed 's/libaprutil1-dbd-freetds/apr-util/g')
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Can't select candidate version from package media-types as it has no candidate

现在,media-types 是一个源自 ubuntu 下一个版本(jammy 及以后版本)的包。

作为候选人,我如何跳过媒体类型?

相关内容