Starting yesterday, I cannot upgrade my Ubuntu installation. When running sudo apt-get upgrade
I got an error:
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:
unixodbc : Depends: odbcinst1debian2 (>= 2.3.11) but it is not installed
Depends: libodbc1 (>= 2.3.11) but it is not installed
unixodbc-dev : Depends: odbcinst1debian2 (= 2.3.11) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Running sudo apt --fix-broken install
gave me an error.
Installing those packages manually with sudo apt-get install -y libodbc1
was not helpful.
According to this it could be related to Microsoft SQL server, that I was investigating for testing purposes but quite a time ago. Using solutions from here was not helpful (same error).
The output of sudo apt update
:
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://packages.microsoft.com/repos/code stable InRelease
Hit:5 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:6 https://packages.microsoft.com/ubuntu/20.04/mssql-server-preview focal InRelease [7 383 B]
Hit:7 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:9 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
Hit:10 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu jammy InRelease
Hit:11 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu jammy InRelease
Fetched 118 kB in 1s (94,7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
I have Ubuntu 22.04.2 LTS.
sudo apt update
– user535733 Feb 20 '23 at 00:11sudo apt full-upgrade
(rather thanupgrade
) does the update complete? – popey Feb 20 '23 at 00:15added
sudo apt update
outputsudo apt full-upgrade
gives the same error assudo apt-get upgrade
sudo apt install unixodbc odbcinst1debian2 libodbc1 unixodbc-dev
- i.e. manually force installing? Any additional messages? – popey Feb 20 '23 at 01:01sudo apt install unixodbc odbcinst1debian2 libodbc1 unixodbc-dev
orsudo apt-get upgrade
) – makkreker Feb 20 '23 at 01:12unixodbc
binaries are in the 'universe' pocket of the Ubuntu repositories, which --according to your apt output-- is not enabled. – user535733 Feb 20 '23 at 01:13