I was trying to install latex on Ubuntu 22.04 by installing miktex. After following the steps outlined on the website, I ran into the following error message:
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:
miktex : Depends: libboost-locale1.65.1 but it is not installable
Depends: libhunspell-1.6-0 but it is not installable
Depends: libicu60 (>= 60.1-1~) but it is not installable
Depends: liblog4cxx10v5 (>= 0.10.0) but it is not installable
Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
I googled around, and tried to install openssl 1.1.1 manually. However, the error messages seem to persist. Any suggestions as to what I should undertake to fix this?
dpkg --get-selections | grep hold
yields no output
and
sudo aptitude install miktex
yields
sudo aptitude install miktex
The following NEW packages will be installed:
libqt5concurrent5{a} libqt5qml5{a} libqt5script5{a} libqt5scripttools5{a} libqt5xml5{a}
liburiparser1{a} libzzip-0-13{a} miktex{b}
0 packages upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.0 MB of archives. After unpacking 121 MB will be used.
The following packages have unmet dependencies:
miktex : Depends: libboost-locale1.65.1 which is a virtual package and is not provided by any available package
Depends: libhunspell-1.6-0 which is a virtual package and is not provided by any available package
Depends: libicu60 (>= 60.1-1~) which is a virtual package and is not provided by any available package
Depends: liblog4cxx10v5 (>= 0.10.0) which is a virtual package and is not provided by any available package
Depends: libssl1.1 (>= 1.1.0) which is a virtual package and is not provided by any available package
miketex
(for example, in the 2nd screenshot) and it'smiktex
. – Organic Marble Nov 13 '22 at 20:39libicu60
were not used (do not even exist on my system), so I am not sure at all what you are doing. Perhaps it would be good to add the exact commands -all of them - you typed in to your question. – Organic Marble Nov 13 '22 at 21:56sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
then
echo "deb http://miktex.org/download/ubuntu jammy universe" | sudo tee /etc/apt/sources.list.d/miktex.list
finally
sudo apt-get update
– James Nov 13 '22 at 22:12sudo apt-get install miktex