unattended-upgrades: Not enough information about blacklisted packages

Bug #741677 reported by Enrique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint
Triaged
Undecided
Unassigned
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

 I am using unattended-upgrades to manage my software upgrades. I have my Unattended-Upgrade::Package-Blacklist option empty, but however all the packages are being rejected, as shown in the log of unattended-upgrades:

2011-03-24 09:16:14,528 INFO Initial blacklisted packages:
2011-03-24 09:16:14,528 INFO Starting unattended upgrades script
2011-03-24 09:16:14,528 INFO Allowed origins are: ["['Ubuntu', 'lucid-security']", "['Ubuntu', 'lucid-updates']"]
2011-03-24 09:16:23,620 INFO package 'linux-tools' not upgraded
2011-03-24 09:16:24,018 INFO package 'linux-libc-dev' not upgraded
2011-03-24 09:16:24,353 INFO package 'linux-headers-generic' not upgraded
2011-03-24 09:16:24,855 INFO package 'flashplugin-nonfree' not upgraded
2011-03-24 09:16:25,464 INFO package 'linux-tools-common' not upgraded
2011-03-24 09:16:26,146 INFO package 'flashplugin-installer' not upgraded
2011-03-24 09:16:26,849 INFO package 'linux-generic' not upgraded
2011-03-24 09:16:27,609 INFO package 'linux-image-generic' not upgraded
2011-03-24 09:16:27,783 INFO Packages that are upgraded:
2011-03-24 09:16:27,783 INFO Writing dpkg log to '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2011-03-24_09:16:27.783762.log'

 Using option -d to debug it, I see that the packages are not trusted:
2011-03-24 13:02:02,164 DEBUG <apt_pkg.AcquireItem object: Status: 2 Complete: 1 Local: 1 IsTrusted: 0 FileSize: 31537644 DestFile:'/var/cache/apt/archives/linux-image-2.6.32-30-gene
ric_2.6.32-30.59_i386.deb' DescURI: 'http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-2.6.32-30-generic_2.6.32-30.59_i386.deb' ID:0 ErrorText: ''>

 So I think that being untrusted they are simply blacklisted. Line 345 of unattended-upgrades seems to be the culprit:
            if item.IsTrusted == False:
                blacklisted_pkgs.append(pkgname_from_deb(item.DestFile))

 Just adding something like:
                logging.warning(_("Package '%s' is not trusted ") % pkgname_from_deb(item.DestFile))

 would solve the issue.

 I am using Linux Mint 9.

 The other question is why they are not trusted, that I have to investigate..

 Regards

Revision history for this message
Enrique (enrique-garcia) wrote :

 Here is a possible patch against unattended-upgrades 0.55ubuntu5:

diff unattended-upgrades /usr/bin/
346d345
< logging.warning(_("Package '%s' is not trusted and has been blacklisted") % pkgname_from_deb(item.DestFile))

 Regards

Revision history for this message
Enrique (enrique-garcia) wrote :

 Probably the language-pack-*-base packages should have to be upgraded as well, to provide the translated string.

Changed in linuxmint:
status: New → Triaged
Changed in ubuntu:
status: New → Invalid
Revision history for this message
Enrique (enrique-garcia) wrote :

 Hi!
 I realized the bug has been marked "Invalid". In which sense is it invalid?
 Regards,
 Enrique

Revision history for this message
Mike McGranahan (tfav) wrote :

I'm on Ubuntu 12.04.1. I too wonder why it's Invalid. Had to dive into the source code to figure out why some packages were being blacklisted. All the other blacklisting code paths log a message of some kind.

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.