Results 1 to 4 of 4

Thread: apt update error help

  1. #1

    Lightbulb apt update error help

    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...-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...cid/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

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    sudo apt reinstall mariadb-server
    Last edited by Fred Sheehan; 2023-05-27 at 12:38.

  3. #3
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    sudo apt update && sudo apt full-upgrade -y

  4. #4
    Join Date
    2020-Aug
    Posts
    35
    Quote Originally Posted by highrider420 View Post
    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...-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...cid/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. 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
    Last edited by miafrance; 2023-10-30 at 05:00.

Similar Threads

  1. apt-get update error
    By alexei in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2022-01-27, 23:15
  2. yet another apt-get update error
    By DoinThaMost420 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-12-17, 13:02
  3. Replies: 0
    Last Post: 2014-02-13, 14:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •