ubuntuusers.de

Sub-process /usr/bin/dpkg returned an error code (1)

Status: Gelöst | Ubuntu-Version: Server 24.04 (Noble Numbat)
Antworten |

weholei

Anmeldungsdatum:
7. Februar 2019

Beiträge: 856

Wohnort: Mittelfranken

In der Hoffnung, dass jemand mehr damit anfangen kann als ich (-;

testuser@pi4:/ $ sudo apt --fix-broken install
[sudo] password for testuser: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  galera-4 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libencode-locale-perl libfcgi-bin libfcgi-perl libfcgi0t64 libhtml-parser-perl libhtml-tagset-perl
  libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmariadb3 libsnappy1v5 libtimedate-perl liburi-perl mariadb-client
  mariadb-client-core mariadb-common mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
  mariadb-plugin-provider-snappy mariadb-server mariadb-server-core pv socat
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  mariadb-server
Suggested packages:
  mariadb-test
The following NEW packages will be installed:
  mariadb-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
32 not fully installed or removed.
Need to get 0 B/3440 kB of archives.
After this operation, 57.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 92606 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.13-0ubuntu0.24.04.1_arm64.deb ...
Failed to stop mariadb.service: Unit mariadb.service not loaded.
invoke-rc.d: initscript mariadb, action "stop" failed.
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Attempt to stop MariaDB/MySQL server returned exitcode 5
There is a MariaDB/MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server_1%3a10.11.13-0ubuntu0.24.04.1_arm64.deb (--unpack):
 new mariadb-server package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server_1%3a10.11.13-0ubuntu0.24.04.1_arm64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
testuser@pi4:/ $ 

./.

Beim korrekturlesen ist mir aufgefallen, ich könnte ja mal mariadb deinstallieren

schwarzheit Team-Icon

Supporter
Avatar von schwarzheit

Anmeldungsdatum:
31. Dezember 2007

Beiträge: 4689

weholei schrieb:

...
There is a MariaDB/MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
...
sudo systemctl stop mariadb

weholei

(Themenstarter)

Anmeldungsdatum:
7. Februar 2019

Beiträge: 856

Wohnort: Mittelfranken

Danke für den Hinweis

ganz so einfach war es dann doch nicht (-;

aber das hat geholfen

sudo snap stop nextcloud

Ich muss gestehen, ich habe zuerst nextcloud nach wiki installiert und dann einen Link mit einer sehr guten Beschreibung hier im Forum erhalten und noch mal installiert, ohne das alte zu löschen

https://decatec.de/home-server/nextcloud-auf-ubuntu-server-24-04-lts-mit-nginx-mariadb-postgresql-php-lets-encrypt-redis-und-fail2ban/

Antworten |