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?
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?
```
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.
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/
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
0
Dec 25
|
34 | |||
|
0
Jan 25
|
2216 | |||
|
1
Jun 26
|
458 | |||
|
0
Jun 26
|
2 | |||
|
0
Jun 26
|
3 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Same issue here, cannot do a new install because of deprecated python3-pypdf2 package.