Comment 2 for bug 1375919

Revision history for this message
anarcat (anarcat) wrote :

simply removing the line does *not* work in jessie:

root@mafalda:/etc/apt/apt.conf.d# unattended-upgrade -d
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Raspbian,n=jessie', 'o=Raspbian,a=stable']
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
Checking: libssl1.0.0 ([<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>])
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
Checking: openssl ([<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>])
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
pkgs that look like they should be upgraded: libssl1.0.0
openssl
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 0 FileSize: 853124 DestFile:'/var/cache/apt/archives/libssl1.0.0_1.0.1t-1+deb8u5_armhf.deb' DescURI: 'http://mirrordirector.raspbian.org/raspbian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u5_armhf.deb' ID:0 ErrorText: ''>
check_conffile_prompt('/var/cache/apt/archives/libssl1.0.0_1.0.1t-1+deb8u5_armhf.deb')
found pkg: libssl1.0.0
No conffiles in deb '/var/cache/apt/archives/libssl1.0.0_1.0.1t-1+deb8u5_armhf.deb' (There is no member named 'conffiles')
<apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 0 FileSize: 652428 DestFile:'/var/cache/apt/archives/openssl_1.0.1t-1+deb8u5_armhf.deb' DescURI: 'http://mirrordirector.raspbian.org/raspbian/pool/main/o/openssl/openssl_1.0.1t-1+deb8u5_armhf.deb' ID:0 ErrorText: ''>
check_conffile_prompt('/var/cache/apt/archives/openssl_1.0.1t-1+deb8u5_armhf.deb')
found pkg: openssl
conffile line: '/etc/ssl/openssl.cnf 7df26c55291b33344dc15e3935dabaf3'
current md5: 7df26c55291b33344dc15e3935dabaf3
blacklist: ['libssl1.0.0', 'openssl']
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
Checking (blacklist): libssl1.0.0
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
skipping blacklisted package 'libssl1.0.0'
package 'libssl1.0.0' not upgraded
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
Checking (blacklist): openssl
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
skipping blacklisted package 'openssl'
package 'openssl' not upgraded
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'o'='Raspbian' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
matching 'n'='jessie' against '<Origin component:'main' archive:'stable' origin:'Raspbian' label:'Raspbian' site:'mirrordirector.raspbian.org' isTrusted:False>'
InstCount=0 DelCount=0 BrokenCount=0
Packages that will be upgraded:

this is a common problem in Debian systems since unattended-upgrades is mainly targeted at Ubuntu. it has improved over the years, but it can be real confusing with third party repositories.

here's my config:
Unattended-Upgrade::Origins-Pattern {
        // Codename based matching:
        // This will follow the migration of a release through different
        // archives (e.g. from testing to stable and later oldstable).
        "o=Raspbian,n=jessie";

        // Archive or Suite based matching:
        // Note that this will silently match a different release after
        // migration to the specified archive (e.g. testing becomes the
        // new stable).
        "o=Raspbian,a=stable";

};

notice how i uncommented the suggested definitions (keeping them commented out also fails).

with "origin=Raspbian,codename=jessie,component=main"; it works.