Score:0

Customized debian/control file: Dependency is not satisfiable (python3-psycopg2)

ch flag

I want to install my own Odoo 11 Debian package on Ubuntu 18.04. Here's the "Depends" part of my debian/control file:

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,

But, when I try to install the package using gdebi, I got this error:

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)

This is the result of apt-cache policy python3-psycopg2 (I have my own local repository for dependency sources)

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

I really need to install only the 2.7.4 version of the python3-psycopg2 because the 2.8.6 version isn't supported in Ubuntu 18.04. How to solve this?

guiverc avatar
cn flag
[Ubuntu 18.04 LTS has reached the end of it's *standard* support life](https://fridge.ubuntu.com/2023/05/13/extended-security-maintenance-for-ubuntu-18-04-bionic-beaver-begins-31-may-2023/) thus is now off-topic here unless your question is specific to helping you move to a *fully supported* release of Ubuntu. Ubuntu 18.04 ESM support is available, but not on-topic here, see https://askubuntu.com/help/on-topic See also https://ubuntu.com//blog/18-04-end-of-standard-support
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.