home_server:home_server_setup:other_services:apt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
home_server:home_server_setup:other_services:apt [2020-10-30 Fri wk44 20:31] baumkphome_server:home_server_setup:other_services:apt [2023-12-26 Tue wk52 11:36] (current) baumkp
Line 1: Line 1:
-{{tag>linux ubuntu debian package apt apt-get update upgrade}}+{{tag>linux debian package apt apt-get update upgrade distribution }}
 =====apt package management===== =====apt package management=====
 I recently had a ''sudo apt upgrade'' error along the lines of: I recently had a ''sudo apt upgrade'' error along the lines of:
 <code>mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.25-0ubuntu0.20.04.1) but 1:10.3.23+maria~bionic is installed</code> <code>mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.25-0ubuntu0.20.04.1) but 1:10.3.23+maria~bionic is installed</code>
 +Basically the apt / dpkg package manger got confused with the old distribution installation. I suspect this only happen as I updated the distribution from Ubuntu 18.04 to 20.04. Basically the ''apt upgrade'' stopped working and repeated the above error. I could no longer update my system.
 +To repair I need to do the following:
 +  - Backup the databases (not described here)
 +  - ''sudo dpkg -P mariadb-server'' to remove just the old package that was confusing apt package manager
 +  - ''sudo apt --fix-broken install'' to fix the broken package
 +  - ''sudo apt autoremove'' to remove the old packages
 +  - ''sudo apt install mariadb-server'' to install the full correct current package
 +  - ''sudo apt update''  to update the system package listing
 +  - ''sudo apt upgrade'' to update the install system packages that was no functional
 +After this I found upon checking the database that the original data was still intect, so I did not need to restore the data from the backup.
 +
 +[[https://linuxiac.com/how-to-upgrade-to-debian-12-from-debian-11/|Upgrading to Debian 12 from Debian 11: A Step-by-Step Guide]]
 +
 ---- ----
-<- home_server:home_server_setup:other_services:manjaro|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:misc|Next ->+<- home_server:home_server_setup:other_services:docker|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:samba|Next ->
  • /app/www/public/data/attic/home_server/home_server_setup/other_services/apt.1604061113.txt.gz
  • Last modified: 2023-04-30 Sun wk17 17:44
  • (external edit)