System lässt sich nicht mehr updaten

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Antworten
flexmind
Beiträge: 16
Registriert: 16.06.2014 16:40:04

System lässt sich nicht mehr updaten

Beitrag von flexmind » 23.11.2020 23:16:02

Hallo zusammen,

auf einem AMD APU System habe ich von Debian 9 auf 10 geupdatet.

Seitdem kriege ich kein Upgrade mehr durch.


Code: Alles auswählen

root@apu:/# apt update && apt upgrade
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Fetched 51.9 kB in 2s (32.8 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nginx-light (1.14.2-2+deb10u3) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-11-23 23:12:43 CET; 30ms ago
     Docs: man:nginx(8)
  Process: 8088 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Nov 23 23:12:43 apu systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 23 23:12:43 apu nginx[8088]: nginx: [emerg] directive "server_name" is not terminated by ";" in /etc/nginx/sites-enabled/default:48
Nov 23 23:12:43 apu nginx[8088]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 23 23:12:43 apu systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 23 23:12:43 apu systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 23 23:12:43 apu systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-light (--configure):
 installed nginx-light package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:
  Package nginx-full is not installed.
  Package nginx-light is not configured yet.
  Package nginx-extras is not installed.
 nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:
  Package nginx-full is not installed.
  Package nginx-light is not configured yet.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx-light
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Mit apt install -f komme ich auch nicht weiter.

Code: Alles auswählen

root@apu:/# apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nginx-light (1.14.2-2+deb10u3) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-11-23 23:14:41 CET; 35ms ago
     Docs: man:nginx(8)
  Process: 8371 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Nov 23 23:14:41 apu systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 23 23:14:41 apu nginx[8371]: nginx: [emerg] directive "server_name" is not terminated by ";" in /etc/nginx/sites-enabled/default:48
Nov 23 23:14:41 apu nginx[8371]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 23 23:14:41 apu systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 23 23:14:41 apu systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 23 23:14:41 apu systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-light (--configure):
 installed nginx-light package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:
  Package nginx-full is not installed.
  Package nginx-light is not configured yet.
  Package nginx-extras is not installed.
 nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:
  Package nginx-full is not installed.
  Package nginx-light is not configured yet.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx-light
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)


Ich frage mich, warum er nginx updaten will.
Ich nutze nginx gar nicht. Ich habe stattdessen apache2 installiert.

Kennt jemand diese Fehlermeldungen und kann mir einen Tip geben?

Vielen lieben Dank!

eggy
Beiträge: 3331
Registriert: 10.05.2008 11:23:50

Re: System lässt sich nicht mehr updaten

Beitrag von eggy » 23.11.2020 23:50:30

Der Output sagt was anderes, aus irgendnem Grund ist/wird nginx bzw nginx-light installiert.
Und da stimmt laut Log was mit der config nicht:
Nov 23 23:12:43 apu nginx[8088]: nginx: [emerg] directive "server_name" is not terminated by ";" in /etc/nginx/sites-enabled/default:48
Reparieren und nochmal probieren oder, wenn Du das wirklich nicht brauchst, die entsprechenden Pakete runterwerfen. Falls die von irgendwas gebraucht werden, wirst Du gewarnt und kannst entscheiden.

Antworten