我无法使用 pdflatex 编译任何 tex 文件?(问题今天开始出现)我该如何解决?

我无法使用 pdflatex 编译任何 tex 文件?(问题今天开始出现)我该如何解决?

我正在使用 ubuntu 18.04。

miktex console两天前我下载了一些我没能下载到的 latex 软件包。它运行正常。今天它也能正常工作。但突然间我开始收到此错误:

pdflatex: A MiKTeX configuration file could not be loaded.
pdflatex: Data: error="invalid value definition", file="/home/user/.miktex/texmfs/config/miktex/config/miktex.ini", line="6"

Segmentation fault (core dumped)

现在它甚至无法编译空的基本 tex 文件。当我尝试删除或清除 miktex 时,我收到以下消息:

(Reading database ... 344029 files and directories currently installed.)
Removing miktex (21.6-bionic1) ...
miktexsetup: A MiKTeX configuration file could not be loaded.
miktexsetup: Data: error="invalid value definition", file="/home/user/.miktex/texmfs/config/miktex/config/miktex.ini", line="6"
dpkg: error processing package miktex (--remove):
 installed miktex package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 miktex
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我尝试时,sudo apt-get update 我得到:

N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository
 'http://miktex.org/download/ubuntu bionic InRelease' doesn't support architecture 'i386'

请帮我解决这个问题。

编辑1: sudo apt-get install -f也不起作用。

编辑2:文件内容/home/user/.miktex/texmfs/config/miktex/config/miktex.ini如下:

;;; DO NOT EDIT THIS FILE!


[MPM]
AuthToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJNUE0vNC4zIiwianRpIjoiNmY1ZWQ2NzYtM2Y0ZC00ZjZjLWE1YTUtYjQ0ODA3ZGZjODJjIiwiaWF0IjoxNjMwMDk2NzkzLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiTVBNLzQuMyIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IlVzZXIiLCJuYmYiOjE2MzAwOTY3OTIsImV4cCI6MTYzMDA5NzA5MiwiaXNzIjoiTWlLVGVYb3JnQVBJIiwiYXVkIjoiTWlLVGVYb3JnQVBJIn0.1PRiYypYf1rCoi0HMFEuthyWi8RIB1axRNadgabvIgQ
nQVBJIn0.R4v3h9AG2DINggjnRakKJmCL56AFH3xTfNIs1W9hknY
AuthTokenNotValidAfter=1630097092
AutoInstall=1
LastUserUpdate=1630028723
LastUserUpdateCheck=1630027827
LastUserUpdateDb=1630027827

[Setup]
LastUserDiagnose=1630027828

相关内容