udocker&ubuntu:20.04图片

时间:2020-06-28 10:29:44

标签: ubuntu-20.04

在我的debian jessie上,我安装了最新的udocker。在udocker中,我提取了ubuntu:20.04映像,当开始将软件包安装到该容器中时,出现以下错误。有什么帮助吗?

Setting up libapparmor1:amd64 (2.13.3-7ubuntu5.1) ...
Setting up libcap2:amd64 (1:2.32-1) ...
Setting up libargon2-1:amd64 (0~20171227-0.2) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.167-1ubuntu1) ...
Setting up libjson-c4:amd64 (0.13.1+dfsg-7ubuntu0.3) ...
Setting up libcryptsetup12:amd64 (2:2.2.2-3ubuntu2) ...
Setting up libip4tc2:amd64 (1.8.4-3ubuntu2) ...
Setting up libkmod2:amd64 (27-1ubuntu2) ...
Setting up systemd-timesyncd (245.4-4ubuntu3.1) ...
groupadd: failure while writing changes to /etc/group
adduser: `/sbin/groupadd -g 101 systemd-timesync' returned error code 10. Exiting.
dpkg: error processing package systemd-timesyncd (--configure):
 installed systemd-timesyncd package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of systemd:
 systemd depends on systemd-timesyncd | time-daemon; however:
  Package systemd-timesyncd is not configured yet.
  Package time-daemon is not installed.
  Package systemd-timesyncd which provides time-daemon is not configured yet.

dpkg: error processing package systemd (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 systemd-timesyncd
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@lxg1213:~# 

2 个答案:

答案 0 :(得分:1)

我猜您想在Docker容器中保存本地时间(因为Docker主机具有同步时间)?

export DEBIAN_FRONTEND noninteractive
apt-get install -y tzdata
ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata

答案 1 :(得分:0)

好吧,我尝试回答:IT部门不支持udocker。这就是为什么在更新软件包时出现这些错误的原因。