package from one repository won't update

Asked by Frank W

Hi all,

I have a source (http://download.opensuse.org/repositories/home:/emby/xUbuntu_17.04/Release) working fine in apt, but for some reason will not install updates through unattended updates despite there being an update available. Any help greatly appreciated.

Log:

root@media:~# unattended-upgrade -d -v --apt-debug
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=zesty', 'o=Ubuntu,a=zesty-security', 'o=Ubuntu,a=zesty-updates', 'o=Ubuntu,a=zesty-backports', 'o=LP-PPA-ondrej-php,a=zesty', 'o=LP-PPA-webupd8team-java,a=zesty', 'o=LP-PPA-nginx-stable,a=zesty', 'o=obs://build.opensuse.org/home:emby/xUbuntu_17.04,a=xUbuntu_17.04']
Checking: emby-server-beta ([<Origin component:'' archive:'' origin:'obs://build.opensuse.org/home:emby/xUbuntu_17.04' label:'home:emby' site:'download.opensuse.org' isTrusted:True>])
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
blacklist: []
whitelist: []
No packages found that can be upgraded unattended and no pending auto-removals
root@media:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  emby-server-beta
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.0 MB of archives.
After this operation, 5,120 B of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu unattended-upgrades Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you tried contacting the source maintainer?

Revision history for this message
Frank W (frankyw) said :
#2

I have also done that.

However, I'm confused as to why this repo works fine with apt from the command line, but not using unattended updates.

From my limited python knowledge, this particular package seems to fail for some reason within calculate_upgradable_pkgs. pkg.is_upgradable is true, hence the debug line output (line 984 of unattended-upgrade), but after that nothing.

def calculate_upgradable_pkgs(cache, options, allowed_origins,
                              blacklisted_pkgs, whitelisted_pkgs):
    pkgs_to_upgrade = []
    pkgs_kept_back = []

    # now do the actual upgrade
    for pkg in cache:
        if options.debug and pkg.is_upgradable:
            logging.debug("Checking: %s (%s)" % (
                pkg.name, getattr(pkg.candidate, "origins", [])))
        if (pkg.is_upgradable and
              not is_pkgname_in_blacklist(pkg.name, blacklisted_pkgs) and
              is_pkgname_in_whitelist(pkg.name, whitelisted_pkgs) and
              is_allowed_origin(pkg.candidate, allowed_origins)):
            try_to_upgrade(pkg,
                           pkgs_to_upgrade,
                           pkgs_kept_back,
                           cache,
                           allowed_origins,
                           blacklisted_pkgs,
                           whitelisted_pkgs)
    return pkgs_to_upgrade, pkgs_kept_back

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.