{"id":5609,"date":"2025-08-11T20:59:45","date_gmt":"2025-08-11T20:59:45","guid":{"rendered":"https:\/\/www.voodoo.business\/blog\/?p=5609"},"modified":"2025-08-11T21:13:18","modified_gmt":"2025-08-11T21:13:18","slug":"trixie-php8-4-imap-missing","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2025\/08\/11\/trixie-php8-4-imap-missing\/","title":{"rendered":"Trixie&#8230; php8.4-imap missing"},"content":{"rendered":"\n<p>Error: Unable to locate package php8.4-imap<br>Error: Couldn&#8217;t find any package by glob &#8216;php8.4-imap&#8217;<\/p>\n\n\n\n<p>the debian package maintainer (Ond\u0159ej Sur\u00fd) has released it on his repository, but it is nowhere to be found for Debian 13 on &#8220;<a href=\"https:\/\/packages.debian.org\/\">https:\/\/packages.debian.org\/<\/a>&#8220;, trixie didn&#8217;t trickle down to the website yet, but in SID, it reads &#8220;The extension is unbundled from php-src as of PHP 8.4.0.&#8221;<\/p>\n\n\n\n<p>I am not yet sure what this means, there is a chance it means we should install it using PECL, I will not do that, I would rather installwith apt, but if i wanted to, i would execute<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install php-pear php8.4-dev<br>sudo pecl install imap<\/pre>\n\n\n\n<p>There is a chance that it will be coming back to debian&#8217;s repositories since Sury (The package maintainer) has it, but I have no idea when<\/p>\n\n\n\n<p>So, let us install it (the IMAP extension and nothing else) from the sury repository to make things simpler when debian has it again<\/p>\n\n\n\n<p>Let us start by adding<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install -y lsb-release apt-transport-https ca-certificates curl gnupg2<br>echo \"deb https:\/\/packages.sury.org\/php $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/sury-php.list<br>curl -fsSL https:\/\/packages.sury.org\/php\/apt.gpg | sudo gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/sury-php.gpg<br>sudo apt update<\/pre>\n\n\n\n<p>Now we have added Sury&#8217;s repository to apt, let us go ahead and pin it so that only php8.4-imap is sourced from that repo !<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo tee \/etc\/apt\/preferences.d\/sury-php.pref >\/dev\/null &lt;&lt;'EOF'<br>Package: *<br>Pin: release o=deb.sury.org<br>Pin-Priority: 1<br><br>Package: php8.4-imap<br>Pin: release o=deb.sury.org<br>Pin-Priority: 990<br>EOF<br><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update<\/pre>\n\n\n\n<p>Now install<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install php8.4-imap<\/code><\/pre>\n\n\n\n<p>To make sure everything is correct<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt policy php8.4-imap<\/code><\/pre>\n\n\n\n<p>Now in my case, I need to restart PHP (systemctl restart php8.4), in your case, you might need to restart apache or something else, when in doubt, restart the machine \ud83d\ude1b<\/p>\n\n\n\n<p>Once the package is in debian repositories again, we will simply remove \/etc\/apt\/preferences.d\/sury-php.pref and \/etc\/apt\/sources.list.d\/sury-php.list, then reinstall php8.4-imap.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error: Unable to locate package php8.4-imapError: Couldn&#8217;t find any package by glob &#8216;php8.4-imap&#8217; the debian package maintainer (Ond\u0159ej Sur\u00fd) has released it on his repository, but it is nowhere to be found for Debian 13 on &#8220;https:\/\/packages.debian.org\/&#8220;, trixie didn&#8217;t trickle down to the website yet, but in SID, it reads &#8220;The extension is unbundled from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[123],"tags":[],"class_list":["post-5609","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/5609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=5609"}],"version-history":[{"count":6,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/5609\/revisions"}],"predecessor-version":[{"id":5615,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/5609\/revisions\/5615"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=5609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=5609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=5609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}