Control Web Panel
WebPanel => Updates => Topic started by: Painkiller88 on November 18, 2021, 12:23:45 PM
-
CWPpro version: 0.9.8.1101
YUM is not able to update this package: nginx.x86_64 1:1.20.2-1.el7.ngx
the automatic updater just shows failed and cleared but it never works.
Any ideas how i get this to work or how i can see what exactly is the problem?
In the logs i haven't found any yum or update log.
thanks
-
i tried to update it in the terminal and it was a bit more user friendly what's going on:
It is in german but it tells me unpacking was the problem
Running transaction
Aktualisieren : 1:nginx-1.20.2-1.el7.ngx.x86_64 1/2
Error unpacking rpm package 1:nginx-1.20.2-1.el7.ngx.x86_64
Fehler: Entpacken des Archivs fehlgeschlagen bei Datei /etc/nginx/modules: cpio: rename
1:nginx-1.20.1-2.el7.x86_64 was supposed to be removed but is not!
Überprüfung läuft: 1:nginx-1.20.1-2.el7.x86_64 1/2
Überprüfung läuft: 1:nginx-1.20.2-1.el7.ngx.x86_64 2/2
Fehlgeschlagen:
nginx.x86_64 1:1.20.1-2.el7 nginx.x86_64 1:1.20.2-1.el7.ngx
-
yum update command doesn't work ?
-
no, the above is the output of the update yum command in the terminal
-
The problem probably you have two repositories for nginx binaries (possibly CentOS and nginx repositories).
I had the exact same problem, and was needed to remove and downgrade the nginx version to a working version:
# yum remove nginx
# yum install nginx-1.20.1-1.el7.ngx
May be needed remove other nginx packages too.
A *serious* problem:
Be careful and make sure you have the configuration file backed up ('/etc/nginx/nginx.conf'), because it will erase that file.
You will need to restore this file from backup, to keep the new downgraded binary nginx working.
Regards,
Netino
-
thanks i will try it out.