{"id":42,"date":"2015-05-14T15:48:49","date_gmt":"2015-05-14T14:48:49","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=42"},"modified":"2016-11-27T01:06:50","modified_gmt":"2016-11-27T00:06:50","slug":"upgrade-wheezy-to-jessie","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=42","title":{"rendered":"Upgrade wheezy to jessie"},"content":{"rendered":"<p>All in all, it was easy. Just one big caveat regarding apache2. Can&#8217;t say if it was PEBKAC any more. But read below.<\/p>\n<h4>1. Check for obsolete packages<\/h4>\n<p>As stated in the official\u00a0<a href=\"https:\/\/www.debian.org\/releases\/jessie\/amd64\/release-notes\/ch-upgrading.en.html\">Upgrade Guide<\/a>: Do an audit!<\/p>\n<pre># dpkg --audit<\/pre>\n<p>Really, do it! And fix the non-compliant packages.<\/p>\n<h4>2. Install the Distribution Kernel<\/h4>\n<p>Again, really do it. Otherwise the dist-upgrade will fail on udev, if your custom kernel doesn&#8217;t have CONFIG_SIGNALFD, CONFIG_FHANDLE and whatnot built in. You can override it, but then it won&#8217;t boot. So better be safe.<\/p>\n<h4>3. Update and dist-upgrade<\/h4>\n<p>Change \/etc\/apt\/sources.list to use jessie. Then<\/p>\n<pre># apt-get update\r\n# apt-get dist-upgrade<\/pre>\n<p>Carefully watch for configfile-conflicts. Esp. Apache and cyrus! Keep the config for:<\/p>\n<ul>\n<li>\/etc\/cyrus.conf<\/li>\n<li>\/etc\/imapd.conf<\/li>\n<\/ul>\n<p>Don&#8217;t overwrite them! We&#8217;ll fix them later!<\/p>\n<h4>4. Reboot<\/h4>\n<p>Reboot into the new system, get systemd running. Again, don&#8217;t even think to go on without a reboot<\/p>\n<h4>5. Fix cyrus and postfix<\/h4>\n<p>The command for cyr_* has changed. Now it&#8217;s so cyrus &lt;*&gt;, so move the old config out of the way and replace it with .dpkg-dist. Then diff it and change the relevant line(s). That would be especially:<\/p>\n<pre>lmtpunix cmd=\"lmtpd\" \\\r\n   listen=\"\/var\/spool\/postfix\/cyrus-socket\/lmtp\" \\\r\n   prefork=0 maxchild=20<\/pre>\n<p>with<\/p>\n<pre>lmtp cmd=\"lmtpd -a\" listen=\"localhost:lmtp\" prefork=0 maxchild=20<\/pre>\n<p>So don&#8217;t listen on an AF_UNIX socket\u00a0any more but on a network socket. <strong>For this to work you need to add this line to \/etc\/services<\/strong>:<\/p>\n<pre>lmtp \u00a0 \u00a0 \u00a0 \u00a024\/tcp<\/pre>\n<p>LMTP doesn&#8217;t seem to be a well known port, whatever&#8230;<\/p>\n<p>Now for postfix: Change \/etc\/postfix\/main.cf accordingly:<\/p>\n<pre>mailbox_transport = lmtp:inet:localhost<\/pre>\n<p>I.e. listen on a network socket instead of AF_UNIX. This way you don&#8217;t have to bother with permissions on the socket file, and it&#8217;s IPv6-enabled as a bonus \ud83d\ude42<\/p>\n<h4>6. Fix apache2<\/h4>\n<p><em>Make sure all your files in sites-available end in *.conf!<\/em> Otherwise they won&#8217;t be loaded! I learned the hard way, wondering why SSL-Connections failed because there was no SSL. Check what VHosts are loaded with:<\/p>\n<pre># apache2ctl -t -D DUMP_VHOSTS<\/pre>\n<p>If that shows no Vhosts, you don&#8217;t have any! Fix it. BTW, NameVirtualHost is obsolete. Remove it. So seems to be gnutls&#8230;<\/p>\n<p>Create an IPv6-enabled-VHost like this:<\/p>\n<pre>&lt;VirtualHost _default_:443&gt;\r\n...\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All in all, it was easy. Just one big caveat regarding apache2. Can&#8217;t say if it was PEBKAC any more. But read below. 1. Check for obsolete packages As stated in the official\u00a0Upgrade Guide: Do an audit! # dpkg &#8211;audit Really, do it! And fix the non-compliant packages. 2. Install the Distribution Kernel Again, really &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=42\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Upgrade wheezy to jessie<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[69],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-linux","tag-debian"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":7,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}