我texlive2017-20170524.iso
已从http://muug.ca/mirror/ctan/systems/texlive/Images/下载。
并尝试使用“使用存档安装程序打开”(通过右键单击它)和“使用 --> 磁盘映像安装程序打开”来安装它
他们都成功地安装了。
当我cd
到安装位置并运行./install-tl
(也尝试过./install-tl
)时,它给了我这个错误:
TeXLive/TLUtils.pm did not return a true value at ./install-tl line 54.
BEGIN failed--compilation aborted at ./install-tl line 54.
这是前 60 行install-tl
#!/usr/bin/env perl
# $Id: install-tl 44407 2017-05-18 21:25:39Z karl $
#
# Copyright 2007-2017
# Reinhard Kotucha, Norbert Preining, Karl Berry, Siep Kroonenberg.
# This file is licensed under the GNU General Public License version 2
# or any later version.
#
# Be careful when changing wording: *every* normal informational message
# output here must be recognized by the long grep in tl-update-tlnet.
#
# TODO:
# - with -gui pop up a transient window showing:
# testing for compressed archive packages ...
# testing for uncompressed live system ...
# testing for network access ...
# loading tlpdb, this can take some time ...
# (that, and maybe some others can be done with the waitVariableX
# thingy as described in the Perl/Tk book in the chapter that can be
# found on the net) (Werner 28.10.08)
my $svnrev = '$Revision: 44407 $';
$svnrev =~ m/: ([0-9]+) /;
$::installerrevision = ($1 ? $1 : 'unknown');
# taken from 00texlive.config: release, $tlpdb->config_release;
our $texlive_release;
BEGIN {
$^W = 1;
my $Master;
my $me = $0;
$me =~ s!\\!/!g if $^O =~ /^MSWin/i;
if ($me =~ m!/!) {
($Master = $me) =~ s!(.*)/[^/]*$!$1!;
} else {
$Master = ".";
}
$::installerdir = $Master;
# All platforms: add the installer modules
unshift (@INC, "$::installerdir/tlpkg");
}
use Cwd 'abs_path';
use Getopt::Long qw(:config no_autoabbrev);
use Pod::Usage;
use POSIX ();
use TeXLive::TLUtils qw(platform platform_desc sort_archs
which getenv win32 unix info log debug tlwarn ddebug tldie
member process_logging_options rmtree wsystem
mkdirhier make_var_skeleton make_local_skeleton install_package copy
install_packages dirname setup_programs native_slashify forward_slashify);
use TeXLive::TLPOBJ;
use TeXLive::TLPDB;
use TeXLive::TLConfig;
use TeXLive::TLCrypto;
use TeXLive::TLDownload;
use TeXLive::TLPaper;
我还尝试将内容复制到我的硬盘驱动器(因此它不再是 ISO 格式),因为在直接从 ISO 运行应用程序之前我遇到了问题。它仍然给我上述错误。
问题:如何使用 将 TeXLive 安装到我的系统texlive2017-20170524.iso
?
(我宁愿使用离线安装程序而不是sudo apt-get install texlive
)
这是我在终端上看到的:
Me@Computer:~/Desktop$ cd ~/Desktop
Me@Computer:~/Desktop$ mkdir mountpoint
Me@Computer:~/Desktop$ sudo mount -o loop texlive2017-20170524.iso mountpoint
[sudo] password for Me:
mount: /dev/loop0 is write-protected, mounting read-only
Me@Computer:~/Desktop$ cd mountpoint/
Me@Computer:~/Desktop/mountpoint$ ./install-tl
TeXLive/TLUtils.pm did not return a true value at ./install-tl line 54.
BEGIN failed--compilation aborted at ./install-tl line 54.
Me@Computer:~/Desktop/mountpoint$
我相信这个问题是一个XY 问题:您的最终目标是离线安装
texlive
,并且不需要从 ISO 而不是其他替代方案进行安装。如果是这种情况,那么您可以考虑获取
deb
文件texlive
及其依赖项,而不是 ISO。这应该简化安装并消除您在问题中的问题。您可以通过在系统上运行以下命令来获取 URL 和 MD5 总和
texlive
及其依赖项的列表:这将生成一个文件
packages.info
,其中包含要下载的 URL 及其 MD5 和。最好让您的朋友在下载后也验证 MD5 和。获得
deb
文件后,您可以使用它们进行安装,dpkg -i *.deb
并且应该很好。话虽如此,正如@fkraiem 在评论中指出的那样,使用
deb
代替 ISO 有一些缺点:事实证明,该文件未正确传输。
我朋友计算机上文件的哈希值(最初下载它的人)具有正确的哈希值。
但是,传输介质上的文件(以及我计算机上的文件)的哈希值相同,但哈希值不正确。