package update-notifier-common 3.168.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1676852 reported by Laurie on 2017-03-28
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Undecided
Unassigned

Bug Description

I've been getting this error since installing Python 3.6, and when flashinstaller tries to update. It keeps complaining of a missing module called 'debian.deb822'

Where do I get this mythical module, and where should it be installed, so I can get my system back to normal?

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: update-notifier-common 3.168.4
ProcVersionSignature: Ubuntu 4.4.0-70.91-generic 4.4.49
Uname: Linux 4.4.0-70-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Tue Mar 28 07:45:00 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-08-11 (595 days ago)
InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.20
SourcePackage: update-notifier
Title: package update-notifier-common 3.168.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Laurie (ljl069) wrote :
tags: removed: need-duplicate-check
Steve Langasek (vorlon) wrote :

> I've been getting this error since installing Python 3.6

Do you mean you've manually overwritten the system python3 installation on your 16.04 install?

> Where do I get this mythical module

$ dpkg -S python3*deb822|grep '\.py'
python3-debian: /usr/lib/python3/dist-packages/deb822.py
python3-debian: /usr/lib/python3/dist-packages/debian/deb822.py
python3-debian: /usr/share/doc/python3-debian/examples/deb822/grep_native_packages.py
$

> and where should it be installed, so I can get my system back to normal?

You need to fix your system so that 'python3' on the path runs the system python3.5.

How did you install python 3.6?

Changed in update-notifier (Ubuntu):
status: New → Incomplete
Brian Murray (brian-murray) wrote :

Based off the DpkgHistoryLog.txt things started to go wrong about here:

Start-Date: 2017-03-10 16:03:09
Commandline: apt install python3.6
Requested-By: laurie (1000)
Install: libpython3.6-minimal:amd64 (3.6.0-2~16.04.york0, automatic), libpython3.6-stdlib:amd64 (3.6.0-2~16.04.york0, automatic), python3.6:amd64 (3.6.0-2~16.04.york0), python3.6-minimal:amd64 (3.6.0-2~16.04.york0, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2017-03-10 16:03:48

Laurie (ljl069) wrote :

I tried installing that york0 version of Python 3.6 first, but when it didn't work, I removed it and reinstalled from https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes.

Judging from the DpkgHistoryLog.txt, it seems like that york0 release messed things up.

How do I go about fixing the system so that the 'python3' on the path points to the system Python 3.5? Is it a symlink that needs changing, or more to it than that? Also, if I do that, will I still be able to use Python 3.6?

tags: added: bot-stop-nagging
Laurie (ljl069) wrote :

I was just checking into where the symlinks are pointing, and at least according to what I see in `/usr/bin/` the symlink for `python` is pointing to Python 2.7, and the one for `python3` is pointing to Python 3.5. But this doesn't make sense, as when I run either of those commands, they both execute Python 3.6.

However, I also found a symlink in `/usr/local/bin` for `python3` and that link is pointing to Python 3.6. There is no symlink in `ust/local/bin` for `python`. Should I remove or change this symlink? If so, how do I go about doing that?

As I said, I tried the `york0` dist first, and removed it, replaced with the Deadsnakes dist which works, but now we have this issue. The `york0` one came from https://blueprints.launchpad.net/~jonathonf/+archive/ubuntu/python-3.6/+sourcepub/7461521/+listing-archive-extra

Launchpad Janitor (janitor) wrote :

[Expired for update-notifier (Ubuntu) because there has been no activity for 60 days.]

Changed in update-notifier (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers