How to change to Nginx Mainline from Ubuntu PPA

Infos:

  • Used Zammad version: 6.0.0-1686655247.7bb53cc4.bionic
  • Used Zammad installation type: Package
  • Operating system: Ubuntu 20.04
  • Browser + version: Firefox 115.8.0esr (64-bit) & Brave Version 1.63.169 Chromium: 122.0.6261.111 (Official Build) (64-bit)

Expected behavior:

Purging the Nginx from the ubuntu PPA should not remove Zammad
*

Actual behavior:

When purging Nginx-common or Nginx-core Zammad gets removed to.
*

Steps to reproduce the behavior:

Install Zammad with the Ubuntu PPA Nginx and try to change to Ngnix.org repository.
Since for the change a reinstall of nginx is necessary and zammad gets removed too.
*

The packages nginx or apache2 are a dependency of Zammads package and thus what you’re trying to do is not possible.

Hi,

Thanks for your lightning fast response!
You should change your name to MrZeus! :wink:

I found the solution myself about 15 min after posting :person_facepalming: Murphy’s law…
I think a little more background information would be best for understanding my initial situation:
The Zammad I am working on should get a cyber insurance, but the insurer will test the server for security problems.
On Ubuntu 20.04 the latest version of Nginx is 1.18 which is marked in the test as not secure enough.
While trying to switch between Nginx repository and the Ubuntu PPA version I got the problem I reported.

I found the solution here in step 3: How to Install Nginx Mainline on Ubuntu 22.04 or 20.04 - LinuxCapable

After creating the Nginx.list files for apt the following command must be issued:

echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" | sudo tee /etc/apt/preferences.d/99nginx

After that I was able to change the version with:

sudo apt install --reinstall nginx

I verified the change with nginx -v:

root@Update-test-Zammad:/opt/zammad/contrib/nginx# nginx -v
nginx version: nginx/1.24.0

Just to be sure, I also did sudo apt list --installed | grep nginx

root@Update-test-Zammad:/opt/zammad/contrib/nginx# sudo apt list --installed | grep nginx

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

nginx/stable,now 1.24.0-1~focal amd64  [installiert]

@MrGeneration I never contributed to the zammad docs, but may I add i to the troubleshooting part?
https://docs.zammad.org/en/latest/appendix/troubleshooting/index.html

1 Like

You’re welcome to contribute based on your capabilities.
I’m not sure if this is too technical for some though, because this potentially can break things for users that don’t understand the scope.

As I am no longer responsible for the documentation though, others might have a different view on this. You can try! :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.