apport detect every package as not genuine

Bug #942180 reported by Fabio Marconi
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Italian ISO defaults package
Fix Released
Undecided
Unassigned
ubuntu-defaults-builder (Ubuntu)
Fix Released
Low
Martin Pitt

Bug Description

= Introduction =
Information about the Italian CD: https://wiki.ubuntu.com/ItalianCD
The CD has been created using ubuntu-defaults-image using the package on ubuntu-defaults-it-team/ubuntu-defaults-it

= Workaround =
Doing an "sudo apt-get update" avoid the problem.

= Original message =
Hello
I've downloaded the Italianized precise live cd from http://people.ubuntu.com/~xdatap1/ and burned to a cd.
Tha live session start whitout problem and fully italianized, but if I try to run ubuntu-bug, apport detect every package as not genuine.
I've also tried the normal image and apport is runnung perfectly, so I exclude a bug in apport.
I've tested this many times, the image is synced with zsync.
Thanks
Fabio
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

ProblemType: BugDistroRelease: Ubuntu 12.04
Package: ubuntu-defaults-builder 0.23
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Mon Feb 27 19:58:37 2012InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: allSourcePackage: ubuntu-defaults-builder
UpgradeStatus: Upgraded to precise on 2012-02-17 (10 days ago)

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
description: updated
description: updated
Revision history for this message
Paolo Rotolo (paolorotolo) wrote :

Hi,
I can confirm this issue.

Apport says me:

"Can't report the bug:
This isn't an official Ubuntu package. Please, remove all third-party packages and try again."

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

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

Changed in ubuntu-defaults-builder (Ubuntu):
status: New → Confirmed
Changed in ubuntu-defaults-it:
status: New → Confirmed
Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Reproduced with the Live CD. It doesn't affect the installed version, btw

summary: - apport detect every package as not genuine
+ Live session: apport detect every package as not genuine
Revision history for this message
Sergio Zanchetta (primes2h) wrote : Re: Live session: apport detect every package as not genuine

It's a blocker bug.
The first time I ran the live usb I got a bluetoothd error, the second a nautilus error.
These errors come up only on the Italian ISO.

Both time this bug prevent me from reporting them.

summary: - Live session: apport detect every package as not genuine
+ apport detect every package as not genuine
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo Paolo
I've to contraddict you in #4, because in my installed system (from 20120301 i386 image ) I can reproduce the bug everytime.
Fabio

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Hi Fabio, I just double checked in my installation and I was able to run:

ubuntu-bug unity
ubuntu-bug linux
ubuntu-bug myunity
ubuntu-bug firefox

Which packages are you trying to report?

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

Hi, today I have tried to report

ubuntu-bug linux
ubuntu-bug xorg

Now i'm going to install from a CD to see if the usb-creator 'exception' bug can have influence in this.
Fabio

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

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

No, usb-creator problem isn't related to this, I've got again the bug with every package you've tried.

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Fabio,

could you please check if this problem affect installations made from the installer, where you choose Try Ubuntu or Install Ubuntu, and installation made from the live session with the icon on the desktop.

I think my installation who works fine has been made from the installer.

Thanks in advance

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

I can't reproduce the problem on an installed system in VB.
I tried installing it both from "Install Ubuntu" and clicking on the desktop icon in a live environment.

I've just installed the base system, without third part or automatic update during installation.

@Fabio
Did you also install them?

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

Hello
I've reinstalled the system from scratch, using the 20120301 image, without updates and third part software, and I can reproduce the bug, in a real hardware.
I've run sudo apt-get update then executed update-manager that installs a new version of apport and now I cannot reproduce the bug.
Will be useful to test if the bug still reproducible in a image shipping the new version of apport to evaluate if this is an apport problem instead of ubuntu-default-builder.
Thanks and greetings
Fabio
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

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

Ops I forget to clarify that the installation was made following Paolo's instructions.

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

@ Sergio Zanchetta
@ Paolo Rotolo

When you've reproduced the bug the first time, you was running the image on a 64 bit machine ?

Revision history for this message
Paolo Rotolo (paolorotolo) wrote :

no, I was on a i386 machine.

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

@Fabio
I've always run 32 bit version.

Anyway, I can reproduce it only on a live environment.

The problem seems to be related to ubuntu-defaults-it ppa, in fact I've found a workaround.

Boot from a live usb/cd, open update-manager→Settings..., "other software" tab and uncheck "ubuntu-defaults-it" ppa.
Then just check for new updates (to reload data), no need to install them.

Open a terminal and "ubuntu-bug linux" (e.g) works!

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

Usually this happens when apt has not downloaded the package indexes yet, i. e. through "apt-get update", usually in the daily cronjob. But if it happens after a full installation, there's definitively something wrong there.

Can you please give me the output of

  python -c 'import apt; print apt.Cache()["firefox"].candidate.origins'

?

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

Hello Martin
This is the output in the live session and at the end of the installation made from CD, network connected, no update and third part software installed during the installation.

