package python3 3.6.5-3 failed to install/upgrade: installed python3 package post-installation script subprocess returned error exit status 4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| HPLIP |
Undecided
|
Unassigned | ||
| hplip (Ubuntu) |
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
ProcVersionSign
Uname: Linux 4.15.0-15-generic x86_64
NonfreeKernelMo
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
RelatedPackageV
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)
derisolde (derisolde-h) wrote : | #1 |
Launchpad Janitor (janitor) wrote : | #2 |
Changed in python3-defaults (Ubuntu): | |
status: | New → Confirmed |
tags: | removed: need-duplicate-check |
Brian Murray (brian-murray) wrote : | #3 |
running python rtupdate hooks for python3.6...
E: py3compile:183: cannot create directory /usr/share/
...
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 |
srinivas (srinivas5) wrote : | #4 |
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/
How to enable cups log :
-> go to /etc/cups/
-> 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/
3)Output of hp-check -rt
Thanks
Srinivas
Changed in hplip: | |
status: | New → In Progress |
Daniel Ayers (4n6expert) wrote : | #5 |
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.
Daniel Ayers (4n6expert) wrote : | #6 |
Output from hp-check -rt.
bkb (bkb-b) wrote : | #7 |
Same problem, this helps me.
https:/
sudo apt install --reinstall hplip hplip-data
sudo apt install --reinstal python3
hplip-3.18.6.run
Stewart Kluss (stewart-kluss) wrote : | #8 |
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.
fleamour (gtx-swift) wrote : | #9 |
sudo rm /usr/share/
Izzy (turtleizzy) wrote : | #10 |
Same problem, solution in #9 helped me.
bkb (bkb-b) wrote : | #11 |
Same problem, solution in #9 was good
Alfred R (AT) (hofgartel) wrote : | #12 |
Thank you very much #9 helped
Juan Alonso (juanalonsogj-j) wrote : | #13 |
Same problem, solution in #9 helped me. (I am running Linux Mint 19)
saludos
ALBATROS_L (philippe-gay11) wrote : | #14 |
Same problem, solution in #9 helped me. (I run Linux Mint 19 as Juan (13)).
Thanks all!
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-
gnome-
Package python3 is not configured yet.
Changed in hplip: | |
status: | In Progress → Invalid |
Changed in hplip (Ubuntu): | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Confirmed |
Till Kamppeter (till-kamppeter) wrote : | #16 |
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/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
Till Kamppeter (till-kamppeter) wrote : | #17 |
I have started to address remedy 3: bug 1862926.
Status changed to 'Confirmed' because the bug affects multiple users.