我在 CentOS 6.6 系统上工作。我有一个可写的奇异 ubuntu 16.04 图像,我知道我实际上可以写到:
[root@qmaster02]# whoami
root
[root@qmaster02]# singularity shell --writable gtn
Singularity: Invoking an interactive shell within container...
Singularity gtn:~> ls /opt/
ZFP bart-0.3.01 code manifest.json start_supervisor supervisord.conf v0.3.01.tar.gz
Singularity gtn:~> touch /opt/mynewfile
Singularity gtn:~> ls /opt/
ZFP bart-0.3.01 code manifest.json mynewfile start_supervisor supervisord.conf v0.3.01.tar.gz
我现在尝试安装一个新软件包,但出现以下错误:
Singularity gtn:~> apt-get install module-init-tools
Reading package lists... Error!
E: Could not read from /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease - getline (12: Cannot allocate memory)
E: The package lists or status file could not be parsed or opened.
检查/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease
,它只是一个带有签名的哈希和文件。
问题:如何apt-get
在奇异环境中使用 while 安装软件包?