如何在Debian Buster docker容器上安装无人值守升级?

时间:2020-01-27 11:40:17

标签: linux docker debian apt

我正在基于Debian Buster构建一个docker映像,现在我想在容器中使用unattended-upgrades

不幸的是,该软件包似乎不可用:

root@0c5100b570a8:/# apt install unattended-upgrades
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package unattended-upgrades

有人知道我如何在Debian Buster容器中安装unattended-upgrades软件包吗?

1 个答案:

答案 0 :(得分:0)

您需要先更新:

apt-get update && apt-get install -y unattended-upgrades