尝试在MobaXterm中安装Python时,在本地存储库中找不到两个包。我在外部存储库中找到了至少一个,我想将我的终端配置为使用示例目录树中指示的另一个存储库,如下所示:
http://mirrors.kernel.org/sourceware/cygwin/release/cygwin-devel
或者我想将软件包版本更改为此位置中存在的版本,但后来我担心软件包版本问题。
或者第三种选择是下载我在其他位置找到的软件包,并使用我用来安装其他Python软件包的相同终端进行安装。
以下是包含问题的两个软件包:
Installing cygwin-devel
Downloading cygwin-devel-2.7.0-1.tar.xz...
Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin/release/cygwin-devel/cygwin-devel-2.7.0-1.tar.xz using Windows internet settings
sha512sum: can't open 'cygwin-devel-2.7.0-1.tar.xz': No such file or directory
/bin/apt-cyg: line 476: test: 8f382e85417a4efa951607776be66cf91381e4075bcc4458da40141951305675faff4890bd2723de91483725c5d5bd726128355a2de41a0c743428b2829fe48c: unary operator expected
md5sum: can't open 'cygwin-devel-2.7.0-1.tar.xz': No such file or directory
/bin/apt-cyg: line 479: test: 8f382e85417a4efa951607776be66cf91381e4075bcc4458da40141951305675faff4890bd2723de91483725c5d5bd726128355a2de41a0c743428b2829fe48c: unary operator expected
Checksum did not match, exiting
Installing libexpat1
Downloading libexpat1-2.2.0-0.tar.xz...
Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin/release/libexpat1/libexpat1-2.2.0-0.tar.xz using Windows internet settings
sha512sum: can't open 'libexpat1-2.2.0-0.tar.xz': No such file or directory
/bin/apt-cyg: line 476: test: a39f95f129fc7abe1e22f71925844dac0160f7c536f01bb8e5cc1f9b23f19266dd95e633a4e44d6b4ad792aa25c2a69b473dd06400ef4e7dab02e88877020455: unary operator expected
md5sum: can't open 'libexpat1-2.2.0-0.tar.xz': No such file or directory
/bin/apt-cyg: line 479: test: a39f95f129fc7abe1e22f71925844dac0160f7c536f01bb8e5cc1f9b23f19266dd95e633a4e44d6b4ad792aa25c2a69b473dd06400ef4e7dab02e88877020455: unary operator expected
Checksum did not match, exiting
提前感谢任何可能导致我解决此问题并获得干净的Python安装的见解。
答案 0 :(得分:0)
我找到了一个解决方法 - 希望如此。实质上,存储库上的setup.ini文件引用了该存储库中实际不存在的软件包的版本。在阅读了apt-get之后,我了解到我可以通过传统标志来安装早期版本的软件包:
[micro.MSI] ➤ apt-get install --legacy libexpat1
Found package libexpat1
Installing libexpat1
Downloading libexpat1-2.2.0-0.tar.xz...
Unpacking libexpat1-2.2.0-0.tar.xz...
Extracting dependencies for usr/bin/cygexpat-1.dll...
Package libexpat1 requires the following packages, installing cygwin
Package cygwin is already installed, skipping
Package libexpat1 installed.
Rebasing new libraries
这可能会引入版本问题,但依赖已经存在,因为它应该是因为它安装在早期的python安装中。现在我可以看看是否可以为我的项目安装其他模块。
如果其他人对此软件包管理问题有任何建议,请插入。我想知道是否应该通知源存储库所有者他们的setup.ini文件指向不存在的版本。