定制的 debian/control 文件:依赖关系无法满足(python3-psycopg2)

定制的 debian/control 文件:依赖关系无法满足(python3-psycopg2)

我想在 Ubuntu 18.04 上安装我自己的 Odoo 11 Debian 包。这是我的 debian/control 文件的“Depends”部分:

Depends:
 ${misc:Depends},
 ${python3:Depends},
 adduser,
 lsb-base,
 node-less,
 postgresql-client,
 python3-dev,
 build-essential,
 python3-babel,
 python3-dateutil,
 python3-decorator,
 python3-docutils,
 python3-feedparser,
 python3-html2text,
 python3-pil,
 python3-jinja2,
 python3-lxml,
 python3-mako,
 python3-mock,
 python3-passlib,
 python3-psutil,
 python3-psycopg2 (= 2.7.4),
 python3-pydot,
 python3-pyparsing,
 python3-pypdf2,
 python3-reportlab,
 python3-requests,
 python3-suds,
 python3-tz,
 python3-vatnumber,
 python3-werkzeug,
 python3-xlsxwriter,
 python3-yaml,
 wkhtmltopdf, 
 nodejs,
 npm,
 python3-pip,
 python3-venv,
 python3-wheel,
 libxslt1-dev,
 libzip-dev,
 libldap2-dev,
 libsasl2-dev,
 python3-setuptools,
 node-less,
 postgresql-10,
 nginx,
 python3-xlwt,
Conflicts: tinyerp-server, openerp-server, openerp-web, openerp
Replaces: tinyerp-server, openerp-server, openerp-web, openerp
Recommends:
 ${python3:Recommends},
 python3-pyldap,
 python3-qrcode,
 python3-vobject,

但是,当我尝试使用 gdebi 安装该包时,出现此错误:

Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: python3-psycopg2 (= 2.7.4)

这是结果apt-cache policy python3-psycopg2(我有自己的依赖源本地存储库)

python3-psycopg2:
  Installed: (none)
  Candidate: 2.8.6-2~pgdg90+1
  Version table:
     2.8.6-2~pgdg90+1 500
        500 http://10.3.0.70/local-repo  Packages
     2.7.4-1 500
        500 http://id.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://10.3.0.70/local-repo  Packages

我确实需要仅安装 python3-psycopg2 的 2.7.4 版本,因为 Ubuntu 18.04 不支持 2.8.6 版本。如何解决这个问题?

相关内容