如何无人值守更新Adobe软件?

如何无人值守更新Adobe软件?

我想使用 unattended-upgrade 来更新 Adob​​e Reader、Flash Player 以及 Canonical 合作伙伴的所有其他软件。因此,我添加了/etc/apt/apt.conf.d/50unattended-upgrades

Unattended-Upgrade::Allowed-Origins {
    "${distro_id} ${distro_codename}-security";
    "${distro_id} ${distro_codename}-updates";
        "Canonical ${distro_codename}";
//  "${distro_id} ${distro_codename}-proposed";
//  "${distro_id} ${distro_codename}-backports";
};

sudo unattended-upgrade --dry-run -d

Initial blacklisted packages: 
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=Ubuntu,a=oneiric-updates', 'o=Canonical,a=oneiric']
Checking: acroread-common (["<Origin component:'partner' archive:'' origin:'' label:'' site:'archive.canonical.com' isTrusted:False>"])
Checking: adobe-flash-properties-gtk (["<Origin component:'partner' archive:'' origin:'' label:'' site:'archive.canonical.com' isTrusted:False>"])
Checking: adobe-flashplugin (["<Origin component:'partner' archive:'' origin:'' label:'' site:'archive.canonical.com' isTrusted:False>"])
Checking: adobereader-deu (["<Origin component:'partner' archive:'' origin:'' label:'' site:'archive.canonical.com' isTrusted:False>"])
Checking: handbrake-cli (["<Origin component:'main' archive:'oneiric' origin:'LP-PPA-stebbins-handbrake-snapshots' label:'HandBrake Snapshots' site:'ppa.launchpad.net' isTrusted:True>"])
Checking: handbrake-gtk (["<Origin component:'main' archive:'oneiric' origin:'LP-PPA-stebbins-handbrake-snapshots' label:'HandBrake Snapshots' site:'ppa.launchpad.net' isTrusted:True>"])
Checking: sopcast-player (["<Origin component:'main' archive:'oneiric' origin:'LP-PPA-ferramroberto-sopcast' label:'LffL Sopcast' site:'ppa.launchpad.net' isTrusted:True>"])
pkgs that look like they should be upgraded: 
Fetched 0 B in 0s (0 B/s)                                                      
blacklist: []
InstCount=0 DelCount=0 BrokenCout=0
No packages found that can be upgraded unattended

而且不会更新。如何自动更新第三方软件?

答案1

似乎对于合作伙伴存储库,您需要添加如下内容:

"deb http://archive.canonical.com/ubuntu ${distro_codename} partner"

原文如下:

deb http://archive.canonical.com/ubuntu oneiric partner 

答案2

这对我有用:

"Canonical:${distro_codename}";

答案3

我在 14.04 (trusty) 上遇到了同样的问题,并且我在这个启动板错误报告中找到了我需要的线索 (897460)。

你需要使用起源-图案在 50unattended-upgrades 中,与给出的其他答案结合使用允许来源. 来自 README:

Origins-Pattern 允许您给出要匹配的 (glob-style) 模式列表。

我的 50unattended-upgrades 现在看起来像:

// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}-security";
        "Canonical:${distro_codename}";
};

Unattended-Upgrade::Origins-Pattern {
        "origin=Canonical, suite=partner";
};

...当我现在测试时:

~# unattended-upgrade --dry-run 
/usr/bin/dpkg --status-fd 9 --unpack --auto-deconfigure /var/cache/apt/archives/adobe-flashplugin_1%3a20161026.1-0ubuntu0.14.04.1_amd64.deb 
/usr/bin/dpkg --status-fd 11 --configure adobe-flashplugin:amd64

更多资源:

相关内容