{"id":37,"date":"2010-10-30T07:34:00","date_gmt":"2010-10-30T07:34:00","guid":{"rendered":"https:\/\/www.srivittal.com\/wp\/?p=37"},"modified":"2021-08-31T10:12:45","modified_gmt":"2021-08-31T09:12:45","slug":"mac-ports-upgrade-error-cant-map-the-url-file-to-a-port-description-file-could-not-find-portfile-in","status":"publish","type":"post","link":"https:\/\/www.srivittal.com\/wp\/?p=37","title":{"rendered":"Mac Ports upgrade error Can&#8217;t map the URL &#8216;file:\/\/.&#8217; to a port description file (&#8220;Could not find Portfile in \/&#8221;)"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">When I was trying to upgrade my packages using the macports port command, I got the following error<\/p>\n<p><span style=\"background-color: black;\"><span style=\"color: white;\">Can&#8217;t map the URL &#8216;file:\/\/.&#8217; to a port description file (&#8220;Could not find Portfile in \/<homedir>&#8220;).<\/homedir><\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">Please verify that the directory and portfile syntax are correct.<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">To use the current port, you must be in a port&#8217;s directory.<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">(you might also see this message if a pseudo-port such as<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">outdated or installed expands to no ports).<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">Goodbye<\/span><\/span><\/p>\n<p>Using the following command resolved the issue<\/p>\n<p><span style=\"background-color: black;\"><span style=\"color: white;\">sudo port upgrade outdated<\/span><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When I was trying to upgrade my packages using the macports port command, I got the following error Can&#8217;t map the URL &#8216;file:\/\/.&#8217; to a port description file (&#8220;Could not find Portfile in \/&#8220;).Please verify that the directory and portfile syntax are correct.To use the current port, you must be in a port&#8217;s directory.(you might &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,26,27],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-exception","category-mac-osx","category-macports","entry entry-center"],"_links":{"self":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":1,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}