[<Origin component:'' archive:'now' origin:'' label:'' site:'' isTrusted:False>]

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

And this is the output after the first reboot of the installed system:

[<Origin component:'main' archive:'precise' origin:'Ubuntu' label:'Ubuntu' site:'it.archive.ubuntu.com' isTrusted:True>]

with apport fully working.

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

Right, that's very much expected then. Without a first apt-get update, apport cannot determine the origin of packages.

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Thank you Martin for spending your time on this.

I've upload the full building log here:

http://people.ubuntu.com/~xdatap1/20120301/precise-desktop-i386.log

We noticed some errors during the building process, like:

All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of start.
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of reload.
Setting up apt-transport-https (0.8.16~exp12ubuntu4) ...
Setting up at (3.1.13-1ubuntu1) ...
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of start.

Setting up software-center (5.1.11) ...
WARNING:softwarecenter.db.update:Failed to setup dbus (ignoring)
Updating software catalog...this may take a moment.
WARNING:softwarecenter.db.update:The file:
'/usr/share/app-install/desktop/kde-telepathy-send-file:kde4__ktp-send-file.desktop'
could not be read correctly. The application associated with this file
will not be included in the software catalog. Please consider raising
a bug report for this issue with the maintainer of that application

Processing triggers for libreoffice-common ...
javaldx: Could not find a Java Runtime Environment!
Please ensure that a JVM and the package libreoffice-java-common
is installed.
If it is already installed then try removing
~/.libreoffice/3/user/config/javasettings_Linux_*.xml
Synchronizing repository for bundled extensions

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-17-generic
df: Warning: cannot read table of mounted file systems: No such file
or directory

update-initramfs: Generating /boot/initrd.img-3.2.0-17-generic
df: Warning: cannot read table of mounted file systems: No such file
or directory
cryptsetup: WARNING: could not determine root device from /etc/fstab

Do you think it can be related?

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

Paolo, these errors look fairly normal. In the build chroot there are no D-BUS services running and init scripts are deliberately disabled as you do not want to actually start services in the chroot.

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

So this is well-known. defaults-builder could drop the cleanup of the apt lists, but that would severely increase the size of the images. I propose this could become an option, which would make the removal of /var/lib/apt/lists/* conditional in ubuntu-defaults-image:

# clean up files that we do not need
cat <<EOF > config/chroot_local-hooks/90_cleanup
#!/bin/sh
set -e
echo "$0: Removing unnecessary files..."
rm -vf /var/cache/apt/*cache.bin
rm -vf /var/lib/apt/lists/*_*
rm -vrf /tmp/*
EOF

The caches and /tmp/* etc. should still be cleaned.

Changed in ubuntu-defaults-builder (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Thank you Martin!

Yes, making this apt/lists cleaning optional would solve the problem for us. We've plenty of space, actual image with the italian translation, docs and customizations it is just 670Mb. I'm just wondering how this works in the official image since on it does works properly on it. It is cleaned in the official image?

Martin Pitt (pitti)
Changed in ubuntu-defaults-builder (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-defaults-builder - 0.24

---------------
ubuntu-defaults-builder (0.24) precise; urgency=low

  * debian/copyright, template/debian/copyright: Update to copyright format
    1.0.
  * debian/control, template/debian/control: Bump Standards-Version to 3.9.3.
  * Drop support for webbrowser/offline-startpage.txt, as this is not actually
    configurable in Firefox, and we do not support other browsers at the
    moment. (LP: #950097)
  * bin/ubuntu-defaults-image: Explicitly set LB_SYSLINUX_THEME, to not rely
    on live-build's static default (which is "ubuntu-oneiric" right now).
    (LP: #910859)
  * bin/ubuntu-defaults-image, man/ubuntu-defaults-image.1: Add --keep-apt
    option to not clean up /var/lib/apt/lists/*_Packages from the live system.
    This will significantly enlarge the resulting ISO image, but will make
    package related operations work without an initial "apt-get update" run.
    (LP: #942180)
  * template/desktop/default-{session,applications}.txt,
    template/webbrowser/searchengine.txt: Add comments that these files may
    not be changed for Ubuntu localizations, only for derivatives and OEM
    projects.
  * test/run: Change package name to "defaults-test", as with
    "ubuntu-defaults-test" we are going to fail for some customizations.
  * bin/dh_ubuntu_defaults: Check if template file has a "NotUbuntu:" tag, and
    if so, disallow changing defaults if the package name starts with
    "ubuntu-". (LP: #881371)
 -- Martin Pitt <email address hidden> Mon, 12 Mar 2012 15:03:23 +0100

Changed in ubuntu-defaults-builder (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Apport funziona correttamente nella build 20120311.

Changed in ubuntu-defaults-it:
status: Confirmed → Fix Released
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hello
njin@precious:~/iso$ apt-cache policy ubuntu-defaults-builder
ubuntu-defaults-builder:
  Installato: 0.24
Builded today's image, write to usb with persistence, no network connected, apport fully working till it promp to send the report to the developers.
Thanks
Fabio
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

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.