I have to use a third party software which officially supports RHEL, SuSE (SLE[DS]) and a certain Ubuntu LTS release.
Unfortunately, I use Debian on all my systems.
If I run the installer script of the software, it exits with an error message ("Distribution not supported") and doesn't install.
The installation download comes with a .deb
package which is actually meant for Ubuntu. This .deb
file is installed by the installer script if and only if /etc/os-release
contains a Ubuntu version (simple String check). But the good news is: You can just find the name of the .deb
file and install it manually using dpkg -i
on Debian and the installed software works just perfectly. :)
There is just one thing I'm not satisfied with: The automated updates feature of the software uses the above mentioned installer script which doesn't like Debian. So I don't get unattended upgrades for this application:
The update process successfully downloads new versions including the .deb
file but than launches the unwilling installer script instead of just installing the .deb
file. The installer exits with error. Update failed. :( (I don't know why the vendor doesn't simply provide a URL for /etc/apt/sources.list.d
and instead made this creepy custom update mechanism.)
I have to manually download a new version, extract the *.deb file and reinstall that.
Do you have some ideas or suggestions what I could do about that?
I could simply edit the text file /etc/os-release
to say "Ubuntu" instead of "Debian". Then the problem would be gone. But will that have side effects on the system, e.g. trouble with apt-get update && apt-get upgrade
?
Or can I "mount" a fake /etc/os-release
file for a certain systemd service unit? So that only this service thinks it runs on Ubuntu instead of Debian? Maybe something like a chroot? But wouldn't I have to manually keep the entire system copy up-to-date in the chroot directory?