无法在 Ubuntu 18.10 + WSL 上安装 texlive-full

无法在 Ubuntu 18.10 + WSL 上安装 texlive-full

我想使用 WSL 在 Windows 10 RS3 上使用 Ubuntu 18.04 安装 texlive-full。这是一个干净的系统,没有任何额外的存储库。安装失败,如下所示:

$ sudo apt install texlive 
....
Errors were encountered while processing:
 /var/cache/apt/archives/texlive-fonts-extra_2015.20160320-1_all.deb
 /var/cache/apt/archives/texlive-fonts-extra-doc_2015.20160320-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

因此,我再次尝试检查错误信息

$ sudo apt install texlive-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-full is already the newest version (2015.20160320-1ubuntu0.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 texlive-full : Depends: texlive-fonts-extra-doc (>= 2015) but it is not going to be installed
                Depends: texlive-fonts-extra (>= 2015) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

然后按照工具的建议进行apt-get -f install修复。但是,该命令并没有解决问题

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  texlive-fonts-extra texlive-fonts-extra-doc
The following NEW packages will be installed:
  texlive-fonts-extra texlive-fonts-extra-doc
0 upgraded, 2 newly installed, 0 to remove and 38 not upgraded.
240 not fully installed or removed.
Need to get 0 B/303 MB of archives.
After this operation, 746 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 150355 files and directories currently installed.)
Preparing to unpack .../texlive-fonts-extra-doc_2015.20160320-1_all.deb ...
Unpacking texlive-fonts-extra-doc (2015.20160320-1) ...
dpkg: error processing archive /var/cache/apt/archives/texlive-fonts-extra-doc_2015.20160320-1_all.deb (--unpack):
 unable to create '/usr/share/doc/texlive-doc/fonts/electrum/manifest.txt.gz.dpkg-new' (while processing './usr/share/doc/texlive-doc/fonts/electrum/manifest.txt.gz'): Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../texlive-fonts-extra_2015.20160320-1_all.deb ...
Unpacking texlive-fonts-extra (2015.20160320-1) ...
dpkg: error processing archive /var/cache/apt/archives/texlive-fonts-extra_2015.20160320-1_all.deb (--unpack):
 unable to create '/usr/share/texlive/texmf-dist/tex/latex/electrum/ts1yes1.fd.dpkg-new' (while processing './usr/share/texlive/texmf-dist/tex/latex/electrum/ts1yes1.fd'): Permission denied
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/texlive-fonts-extra-doc_2015.20160320-1_all.deb
 /var/cache/apt/archives/texlive-fonts-extra_2015.20160320-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

根据错误信息(在所有这些输出中,无法创建文件消息)似乎存在权限问题,但我不知道如何修复它。有什么想法吗?

现在,每当我尝试通过 apt 安装任何东西时,它都会抱怨我必须修复这个依赖关系,但我不能。

相关内容