{"id":3993,"date":"2024-05-11T20:23:33","date_gmt":"2024-05-11T17:23:33","guid":{"rendered":"https:\/\/mummila.net\/nuudelisoppa\/?p=3993"},"modified":"2024-05-11T20:23:33","modified_gmt":"2024-05-11T17:23:33","slug":"crossgrading-ubuntu-18-04-to-debian-10","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2024\/05\/11\/crossgrading-ubuntu-18-04-to-debian-10\/","title":{"rendered":"Crossgrading Ubuntu 18.04 to Debian 10"},"content":{"rendered":"<p>After upgrading all Ubuntu 18.04 packages to their latest releases, I adapted <a href=\"https:\/\/unix.stackexchange.com\/a\/718220\"><strong>eudoxos<\/strong>&#8216; recipe<\/a>:<\/p>\n<ol>\n<li>Rebooted and selected the stock 18.04 kernel instead of HWE, which I was using<\/li>\n<li>Downloaded <a href=\"https:\/\/packages.debian.org\/buster\/debian-keyring\"><code>debian-keyring<\/code><\/a> and <a href=\"https:\/\/packages.debian.org\/buster\/debian-archive-keyring\"><code>debian-archive-keyring<\/code><\/a> .debs and installed them with <code>dpkg -i debian*.deb<\/code><\/li>\n<li>Created <code>\/etc\/apt\/preferences.d\/10-no-ubuntu<\/code> to pin down Ubuntu packages:\n<pre><code>Package: *\r\nPin: release o=Ubuntu\r\nPin-Priority: -1000<\/code><\/pre>\n<\/li>\n<li>Added Debian sources for buster to the end of <code>\/etc\/apt\/sources.list<\/code>:\n<pre><code>deb http:\/\/deb.debian.org\/debian buster main contrib non-free\r\ndeb http:\/\/deb.debian.org\/debian-security\/ buster\/updates main contrib non-free\r\ndeb http:\/\/deb.debian.org\/debian buster-updates main contrib non-free<\/code><\/pre>\n<\/li>\n<li><code>apt update &amp;&amp; apt-get dist-upgrade<\/code><\/li>\n<li>Answered &#8220;no&#8221; to all configuration changes questions (I&#8217;ll update them later)<\/li>\n<li>Post-install, networking was non-functional. Apparently this was caused by Apparmor, so I disabled it (<code>systemctl disable apparmor.service<\/code>) and rebooted.<\/li>\n<li>Deleted <code>\/etc\/apt\/preferences.d\/10-no-ubuntu<\/code><\/li>\n<li>Then it was time for manual package surgery. Lots and lots of it. Searching for remaining Ubuntu packages is easy enough, with\n<pre><code>dpkg -l | grep ubuntu<\/code><\/pre>\n<p>and<\/p>\n<pre><code>aptitude search '?narrow(?installed, ?not(?origin(Debian)))'<\/code><\/pre>\n<p>Many of the matching packages can be removed\/downgraded to their Debian versions without issue, but a bunch of gcc and python packages turned out to be tricky, and had to be downgraded all together. I did make notes, but following them blindly would most likely just do more harm than good, so I won&#8217;t post them here; you&#8217;ll need to hack&#8217;n&#8217;slash your own way anyway.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>After upgrading all Ubuntu 18.04 packages to their latest releases, I adapted eudoxos&#8216; recipe: Rebooted and selected the stock 18.04 kernel instead of HWE, which I was using Downloaded debian-keyring and debian-archive-keyring .debs and installed them with dpkg -i debian*.deb Created \/etc\/apt\/preferences.d\/10-no-ubuntu to pin down Ubuntu packages: Package: * Pin: release o=Ubuntu Pin-Priority: -1000 Added [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[362,2679],"class_list":["post-3993","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-debian","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3993","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=3993"}],"version-history":[{"count":19,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3993\/revisions"}],"predecessor-version":[{"id":4012,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3993\/revisions\/4012"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=3993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=3993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=3993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}