PDA

View Full Version : apt update error help



highrider420
2023-03-03, 22:44
So as the title suggests, I am having issues with using apt update, Below are the commands I am running and the output in screenshot:

Seems to be an issue with MariaDB versioin 10.6 conflicting with the current version at the same time but when i try to stop the service i get another error telling me it cant find the servioce or it doesnt exist.



apt update && apt upgrade -y && apt autoremove -y
Hit:1 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease
Hit:2 https://deb.opera.com/opera-stable stable InRelease
Hit:3 https://packages.sury.org/php buster InRelease
Hit:4 https://download.virtualbox.org/virtualbox/debian bullseye InRelease
Get:6 https://dl.cloudsmith.io/public/balena/etcher/deb/kali kali-rolling InRelease [5,086 B]
Hit:5 http://mirrors.jevincanders.net/kali kali-rolling InRelease
Fetched 5,086 B in 1s (5,154 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
550 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://downloads.metasploit.com/data/releases/metasploit-framework/apt/dists/lucid/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.6 (>= 1:10.6.11-2) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


-----------------------------------------------------------------------------------
Then I will runt the suggested command and i ge the following output below





└─# apt --fix-broken install -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mariadb-client mariadb-client-core mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma
mariadb-plugin-provider-lzo mariadb-plugin-provider-snappy mariadb-server pv
Suggested packages:
mariadb-test netcat-openbsd
The following packages will be REMOVED:
mariadb-client-10.6 mariadb-client-core-10.6
The following NEW packages will be installed:
mariadb-client-core mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
mariadb-plugin-provider-snappy pv
The following packages will be upgraded:
mariadb-client mariadb-server
2 upgraded, 7 newly installed, 2 to remove and 548 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,539 kB of archives.
After this operation, 70.7 MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 780439 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.2-1_amd64.deb ...
/var/lib/mysql: found previous version 10.6
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.2-1_amd64.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.2-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

--------------------------------------------------------------------------------------------------------------------------------------------------

As i mentioned before when i attempt to check for the service running and the status of it using the systemctl command, and it always returns the no process found command

Any help with this removing the old version of mariadb and correcting this issue would greately be appreciated

Fred Sheehan
2023-03-09, 05:47
sudo apt reinstall mariadb-server

Fred Sheehan
2023-04-04, 23:59
sudo apt update && sudo apt full-upgrade -y

miafrance
2023-05-10, 17:18
So as the title suggests, I am having issues with using apt update, Below are the commands I am running and the output in screenshot:

Seems to be an issue with MariaDB versioin 10.6 conflicting with the current version at the same time but when i try to stop the service i get another error telling me it cant find the servioce or it doesnt exist.


apt update && apt upgrade -y && apt autoremove -y
Hit:1 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease
Hit:2 https://deb.opera.com/opera-stable stable InRelease
Hit:3 https://packages.sury.org/php buster InRelease
Hit:4 https://download.virtualbox.org/virtualbox/debian bullseye InRelease
Get:6 https://dl.cloudsmith.io/public/balena/etcher/deb/kali kali-rolling InRelease [5,086 B]
Hit:5 http://mirrors.jevincanders.net/kali kali-rolling InRelease
Fetched 5,086 B in 1s (5,154 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
550 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://downloads.metasploit.com/data/releases/metasploit-framework/apt/dists/lucid/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.6 (>= 1:10.6.11-2) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


-----------------------------------------------------------------------------------
Then I will runt the suggested command and i ge the following output below





└─# apt --fix-broken install -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mariadb-client mariadb-client-core mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma
mariadb-plugin-provider-lzo mariadb-plugin-provider-snappy mariadb-server pv
Suggested packages:
mariadb-test netcat-openbsd
The following packages will be REMOVED:
mariadb-client-10.6 mariadb-client-core-10.6
The following NEW packages will be installed:
mariadb-client-core mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
mariadb-plugin-provider-snappy pv
The following packages will be upgraded:
mariadb-client mariadb-server
2 upgraded, 7 newly installed, 2 to remove and 548 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,539 kB of archives.
After this operation, 70.7 MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 780439 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.2-1_amd64.deb ...
/var/lib/mysql: found previous version 10.6
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.2-1_amd64.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.2-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

--------------------------------------------------------------------------------------------------------------------------------------------------

As i mentioned before when i attempt to check for the service running and the status of it using the systemctl command, and it always returns the no process found command

Any help with this removing the old version of mariadb and correcting this issue would greately be appreciated
Aqu? es donde la calculadora de comisiones de PayPal se vuelve fundamental c?lculos de tarifas (https://payplcalculadora.com/). Esta ?til herramienta se encarga de todos los c?lculos tediosos y que demandan tiempo, liber?ndolo para que pueda concentrarse en ver crecer su saldo en las cuentas bancarias.
I am also having the same issue. tag me if you get any solution related to black friday solar panel sale (https://www.bougerv.com/pages/black-friday)