when the tmpdir dir is longer than 220, there is no files saved in tmp/sysroots/x86_64-linux/var/lib/apt/lists/ after run apt-get update, this is because apt-get uses the path as the file name, but the file name can't be longer than 255 according to /usr/include/linux/limits.h, here is the related from apt-pkg/contrib/strutl.cc: string URItoFileName(const string &URI) { // Nuke 'sensitive' items ::URI U(URI); U.User.clear(); U.Password.clear(); U.Access.clear(); // "\x00-\x20{}|\\\\^\\[\\]<>\"\x7F-\xFF"; string NewURI = QuoteString(U,"\\|{}[]<>\"^~_=!@#$%^&*"); replace(NewURI.begin(),NewURI.end(),'/','_'); return NewURI; } Limit the NewURI length to 255 would fix the problem.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f06c1c3df0aeec4eea7697159c4954187d19ae9b
the build dir is "/home/yocto/test_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto/test_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto" ,which length equals 400. run "bitbake core-image-minimal", no error during build and files are saved in "tmp/sysroots/x86_64-linux/var/lib/apt/lists/".
test env : host :Fedora 17 x86_64 git info : eb0cb7e8234f5d2e5623406e9660be91cf52f65e git branch: poky/master