miktex icon indicating copy to clipboard operation
miktex copied to clipboard

Support for Debian 11/Ubuntu 22.04

Open vitorsr opened this issue 2 years ago • 1 comments

Hi Christian,

Is support for Debian 11 (current stable release) and Ubuntu 22.04 (latest LTS) planned?

Thanks for developing MiKTeX.

vitorsr avatar Jun 06 '22 18:06 vitorsr

Here's my experience trying to install it in Ubuntu 22.04.

I tried the installation steps here https://github.com/MiKTeX/miktex/discussions/680

The final step sudo apt-get install miktex resulted in the following error:

$ sudo apt-get install miktex
Reading package lists... Done
Building dependency tree... Done
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:
 miktex : Depends: libboost-locale1.71.0 but it is not installable
          Depends: libicu66 (>= 66.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.

From here I'm not sure how to proceed.

I'm thinking to install a dedicated Ubuntu 20.04 OS so that I can use MikTek.

curran avatar Jul 06 '22 19:07 curran

Hello. I will be grateful if you can create the jammy/ dictionary in CTAN/systems/win32/miktex/setup/deb/dists/. I mean, I will be grateful if I can install MiKTeX in Ubuntu 22.04 from CTAN.

qiancy98 avatar Aug 27 '22 13:08 qiancy98

Packages for Debian 11 and Ubuntu 22.04 are now available.

edocevoli avatar Aug 28 '22 09:08 edocevoli

Hooray! Thank you so much.

curran avatar Aug 28 '22 15:08 curran

Maybe there is a signature problem? On Ubuntu 22.04, I got:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://mirror.funkfreundelandshut.de/latex/systems /win32/miktex/setup/deb jammy InRelease: The following signatures were invalid: EXPKEYSIG 277A7293F59E4889 MiKTeX Packager <[email protected]> W: Failed to fetch http://miktex.org/download/ubuntu/dists/jammy/InRelease The following signatures were invalid: EXPKEYSIG 277A7293F59E4889 MiKTeX Packager <[email protected]> W: Some index files failed to download. They have been ignored, or old ones used instead.

My sources.list: deb [arch=amd64 signed-by=/usr/share/keyrings/miktex.gpg] http://miktex.org/download/ubuntu jammy universe

The file miktex.gpg is created using this "modern way" (see https://www.digitalocean.com/community/tutorials/how-to-handle-apt-key-and-add-apt-repository-deprecation-using-gpg-to-add-external-repositories-on-ubuntu-22-04):

sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/miktex.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889 Do I miss anything?

Thanks for the fantastic work!

All the best Gregor

ggruening avatar May 03 '23 10:05 ggruening

The key has been expired a few days ago. I renewed it a couple of hours ago.

edocevoli avatar May 03 '23 12:05 edocevoli

The key has been expired a few days ago. I renewed it a couple of hours ago.

Perfect. It's working again.

ggruening avatar May 04 '23 05:05 ggruening

I am having this error while installing miktex on ubuntu 22.04:

W: http://miktex.org/download/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu jammy InRelease' doesn't support architecture 'i386'

rafisics avatar Jun 26 '23 19:06 rafisics

I am having this error while installing miktex on ubuntu 22.04:

W: http://miktex.org/download/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu jammy InRelease' doesn't support architecture 'i386'

You can try to store the key the "modern way" and naming the architecture explicitly. See above.

ggruening avatar Jun 27 '23 21:06 ggruening

You can try to store the key the "modern way" and naming the architecture explicitly. See above.

This way?

sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/miktex.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/miktex.gpg] http://miktex.org/download/ubuntu jammy universe" | sudo tee /etc/apt/sources.list.d/miktex.list

rafisics avatar Jun 28 '23 05:06 rafisics

@

The file miktex.gpg is created using this "modern way" (see https://www.digitalocean.com/community/tutorials/how-to-handle-apt-key-and-add-apt-repository-deprecation-using-gpg-to-add-external-repositories-on-ubuntu-22-04):

sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/miktex.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889 Do I miss anything?

@ggruening did this work for you?

SolNunes avatar Jul 05 '23 08:07 SolNunes

@SolNunes Yes, it worked.

ggruening avatar Jul 08 '23 17:07 ggruening