{"id":925,"date":"2023-01-16T13:10:45","date_gmt":"2023-01-16T19:10:45","guid":{"rendered":"https:\/\/www.curli.us\/?p=925"},"modified":"2023-01-16T13:10:50","modified_gmt":"2023-01-16T19:10:50","slug":"updating-ubuntu-server-with-pi-hole","status":"publish","type":"post","link":"https:\/\/www.curli.us\/?p=925","title":{"rendered":"Updating Ubuntu Server with Pi-hole"},"content":{"rendered":"\n<p>If you don&#8217;t know what is Pi-hole, stop reading this post and read this website instead: <a href=\"https:\/\/pi-hole.net\">https:\/\/pi-hole.net<\/a><\/p>\n\n\n\n<p>Instead of hosting my Pi-hole on a Raspberry Pi, I use Ubuntu Server on a VMware host.  Even using LTS versions of Ubuntu Server get outdated, so here&#8217;s a how-to for getting the guest updated.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Backup your server somehow.  I use Veeam as well as take a VMware snapshot.  You could also use Acronis at boot time and take an image.<\/li>\n\n\n\n<li><code>sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/li>\n\n\n\n<li><code>sudo reboot<\/code><\/li>\n\n\n\n<li><code>sudo apt install update-manager-core<\/code><\/li>\n\n\n\n<li><code>sudo do-release-upgrade<\/code><\/li>\n\n\n\n<li><code>sudo reboot<\/code><\/li>\n<\/ol>\n\n\n\n<p>You&#8217;ll get prompted throughout the process multiple times multiple questions.  I chose to kept custom modified file as-is and not revert to the package original.  Clear out all outdated packages as well.<\/p>\n\n\n\n<p>After successfully updating Ubuntu Server, you&#8217;ll have to run the following command to fix Pi-hole.  Also make sure Webmin is the latest version.<\/p>\n\n\n\n<p><code>sudo rm \/etc\/dnsmasq.d\/lxd<\/code><\/p>\n\n\n\n<p>Credits:<br><a href=\"https:\/\/www.cyberciti.biz\/faq\/upgrade-ubuntu-18-04-to-20-04-lts-using-command-line\/\">https:\/\/www.cyberciti.biz\/faq\/upgrade-ubuntu-18-04-to-20-04-lts-using-command-line\/<\/a><br><a href=\"https:\/\/www.reddit.com\/r\/pihole\/comments\/g86xo8\/after_ubuntu_2004_upgrade_unable_to_start_dns\/\">https:\/\/www.reddit.com\/r\/pihole\/comments\/g86xo8\/after_ubuntu_2004_upgrade_unable_to_start_dns\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you don&#8217;t know what is Pi-hole, stop reading this post and read this website instead: https:\/\/pi-hole.net Instead of hosting my Pi-hole on a Raspberry Pi, I use Ubuntu Server on a VMware host. Even using LTS versions of Ubuntu Server get outdated, so here&#8217;s a how-to for getting the guest updated. You&#8217;ll get prompted &hellip; <a href=\"https:\/\/www.curli.us\/?p=925\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Updating Ubuntu Server with Pi-hole&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15,11,3,17],"tags":[],"class_list":["post-925","post","type-post","status-publish","format-standard","hentry","category-how-to","category-raspberry-pi","category-technology","category-vmware"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7BMx4-eV","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.curli.us\/index.php?rest_route=\/wp\/v2\/posts\/925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curli.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curli.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curli.us\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curli.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=925"}],"version-history":[{"count":1,"href":"https:\/\/www.curli.us\/index.php?rest_route=\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/www.curli.us\/index.php?rest_route=\/wp\/v2\/posts\/925\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/www.curli.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curli.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curli.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}