{"id":3199,"date":"2020-04-09T10:25:58","date_gmt":"2020-04-09T15:25:58","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3199"},"modified":"2020-04-09T10:25:58","modified_gmt":"2020-04-09T15:25:58","slug":"i-deleted-apt-on-ubuntu-now-what","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/i-deleted-apt-on-ubuntu-now-what\/","title":{"rendered":"I deleted apt on Ubuntu, now what?"},"content":{"rendered":"\n<p>Apparently if you do <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt purge ubuntu*<\/pre>\n\n\n\n<p>You&#8217;ll end up deleting apt.  Which is a bummer, because you can&#8217;t install anything else, or fix the problem.  But not to worry, the resolution is fairly easy.<\/p>\n\n\n\n<p>You can go download the apt deb from Ubuntu&#8217;s website and install it with dpkg.<\/p>\n\n\n\n<p>Go to the following link and find the packages for your Ubuntu version<\/p>\n\n\n\n<p><a href=\"https:\/\/packages.ubuntu.com\/\">https:\/\/packages.ubuntu.com\/<\/a><\/p>\n\n\n\n<p>You&#8217;ll need to show &#8220;All packages&#8221; at the bottom of the page.<\/p>\n\n\n\n<p><a href=\"https:\/\/packages.ubuntu.com\/xenial\/allpackages\">https:\/\/packages.ubuntu.com\/xenial\/allpackages<\/a><\/p>\n\n\n\n<p>Download and install ubuntu-keyring, apt-transport-https, and apt packages.  Example below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget security.ubuntu.com\/ubuntu\/pool\/main\/a\/apt\/apt_1.6.6ubuntu0.1_amd64.deb\nwget security.ubuntu.com\/ubuntu\/pool\/main\/a\/apt\/apt-transport-https_1.2.29ubuntu0.1_amd64.deb\nwget mirrors.kernel.org\/ubuntu\/pool\/main\/u\/ubuntu-keyring\/ubuntu-keyring_2012.05.19_all.deb<\/pre>\n\n\n\n<p>Install Packages<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dpkg -i ubuntu-keyring_2012.05.19_all.deb<br>sudo dpkg -i apt-transport-https_1.2.29ubuntu0.1_amd64.deb<br>sudo dpkg -i apt_1.6.6ubuntu0.1_amd64.deb<\/pre>\n\n\n\n<p>Run apt and make sure it is all working<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Apparently if you do apt purge ubuntu* You&#8217;ll end up deleting apt. Which is a bummer, because you can&#8217;t install anything else, or fix the problem. But not to worry, the resolution is fairly easy. You can go download the &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/i-deleted-apt-on-ubuntu-now-what\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[322,49,248],"class_list":["post-3199","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-apt","tag-ubuntu-2","tag-update"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3199"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3199\/revisions"}],"predecessor-version":[{"id":3201,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3199\/revisions\/3201"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}