I have tried the following for this error:
sudo apt-get update --fix-missing
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt upgrade
But I get the same error. I have actually purged mysql and mariadb and have been trying to reinstall them. I need to install mariadb-server and I am getting this error (title). Then, I saw a post that says to use aptitude. And when I try to install aptitude or mariadb-server I get this error.
This is my /etc/apt/sources.list file after modifying it:
deb http://archive.ubuntu.com/ubuntu focal universe
Error trace
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
aptitude : Depends: libboost-iostreams1.71.0 but it is not installable
Depends: libcwidget4 (>= 0.5.18-1) but it is not going to be installed
Depends: libsigc++-2.0-0v5 (>= 2.8.0) but it is not installable
Recommends: libparse-debianchangelog-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I am using Ubuntu 20.04
This is the apt policy aptitude
:
aptitude:
Installed: (none)
Candidate: 0.8.12-1ubuntu4
Version table:
0.8.12-1ubuntu4 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Thanks in advance!
apt policy aptitude
– Organic Marble Oct 26 '22 at 14:47