[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728500: apt-get fails: mkstemp (2: No such file or directory)



On Sat, Nov 2, 2013 at 12:00 AM, Christian Meyer <c2h5oh@web.de> wrote:
> I debootstraped jessie in an stable LVM cryptsetup environment.
> Afterwards I did some configuation, chrooted in the new system and did an
>
> # apt-get update
> Get:1 http://ftp.de.debian.org jessie InRelease [162 kB]
> 100% [1 InRelease gpgv 162 kB]Couldn't create tempfiles for splitting up
> /var/lib/apt/lists/partial/ftp.de.debian.org_debian_dists_jessie_InIgn
[…]
> W: GPG error: http://ftp.de.debian.org jessie InRelease: Could not execute
> 'gpgv' to verify signature (is gpgv installed?)
> E: Couldn't create temporary file to work with
> /var/lib/apt/lists/ftp.de.debian.org_debian_dists_jessie_Release - mkstemp (2:
> No such file or directory)
> E: The package lists or status file could not be parsed or opened.
>
>
> I understood the error this way:
> gpgv is installed and I found that mkstemp is not installed.(It is found in
> gnulib and not in coreutils like mktemp)

That has nothing to do with a binary called mkstemp, it is referring to the
libc method mkstemp (man 3 mkstemp   # if you have manpages-dev installed).
[Ignore the message about gpgv, that is just a follow-up error]

The method is supposed to create and open a temporary file and based
on the error message from the method, it sounds like it can't open the
created temp file.

I and many others do chroots quite often, so I wonder what is so special
about your setup, that it doesn't work for you as it does here.
Have you done anything extraordinary to /tmp in your chroot?
Are other applications acting strange as well?


Best regards

David Kalnischkies


Reply to: