On Ubuntu Kylin detect all packages as not genuine

Bug #1419061 reported by Fabio Marconi
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Kylin
Fix Released
High
Aron Xu
ubuntukylin-default-settings (Ubuntu)
Fix Released
High
Aron Xu

Bug Description

Hallo
In Vivid if I run apport-bug (pkg) it always return that is not a genuine package:

The problem cannot be reported:

This is not an official Ubuntu package. Please remove any third party package and try again.

see attached screenshot.
Set as critical because it represent a loss of informations in a test environement ( eg: a medium user feel discouraged to report a bug)
Thanks
Fabio

P.S.:
This start happening after apport's upgrades and NOT runing a fresh installation.

- WORKAROUND at #20
---
ApportLog:

ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
DistroRelease: Ubuntu Kylin 14.10
InstallationDate: Installed on 2014-08-12 (184 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
Package: apport 2.16.1-0ubuntu2 [origin: Ubuntu]
PackageArchitecture: all
ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5
Tags: third-party-packages vivid
Uname: Linux 3.18.0-13-generic x86_64
UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
UpgradeStatus: Upgraded to vivid on 2015-01-10 (33 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ApportVersion: 2.16.2-0ubuntu1
Architecture: amd64
CrashReports:
 640:1000:120:72115:2015-03-05 10:38:22.031167507 +0100:2015-03-06 10:30:38.543396523 +0100:/var/crash/_usr_bin_sogou-qimpanel.1000.crash
 644:0:120:0:2015-03-06 10:24:01.613003795 +0100:2015-03-06 10:30:17.487292102 +0100:/var/crash/_usr_lib_x86_64-linux-gnu_indicator-sound_indicator-sound-service.108.upload
 640:110:120:4951702:2015-03-06 18:50:04.986461639 +0100:2015-03-06 18:50:05.986461639 +0100:/var/crash/_usr_share_apport_apport-gtk.110.crash
 640:108:120:306702:2015-03-06 10:22:15.169228553 +0100:2015-03-06 10:24:02.636496873 +0100:/var/crash/_usr_lib_x86_64-linux-gnu_indicator-sound_indicator-sound-service.108.crash
 600:110:120:0:2015-03-06 10:24:21.091356436 +0100:2015-02-24 22:14:44.551599595 +0100:/var/crash/_usr_lib_x86_64-linux-gnu_indicator-sound_indicator-sound-service.108.uploaded
CurrentDesktop: Unity
DistroRelease: Ubuntu Kylin 15.04
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-02-24 (9 days ago)
InstallationMedia: Ubuntu-Kylin 15.04 "Vivid Vervet" - Alpha amd64 (20150224)
Package: apport 2.16.2-0ubuntu1 [origin: Ubuntu]
PackageArchitecture: all
Tags: third-party-packages vivid
Uname: Linux 4.0.0-040000rc2-generic x86_64
UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
tags: added: vivid
Changed in apport (Ubuntu):
importance: Undecided → Critical
description: updated
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

I think you need to run apt-get update, then it'll work.

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo,
As suggested in the list I've cleaned out the /var/lib/apt/lists/* then updated the cahce but the error still present.
Best regards

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you run apport-collect for this bug report? What desktop environment are you using?

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Fabio Marconi (fabiomarconi) wrote : CrashReports.txt

apport information

tags: added: apport-collected third-party-packages
description: updated
Revision history for this message
Fabio Marconi (fabiomarconi) wrote : Dependencies.txt

apport information

Revision history for this message
Fabio Marconi (fabiomarconi) wrote : ProcEnviron.txt

apport information

Revision history for this message
Fabio Marconi (fabiomarconi) wrote : Re: detect all packages as not genuine

Hallo Brian
Your suspects about the desktop environement are right, this was originally an Ubuntu desktop installation over wich I have installed the Ubuntu Kylin desktop env.
Best regards

Changed in apport (Ubuntu):
status: Incomplete → New
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

Could you show the output of apt-cache policy apport and also add your /etc/apt/sources.list file? Thanks!

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Of course, here they are:

njin@ZZZZ:~$ apt-cache policy apport
apport:
  Installed: 2.16.1-0ubuntu2
  Candidate: 2.16.1-0ubuntu2
  Version table:
 *** 2.16.1-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Brian Murray (brian-murray) wrote :

What do you have in the directory /usr/share/apport/general-hooks?

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

I have these:

njin@ZZZZ:~$ ls /usr/share/apport/general-hooks
clickinfo.py generic.py powerpc.py ubuntu.py
clickinfo.pyc generic.pyc powerpc.pyc ubuntu.pyc
cloud_archive.py parse_segv.py ubuntu-gnome.py wayland_session.py
cloud_archive.pyc parse_segv.pyc ubuntu-gnome.pyc wayland_session.pyc
njin@ZZZZ:~$

Revision history for this message
Brian Murray (brian-murray) wrote :

How did you install Ubuntu Kylin? Its strange to me that DistroRelease says 14.10 but the bug is tagged vivid.

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo
I installed a normal Ubuntu 14.04.01, upgraded to Utopic, upgraded to Vivid and then I have installed Ubuntukylin-desktop.
I am trying just now to redo all the steps I made to see if it is reproducible.
I've also tried a daily build of Vivid in wich apport is working normally.
Best regards

Changed in apport (Ubuntu):
importance: Critical → Medium
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo Brian
I have reistalled the system using a Ubuntu-Kylin Vivid image some weeks ago and it was working.
Now after these latest upgrades it is broken again, same behavior as before, all the packages are detected as NOT genuine.
Weird things I have done are installation of Ubuntu's mainline kernels and utilities like gdebi, synaptic, xchat and sogou pinyin input method, all fully working.
Any hint??
Best regards

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
Revision history for this message
Fabio Marconi (fabiomarconi) wrote : ApportLog.txt

apport information

description: updated
Revision history for this message
Fabio Marconi (fabiomarconi) wrote : Dependencies.txt

apport information

Revision history for this message
Fabio Marconi (fabiomarconi) wrote : ProcEnviron.txt

apport information

Changed in apport (Ubuntu):
importance: Medium → High
Revision history for this message
Brian Murray (brian-murray) wrote : Re: detect all packages as not genuine

This happens because /etc/os-release contains NAME="Ubuntu Kylin" and is_distro_package from packaging-apt-dpkg.py uses that as a part of checking if if the package is of "native" origin.

summary: - detect all packages as not genuine
+ On Ubuntu Kylin detect all packages as not genuine
Revision history for this message
Brian Murray (brian-murray) wrote :

I did have a crash report from an Ubuntu Kylin install appear in the Error Tracker though:

https://errors.ubuntu.com/oops/72a8f026-c671-11e4-bbc6-fa163e4ccdf2

Changed in ubuntukylin:
importance: Undecided → High
milestone: none → vivid-beta2
status: New → Triaged
Changed in apport (Ubuntu):
status: Confirmed → Triaged
Changed in ubuntukylin:
importance: High → Critical
description: updated
Changed in ubuntukylin:
importance: Critical → High
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Yes!!
I've manually edited the /etc/os-release file deleting kylin and it works.
Thanks and best regards

description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

> This happens because /etc/os-release contains NAME="Ubuntu Kylin" and

Eek! That's not intended..

So could whatever modifies this file also create a corresponding /etc/apport/native-origins.d/ubuntu-kylin containing "Ubuntu Kylin"?

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo Martin
Happy to meet you
I do not have that file in my Vivid Kylin, inside /etc/apport/native-origins.d I have firefox and thunderbird files, nothing more.
Thanks and best regards

Revision history for this message
Brian Murray (brian-murray) wrote :

It's the ubuntukylin-default-settings package which modifies /etc/os-release:

 $ grep -r 'os-release' *
debian/ubuntukylin-default-settings.postrm: sed -i "/NAME/s/Ubuntu Kylin/Ubuntu/g" /etc/os-release
debian/changelog: * Be more specific in replacing Ubuntu in /etc/os-release to prevent
debian/changelog: * Use os-release instead of ubuntukylin-release
debian/ubuntukylin-default-settings.preinst: sed -i 's/\(NAME="Ubuntu\)"/\1 Kylin"/' /etc/os-release
debian/ubuntukylin-default-settings.preinst: sed -i 's/\(PRETTY_NAME="Ubuntu\) 1/\1 Kylin 1/' /etc/os-release

So that package should also contain the apport setup in comment #23.

affects: apport (Ubuntu) → ubuntukylin-default-settings (Ubuntu)
Aron Xu (happyaron)
Changed in ubuntukylin-default-settings (Ubuntu):
assignee: nobody → Aron Xu (happyaron)
Changed in ubuntukylin:
assignee: nobody → Aron Xu (happyaron)
Changed in ubuntukylin-default-settings (Ubuntu):
status: Triaged → In Progress
Aron Xu (happyaron)
Changed in ubuntukylin-default-settings (Ubuntu):
status: In Progress → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
jiaowen520li (jiaowen520li) wrote :

This bug still exists in UK15.04-0311-Daily-amd64.

Aron Xu (happyaron)
Changed in ubuntukylin-default-settings (Ubuntu):
status: In Progress → Fix Committed
Changed in ubuntukylin:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntukylin-default-settings - 1.3.7

---------------
ubuntukylin-default-settings (1.3.7) vivid; urgency=medium

  * Install native origin configuration for apport (LP: #1419061)
 -- Aron Xu <email address hidden> Tue, 17 Mar 2015 16:49:26 +0800

Changed in ubuntukylin-default-settings (Ubuntu):
status: Fix Committed → Fix Released
Aron Xu (happyaron)
Changed in ubuntukylin:
status: Fix Committed → Fix Released
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.