User Tools

Site Tools


unix:linux:debian:devuan_sury

This is an old revision of the document!


sury.org breaks Devuan

Summary

In February 2020, the “go to” place to do multiple PHP installations on Debian based servers decided to create a dependency for system-d to the package. Installing or upgrading a Devuan system that used this site would result in an unusable web server. The package maintainer, who has been doing this work faithfully for almost a decade and whom the community owes a debt of gratitude to for his hard work, determined that the package for Debian based systems would not be changed; system-d would be required for any packages installed with his site as a source.

One of the users at Devuan has taken the original packages, modified them so they do not need system-d, and created a secondary location where the packages can be installed from. If you are using a non-system-d system, you will want to convert to this new site before you perform your new update. I will update this page for more details, but the following code will do this. Basically, change /etc/apt/sources.list.d/php.list to hold the packages form tdrnetworks.com. See links at the bottom of this article for more information.

These instructions are for devuan ascii and php 7.4, but are applicable for more recent versions of Devuan and PHP.

Code

To verify sury is being used for PHP, execute the following. If it returns any values, you have it set up and need to fix it. If not, you may be using it but not have used the default setup.

grep sury  /etc/apt/sources.list.d/php.list

If the above returns any lines, you can use the following to set up using tdnetworks.com

# get apt-transport-https if it is not installed
apt install apt-transport-https gnupg
# download key using wget and sending to stdout, then add using apt-key
wget -qO - http://pkgs.tdrnetworks.com/apt/devuan/gpg.key | apt-key add -
# save old file as .disabled
mv  /etc/apt/sources.list.d/php.list  /etc/apt/sources.list.d/php.list.disabled
# create new list file
echo 'deb https://pkgs.tdrnetworks.com/apt/devuan ascii main' >> /etc/apt/sources.list.d/php.list
echo 'deb-src https://pkgs.tdrnetworks.com/apt/devuan ascii main' >> /etc/apt/sources.list.d/php.list
# update
apt update
apt-get install php7.2 php7.2-cli php7.2-cgi php7.2-fpm php7.2-gd php7.2-mysql php7.2-imap php7.2-curl php7.2-intl php7.2-pspell php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl php7.2-zip php7.2-mbstring php7.2-soap php7.2-opcache php7.2-common php7.2-json php7.2-readline php7.2-xml

References

unix/linux/debian/devuan_sury.1656010724.txt.gz · Last modified: 2022/06/23 13:58 by rodolico