Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Referral Program
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Installation of odoo 19 on debian trixie

Subscribe

Get notified when there's activity on this post

This question has been flagged
systemservice
3 Replies
3753 Views
Avatar
Razorcat Development GmbH, Wolfgang Rohe

The installation of odoo 19 on debian trixie ends with the message  "Depends python3-pypdf2".

Thats correct, because only package python3-pypdf is available debian trixie.

When is an odoo_19.0.2025*_all.deb package available for trixie?

0
Avatar
Discard
Julius

Same issue here, cannot do a new install because of deprecated python3-pypdf2 package.

Avatar
Christian Großegger
Best Answer
Thanks Danai Sae-Han. I want to add a Solution when working via the apt-install method on Debian 13 Trixie. (Via grok-AI)

Here are the Instructions:


You want to keep using `apt` (or `aptitude`/`apt-get`) as much as possible, but still bypass the broken `python3-pypdf2` dependency that currently blocks the official `odoo` package on Debian Trixie/testing (or Sid).

The cleanest and safest way to do this while still letting `apt` manage the installation and future upgrades is to use an “APT preferences pin” combined with “Provides/Equivs” so that `python3-pypdf` satisfies the (old) dependency on `python3-pypdf2`.

Here is the recommended method (2025, Debian Trixie/bookworm-mix era):

### Step-by-step: Fix it properly for apt

1. **Install the new replacement package first**
   ```bash
   sudo apt update
   sudo apt install python3-pypdf
   ```

2. **Create a small “equivalence” package that tells apt: “python3-pypdf provides python3-pypdf2”**

   Create the package with `equivs`:

   ```bash
   sudo apt install equivs   # one-time install if you don’t have it

   mkdir ~/odoo-fix && cd ~/odoo-fix
   cat > odoo-pypdf2-fix.control <<EOF
   Section: misc
   Priority: optional
   Standards-Version: 3.9.8
   Package: python3-pypdf2
   Version: 9999
   Depends: python3-pypdf
   Provides: python3-pypdf2
   Architecture: all
   Description: Virtual package to satisfy old Odoo dependency
    The real package is now called python3-pypdf.
    This dummy package makes the old Odoo .deb happy again.
   EOF

   equivs-build odoo-pypdf2-fix.control
   ```

   This creates `python3-pypdf2_9999_all.deb` in the current directory.

3. **Install the dummy package**
   ```bash
   sudo dpkg -i python3-pypdf2_9999_all.deb
   sudo apt install -f   # just in case
   ```

4. **Now install Odoo normally with apt**
   ```bash
   sudo apt update
   sudo apt install odoo
   ```

   → It will now succeed because the dependency `python3-pypdf2` is considered satisfied by your dummy package (which itself depends on the real `python3-pypdf`).

5. **(Optional but recommended) Also fix wkhtmltopdf in one go**
   ```bash
   cd /tmp/
   wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb
   sudo apt install ./wkhtmltox_0.12.6.1-3.bookworm_amd64.deb

   ```

0
Avatar
Discard
Avatar
Joseph Mullins
Best Answer

Another way to solve is with the equivs package.

sudo apt install equivs

Then create a control file

/tmp/python3-pypdf2

With content

Section: python
Priority: optional
Standards-Version: 4.6.0

Package: python3-pypdf2
Version: 3.0.0
Maintainer: Joseph Mullins <joseph.mullins@digitize.au>
Depends: python3-pypdf
Description: Dummy transitional package for python3-pypdf2

Then build with 

equivs-build /tmp/python3-pypdf2

Install with

apt install ./python3-pypdf2_3.0.0_all.deb

Make sure you install python3-pypdf though. As it's still a required dependency. 

0
Avatar
Discard
Avatar
Danai Sae-Han
Best Answer

Hi Wolfgang and Julius,

This is indeed an issue, but can be fixed rather easily.  I recently made a blog post [1] that goes into deeper details into how and why, but below is a short answer.

The package python3-pypdf2 has been superseded by python3-pypdf (confusing, I know).  Fortunately, it is rather easy to fix this by yourself.

First we need to extract the Debian package to a new folder (change the filenames accordingly):

dpkg-deb --raw-extract odoo_19.0.20251014_all.deb odoo_19.0.20251014_all_custom

We now change the package dependency with a Perl one-liner (again, change the filename if necessary):

perl -pi -e 's/(python3-pypdf)2/$1/' odoo_19.0.20251014_all_custom/DEBIAN/control

It is time to repackage the custom folder into a new Debian package:

dpkg-deb -b odoo_19.0.20251014_all_custom odoo_19.0.20251014_all_custom.deb

Now you can install the new, custom Debian package of Odoo as root or another user with elevated permissions.  Enjoy!


P.S.: don't forget to also install wkhtmltox (the Bookworm version works on Trixie).

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-3.bookworm_amd64.deb

[1] https://consulting.go-han.net/posts/1760547257283-fix-odoo-package-dependency-on-python3-pypdf2/

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
(((Reservas Contacto Ayuda)))¿Cuál es el número de teléfono de JetBlue en Ecuador?
stock system service
Avatar
0
Dec 25
34
customizing label prints
system function service
Avatar
0
Jan 25
2216
Odoo 18 - Facebook Page Connected but Existing Posts Are Not Synced
system
Avatar
Avatar
1
Jun 26
458
How to Display the Standard Receipt Screen for a "Pay Later" Order in Odoo 19 POS?
service
Avatar
0
Jun 26
2
Does YouTube TV have 24-7 customer service?
service
Avatar
0
Jun 26
3
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now