我想在 ubuntu 上卸载 texlive 并使用,apt remove texlive但仍然找到了一些程序,/usr/bin/latex所以我手动删除了它(rm)。当我重新安装 texlive 时apt install texlive,/usr/bin/latex文件没有恢复。
您可以查看您删除的文件属于哪个安装包
dpkg -S /usr/bin/latex
Run Code Online (Sandbox Code Playgroud)
然后重新安装该软件包(可能是texlive-latex-base)
sudo apt install --reinstall texlive-latex-base
Run Code Online (Sandbox Code Playgroud)