{"id":3263,"date":"2013-05-23T09:43:20","date_gmt":"2013-05-23T14:43:20","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=3263"},"modified":"2014-07-06T18:37:42","modified_gmt":"2014-07-06T23:37:42","slug":"freebsdportsnap-gunzip-cant-stat-files-gz-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/freebsdportsnap-gunzip-cant-stat-files-gz-no-such-file-or-directory\/","title":{"rendered":"[FreeBSD]Portsnap \/ gunzip: can&#8217;t stat: files\/&#8230; .gz: No such file or directory"},"content":{"rendered":"<p>My FreeBSD got an unknown fever today. When I updated my ports using portsnap, it gave the following error message:<\/p>\n<pre style=\"margin-top:150px;\">\r\n#sudo portsnap fetch\r\nLooking up portsnap.FreeBSD.org mirrors... 6 mirrors found.\r\nFetching snapshot tag from your-org.portsnap.freebsd.org... done.\r\nFetching snapshot metadata... done.\r\nUpdating from Thu May 23 09:08:53 CDT 2013 to Thu May 23 09:25:25 CDT 2013.\r\nFetching 0 metadata patches. done.\r\nApplying metadata patches... done.\r\nFetching 0 metadata files... done.\r\ngunzip: can't stat: files\/992a1325cdc9a00a3543aa38fdf58903cdf70eaee02b8bb8aebea5505ac7b3f8.gz: No such file or directory\r\nFetching 0 patches. done.\r\nApplying patches... done.\r\nFetching 0 new ports or files... done.\r\nBuilding new INDEX files... gunzip: can't stat: \/var\/db\/portsnap\/files\/09f65f8a730283fd31d068a5927ed46d95e37540f89090c257d7809b75116293.gz: No such file or directory\r\ngunzip: can't stat: \/var\/db\/portsnap\/files\/e3d3219617c1ea87cdfac7c8df0a52d611b191be8a80fd97f511277dff4cce77.gz: No such file or directory\r\ngunzip: can't stat: \/var\/db\/portsnap\/files\/8c2576279258f0d1b8762df8fc1e0cb4bcfcd23b6b09cdb4e7d68886af35ed7d.gz: No such file or directory\r\ndone.\r\n<\/pre>\n<p>Apparently, something in \/var\/db\/portsnap\/ is broken. Many people will try to remove \/var\/db\/portsnap\/ and run the command again. Do not do it. It will make portsnap failed. Instead, do the following:<\/p>\n<pre>\r\nsudo cp -r \/var\/db\/portsnap \/var\/db\/portsnap_backup\r\nsudo rm -Rf \/var\/db\/portsnap\/tag \/var\/db\/portsnap\/files\/*\r\nsudo portsnap fetch extract\r\nsudo portsnap update\r\n<\/pre>\n<p>Now your portsnap should be happy.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My FreeBSD got an unknown fever today. When I updated my ports using portsnap, it gave the following error message: #sudo portsnap fetch Looking up portsnap.FreeBSD.org mirrors&#8230; 6 mirrors found. <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/freebsdportsnap-gunzip-cant-stat-files-gz-no-such-file-or-directory\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1604,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69],"tags":[171,156],"class_list":["post-3263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-freebsd","tag-portsnap"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-QD","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2616,"url":"https:\/\/icesquare.com\/wordpress\/upgrade-freebsd-8-to-9\/","url_meta":{"origin":3263,"position":0},"title":"How to Upgrade FreeBSD from 8 to 9","author":"Derrick","date":"January 9, 2013","format":false,"excerpt":"Upgrading FreeBSD is very easy. Thanks for the simple architecture design and the disconnection between the kernel and the applications (ports), the whole process takes around 15 to 45 minutes. The coolest thing is that the system down time is very short. In my case, the down time was only\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2181,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/","url_meta":{"origin":3263,"position":1},"title":"[FreeBSD-update]Installing updates&#8230;install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory","author":"Derrick","date":"December 23, 2011","format":false,"excerpt":"When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. :-) #sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files...\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3002,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-org-was-compromised\/","url_meta":{"origin":3263,"position":2},"title":"FreeBSD.org Was Compromised. What Should You Do Next?","author":"Derrick","date":"November 17, 2012","format":false,"excerpt":"In case you are not aware this bad news. FreeBSD.org was compromised on September 17, 2012. Good news is that the compromise was caused by a human error (a stupid developer leaked a SSH private key somewhere), which has nothing to do with the code quality of the FreeBSD. :-)\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1591,"url":"https:\/\/icesquare.com\/wordpress\/the-develautomake110-port-has-been-deleted-no-longer-required-by-any-port-aborting-update\/","url_meta":{"origin":3263,"position":3},"title":"The devel\/automake110 port has been deleted: No longer required by any port&#8230;Aborting update","author":"Derrick","date":"September 21, 2011","format":false,"excerpt":"My FreeBSD box must be sick today. For some reasons, when I ran the portsnap command (i.e., portsnap fetch update), it removed the entire port directory (i.e., rm \/usr\/ports -Rf). Therefore, I decided to build the entire port tree: sudo su cd \/var\/db\/portsnap rm -Rf * portsnap fetch extract I\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2502,"url":"https:\/\/icesquare.com\/wordpress\/freebsdproblem-to-update-php-port\/","url_meta":{"origin":3263,"position":4},"title":"[FreeBSD]Problem to update PHP port","author":"Derrick","date":"January 12, 2012","format":false,"excerpt":"A new version of PHP (5.3.9) was available in FreeBSD today. Since it contained a lot of security fixes and enhancements, I decided to give it a try. After testing the new PHP in couple test servers, I think it is ready to upgrade the PHP on the production server.\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3474,"url":"https:\/\/icesquare.com\/wordpress\/the-easiest-way-to-improve-the-performance-of-mysql-server-on-freebsd\/","url_meta":{"origin":3263,"position":5},"title":"The easiest way to improve the performance of MySQL server on FreeBSD","author":"Derrick","date":"February 2, 2014","format":false,"excerpt":"There are many different ways to improve the MySQL performance. In general, it breaks down into two different categories: Server side and client side. On the server side, we can optimize the database and table structure, such as indexing the columns etc. On the client side, we can optimize the\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2014\/02\/speedometer.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2014\/02\/speedometer.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2014\/02\/speedometer.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2014\/02\/speedometer.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2014\/02\/speedometer.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/09\/FreeBSDIcon.png","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3263"}],"version-history":[{"count":8,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3263\/revisions"}],"predecessor-version":[{"id":3653,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3263\/revisions\/3653"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media\/1604"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}