package python3 3.6.5-3 failed to install/upgrade: installed python3 package post-installation script subprocess returned error exit status 4

Bug #1766020 reported by derisolde
404
This bug affects 49 people
Affects Status Importance Assigned to Milestone
HPLIP
Invalid
Undecided
Unassigned
hplip (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Hello, error came up while updating. Paketmanager has canceled the update completely. Not yet analyzed for errors with console ...

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: python3 3.6.5-3
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu6
Architecture: amd64
Date: Sun Apr 22 00:01:23 2018
ErrorMessage: installed python3 package post-installation script subprocess returned error exit status 4
InstallationDate: Installed on 2018-04-04 (17 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.1
SourcePackage: python3-defaults
Title: package python3 3.6.5-3 failed to install/upgrade: installed python3 package post-installation script subprocess returned error exit status 4
UpgradeStatus: Upgraded to bionic on 2018-04-04 (17 days ago)

Revision history for this message
derisolde (derisolde-h) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python3-defaults (Ubuntu):
status: New → Confirmed
tags: removed: need-duplicate-check
Revision history for this message
Brian Murray (brian-murray) wrote :

running python rtupdate hooks for python3.6...
E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')
...
error running python rtupdate hook hplip-data
dpkg: error processing package python3 (--configure):
 installed python3 package post-installation script subprocess returned error exit status 4

Seems like a bug in hplip-data.

affects: python3-defaults (Ubuntu) → hplip (Ubuntu)
Changed in hplip (Ubuntu):
importance: Undecided → Medium
Revision history for this message
srinivas (srinivas5) wrote :

Hi Brain,

Can you please let me know the hplip version you installed.
when you got this error "error running python rtupdate hook hplip-data", what are the commands you tried.

Can you please provide me the following logs
1) syslog.
  It will be there in the path /var/log/syslog.

2) error_log for cups
path: /var/log/cups/error_log
How to enable cups log :
-> go to /etc/cups/cupsd.conf
-> Change the Loglevel from warn to debug2 and save the file.
-> restart the cups before adding the printer using hp-setup - /etc/init.d/cups restart

Please clear the logs before adding the printer using
1)cp /dev/null /var/log/syslog.
2)cp /dev/null /var/log/cups/error_log.

3)Output of hp-check -rt

Thanks
Srinivas

srinivas (srinivas5)
Changed in hplip:
status: New → In Progress
Revision history for this message
Daniel Ayers (4n6expert) wrote :

I have just struck this bug on 18.04LTS - not when installing hplip (it has been installed & working for weeks) but when doing an "apt -y upgrade".

The problem was caused by an error in the python3 rtupdate hook hplip-data.

I am running hplip 3.18.5. Failed update transaction is attached.

Revision history for this message
Daniel Ayers (4n6expert) wrote :

Output from hp-check -rt.

Revision history for this message
bkb (bkb-b) wrote :

Same problem, this helps me.

https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1781414
sudo apt install --reinstall hplip hplip-data
sudo apt install --reinstal python3
hplip-3.18.6.run

Revision history for this message
Stewart Kluss (stewart-kluss) wrote :

I have the same problem trying to back up my system using Deja Dup. When I try to run the app, I first get a message that I need to install package gvfs-backends

When I try to install the package, I get 'Error while installing package: installed python3 package post-installation script subprocess returned error exit status 4.

Then, Deja Dup turns itself off. I cannot back up my system with it.

Revision history for this message
fleamour (gtx-swift) wrote :

sudo rm /usr/share/python3/runtime.d/hplip-data.rtupdate

Revision history for this message
Izzy (turtleizzy) wrote :

Same problem, solution in #9 helped me.

Revision history for this message
bkb (bkb-b) wrote :

Same problem, solution in #9 was good

Revision history for this message
Alfred R (AT) (hofgartel) wrote :

Thank you very much #9 helped

Revision history for this message
Juan Alonso (juanalonsogj-j) wrote :

Same problem, solution in #9 helped me. (I am running Linux Mint 19)
saludos

Revision history for this message
ALBATROS_L (philippe-gay11) wrote :

Same problem, solution in #9 helped me. (I run Linux Mint 19 as Juan (13)).
Thanks all!

Revision history for this message
Anantha Krishna K S (ananthakrishna-ks) wrote :

dpkg: error processing package python3 (--configure):
 installed python3 package post-installation script subprocess returned error exit status 4
dpkg: dependency problems prevent configuration of gnome-online-accounts:
 gnome-online-accounts depends on python3; however:
  Package python3 is not configured yet.

Changed in hplip:
status: In Progress → Invalid
Vincent Hu (vincent-hu)
Changed in hplip (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Download full text (8.4 KiB)

What happens in the following (taken from the attachment of comment #5):

----------
Setting up python3 (3.6.5-3ubuntu1) ...
running python rtupdate hooks for python3.6...
E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')
[Errno 2] No such file or directory: '/usr/share/hplip/fax/__init__.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/coverpages.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/fax.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/faxdevice.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/ledmfax.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/ledmsoapfax.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/marvellfax.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/pmlfax.py'
[Errno 2] No such file or directory: '/usr/share/hplip/fax/soapfax.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aboutdialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aboutdialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aligndialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aligndialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/cleandialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/cleandialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/colorcaldialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/colorcaldialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devicesetupdialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devicesetupdialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/deviceuricombobox.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devmgr5.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devmgr5_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devmgr_ext.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/fabgrouptable.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/fabnametable.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/fabwindow.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/fabwindow_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/faxsetupdialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/faxsetupdialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/filetable.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/firmwaredialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/firmwaredialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/infodialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/infodialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/linefeedcaldialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/linefeedcaldialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/loadpapergroupbox.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/...

Read more...

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have started to address remedy 3: bug 1862926.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.