diff options
author | Karl Berry <karl@freefriends.org> | 2020-11-01 21:58:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-11-01 21:58:40 +0000 |
commit | 90726391b6dff18490f2031c62c3f0d13f01e665 (patch) | |
tree | b08c552b23fb85bcb1cf268effdea6caa8bd0742 /Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex | |
parent | a57cb9b59c62dd3cf8f6824616c29dc7e39af503 (diff) |
install-latex-guide-zh-cn (1nov20)
git-svn-id: svn://tug.org/texlive/trunk@56831 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex index a44e8620565..9de836c4918 100644 --- a/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex +++ b/Master/texmf-dist/doc/latex/install-latex-guide-zh-cn/chapter/editor.tex @@ -359,6 +359,31 @@ Windows 10 中字体列表见% sudo apt-get update sudo apt-get install texstudio \end{lstlisting} +鉴于网络原因, +直接从 PPA 下载容易丢包. +这里介绍中科大的\href{https://lug.ustc.edu.cn/wiki/mirrors/help/revproxy/}{反向镜像}, +将 +\begin{lstlisting}[language = bash] + /etc/apt/sources.list.d/ +\end{lstlisting} +中文件的内容 +\begin{lstlisting} + http(s)://ppa.launchpad.net +\end{lstlisting} +改为 +\begin{lstlisting} + https://launchpad.proxy.ustclug.org +\end{lstlisting} +而后再 +\begin{lstlisting}[language = bash] + sudo apt update +\end{lstlisting} +即完成换源. +有时地址太多而逐个换太麻烦, +可以直接使用如下命令直接替换\footnote{参见 \url{https://mogeko.me/2018/035/}} +\begin{lstlisting}[language = bash] + sudo find /etc/apt/sources.list.d/ -type f -name "*.list" -exec sed -i.bak -r 's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} \; +\end{lstlisting} 安装完毕后, 用户可以在 \textsf{Terminal} 中执行 |