加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 无人值守升级不升级(或根本不做任何事情)

发布时间:2020-12-13 17:09:23 所属栏目:Linux 来源:网络整理
导读:我一直试图让Debian GNU / Linux(7.0)下的无人值守升级包运行到目前为止没有成功. 我遵循的步骤: 安装无人值守升级 启用它 sudo dpkg-reconfigure -plow unattended-upgrades 取消注释/etc/apt/apt.conf.d/50unattended-upgrades中的以下行 "o=Debian,n=whe
我一直试图让Debian GNU / Linux(7.0)下的无人值守升级包运行到目前为止没有成功.

我遵循的步骤:

>安装无人值守升级
>启用它

sudo dpkg-reconfigure -plow unattended-upgrades

>取消注释/etc/apt/apt.conf.d/50unattended-upgrades中的以下行

"o=Debian,n=wheezy";
"o=Debian,n=wheezy-updates";
"o=Debian,n=wheezy-proposed-updates";
"o=Debian,n=wheezy,l=Debian-Security";

>等两天

它应该每天运行,但它当时没有做任何事情.我在/ var / log / unattended-upgrades /和apt历史记录日志中检查了它的日志/var/log/apt/history.log但是自安装以来没有发生任何事情.

我有什么步骤可以启用吗?在阅读/usr/share / doc / unattended-upgrades / README下的文档之后,我认为以上是您必须遵循的才能使其运行.

解决方法

试试这个:
Unattended-Upgrade::Origins-Pattern {
        "o=Debian,a=testing";
        "o=Debian,a=stable";
        "o=Debian,a=stable-updates";
        "o=Debian,a=proposed-updates";
        "origin=Debian,archive=stable,label=Debian-Security";
};

文件/etc/apt/apt.conf.d/20auto-upgrades必须包含:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读