[lxc-users] Error updating certificates when a directory is bind mounted

Luis Michael Ibarra michael.ibarra at gmail.com
Fri Jul 1 12:52:26 UTC 2016


Hi everyone,

As I bind mounted my disk drive on /tmp,  the tmp directory changed file
permissions to nobody. Lesson learned.


Regards,

2016-06-30 22:37 GMT-05:00 Luis Michael Ibarra <michael.ibarra at gmail.com>:

> Hi everyone,
>
> I got the following error when I tried to install a package(via apt) which
> requires to install/update its certificates on a lxd container which it has
> a host directory bind mounted.
>
> $lxc config device add $container data disk
> source=/path/to/external_usb_disk path=/tmp/
>
>
> ------------------------------------------------------
> $apt-get install git
>
> ......
> Setting up ca-certificates (20160104ubuntu0.12.04.1)
> ...
>
> Updating certificates in /etc/ssl/certs... chmod: changing permissions of
> `/tmp/ca-certificates.crt.tmp.3PZnlU': Operation not permitted
> dpkg: error processing ca-certificates (--configure):
>  subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of libcurl3-gnutls:
>  libcurl3-gnutls depends on ca-certificates; however:
>   Package ca-certificates is not configured yet.
> dpkg: error processing libcurl3-gnutls (--configure):
>  dependency problems - leaving unconfigured
> Setting up libgdbm3 (1.8.3-10) ...
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> Setting up libsasl2-modules (2.1.25.dfsg1-3ub
> untu0.1) ...
> Setting up rsync (3.0.9-1ubuntu1.1) ...
>  Removing any system startup links for /etc/init.d/rsync ...
> Setting up libclass-isa-perl (0.36-3) ...
> Setting up git-man (1:1.7.9.5-1ubuntu0.3) ...
> dpkg: dependency problems prevent configuration of git:
>  git depends on libcurl3-gnutls (>= 7.16.2-1); however:
>   Package libcurl3-gnutls is not configured yet.
> dpkg: error processing git (--configure):
>  dependency problems - leaving unconfigured
> Setting up patch (2.6.1-3ubuntu0.1) ...
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> Setting up libswitch-perl (2.16-2) ...
> Setting up perl-modules (5.14.2-6ubuntu2.5) ...
> Setting up perl (5.14.2-6ubuntu2.5) ...
> update-alternatives: using /usr/bin/prename to provide /usr/bin/rename
> (rename) in auto mode.
> Setting up liberror-perl (0.17-1) ...
> Processing triggers for libc-bin ...
> ldconfig deferred processing now taking place
> Errors were encountered while processing:
>  ca-certificates
>  libcurl3-gnutls
>  git
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> --------------------------------------------------------------------------------------------------
>
> I can successfully install git when the device is not mounted; however, I
> do need to have it mounted because is a large drive which I need for my
> operations.
>
> Any suggestions why this is happening.
>
> --
> Luis Michael Ibarra
>



-- 
Luis Michael Ibarra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160701/6f2b18d2/attachment.html>


More information about the lxc-users mailing list