是否可以改变包的依赖关系?

是否可以改变包的依赖关系?

我想更改软件包的依赖项slack-desktop。我的情况很复杂,但我会尝试解释我为什么要这样做。我想使用此命令降级 slack-desktop sudo apt install slack-desktop=3.1.1,但我收到此错误:

slack-desktop:依赖于:libcurl3,无法安装

它是从保加利亚语翻译而来的,因为我的 Ubuntu 是保加利亚语。我想降级 slack 的版本,因为最新版本的 slack 3.3.3 不适用于 Ubuntu 18.10。此外,我收到此错误是因为我已经在系统上安装了 libcurl4,我不想降级它,因为我的许多软件包也依赖于它,所以我不想有 slack 而丢失其他软件包,所以我的问题是,在使用 apt 安装软件包时,我是否可以更改软件包的依赖关系?

侧节点:我已经知道我可以下载 deb 包并操作它,并将 libcurl3 更改为 libcurl4 重建 deb 文件并安装它,但是当我运行时apt update/upgrade它总是升级 slack-desktop甚至我已经告诉他了抓住该包和 dpkg 也同样有效。

有人可以提出一些建议

输出apt-cache policy slack-desktop libcurl3 libcurl4

slack-desktop:
  Installed: 3.3.3
  Candidate: 3.3.3
  Version table:
 *** 3.3.3 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
        100 /var/lib/dpkg/status
     3.3.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.2.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.2.0-beta25a7a50e 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.1.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.1.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.0.5 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.0.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     3.0.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.9.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.8.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.8.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.8.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.7.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.7.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.6.3 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.6.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.6.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.5.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.5.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.4.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.3.4 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.3.3 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.3.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.2.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.1.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.1.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.1.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.6 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.5 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.4 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.3 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     2.0.0 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     1.2.6 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     1.2.5 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     1.2.4 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     1.2.3 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     1.2.2 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
     1.2.1 500
        500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
libcurl3:
  Installed: (none)
  Candidate: (none)
  Version table:
libcurl4:
  Installed: 7.61.0-1ubuntu2.2
  Candidate: 7.61.0-1ubuntu2.2
  Version table:
 *** 7.61.0-1ubuntu2.2 500
        500 http://security.ubuntu.com/ubuntu cosmic-security/main amd64 Packages
        500 http://bg.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     7.61.0-1ubuntu2 500
        500 http://bg.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages

相关内容