{"id":2052,"date":"2009-08-15T18:56:40","date_gmt":"2009-08-15T15:56:40","guid":{"rendered":"http:\/\/mummila.net\/swirling\/?p=145"},"modified":"2010-09-23T17:49:50","modified_gmt":"2010-09-23T14:49:50","slug":"apt-cacher-import-pl-fails-to-rename-move-deb-files-during-import","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2009\/08\/15\/apt-cacher-import-pl-fails-to-rename-move-deb-files-during-import\/","title":{"rendered":"apt-cacher-import.pl fails to &#8220;rename&#8221; (move) .deb files during import"},"content":{"rendered":"<blockquote><p><code>Importing: apache2-mpm-worker_2.2.9-7ubuntu3_i386.deb<br \/>\nFailed to rename apache2-mpm-worker_2.2.9-7ubuntu3_i386.deb. Try read-only (-r) or symlink (-s) options. at \/usr\/share\/apt-cacher\/apt-cacher-import.pl line 154.<\/code><\/p><\/blockquote>\n<p>(I faked this by copying and pasting from <a href=\"http:\/\/www2b.abc.net.au\/science\/techtalk\/newposts\/685\/topic684944.shtm\">ABC Science Forum<\/a>, because I didn&#8217;t save any of the ones I actually saw.)<\/p>\n<p>For me the problem with <code>apt-cacher-import.pl<\/code> was that apparently Perl&#8217;s rename function can&#8217;t move files across devices, and that&#8217;s how my imports and cache laid on the disk. I solved this by using the -s parameter, which only makes symlinks. Another option would be to manually move the files onto the same device before importing. I suppose that&#8217;s why the <code>\/var\/cache\/apt-cacher\/import<\/code> directory is there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The problem with apt-cacher-import.pl was that apparently Perl&#8217;s rename function can&#8217;t move files across devices. I solved this by using the -s parameter. Another would be to manually move the files onto the same device before importing.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3146],"class_list":["post-2052","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-perl"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/2052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=2052"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/2052\/revisions"}],"predecessor-version":[{"id":2652,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/2052\/revisions\/2652"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=2052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=2052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=2052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}