E: Sub-process /usr/bin/dpkg returned an error code (1)

437 views
Skip to first unread message

Igor

unread,
Jul 31, 2016, 12:42:07 AM7/31/16
to singularity
Hi All,
When installing Ubuntu 14.04 with singularity 2.1, I am getting the following errors during bootstrapping:
===========
Errors were encountered while processing:
libpam-systemd:amd64
policykit-1
colord
E: Sub-process /usr/bin/dpkg returned an error code (1)
===========
My host OS is Ubuntu 16.04.
I believe I was getting similar errors with singularity 2.0 and Ubuntu 16.04 in the container. No such errors under CentOS.
My def file is:
===========
DistType "debian"
MirrorURL "http://us.archive.ubuntu.com/ubuntu/"
OSVersion "trusty"

Setup
Bootstrap

RunCmd sed -i 's/$/ universe/' /etc/apt/sources.list
RunCmd apt-get update

InstallPkgs vim emacs aptitude python gcc g++ gfortran perl ruby

Cleanup
===========

Thank you,
Igor

Gregory M. Kurtzer

unread,
Aug 2, 2016, 12:01:54 PM8/2/16
to singularity
Hi Igor,

I too am getting some errors like:

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
invoke-rc.d: unknown initscript, /etc/init.d/systemd-logind not found.
dpkg: error processing package libpam-systemd:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 100

But I do have TERM defined, so I'm not sure what is going on. Maybe it doesn't like my particular TERM setting (screen)? As far as not being able to find init scripts, that I would think is a packaging issue on the Ubuntu side maybe not defining the prereqs properly? <shrugs>

This does bring up another issue from my perspective. About daemon processes getting started within a bootstrap'ing.... hrmmm. Does anybody have thoughts on this?

Thanks!

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.



--
Gregory M. Kurtzer
High Performance Computing Services (HPCS)
University of California
Lawrence Berkeley National Laboratory
One Cyclotron Road, Berkeley, CA 94720

Priedhorsky, Reid

unread,
Aug 2, 2016, 12:15:36 PM8/2/16
to singu...@lbl.gov
Side note, the TERM business here is a warning rather than an error. That said, Debian packaging stuff tends to be pretty solid, so if it were me I’d take the description (not set) at face value.

HTH,
Reid

ademola ayobami

unread,
Jul 27, 2018, 9:01:45 AM7/27/18
to singularity, gmku...@lbl.gov
please i am having same error for almost one month now...is there any solution to this?  (E: Sub-process /usr/bin/dpkg returned an error code (1)) i get that error when i try to upgrade or even install..
thank you
Ademola
Reply all
Reply to author
Forward
0 new messages