2017-08-26 327 views
1

尝试在MobaXterm中安装Python时,在本地存储库中找不到两个软件包。我发现其中至少有一个在外部存储库中,我想我的终端配置为使用的示例目录树中指定的一个之外的另一个库如下:在mobaxterm apt-get会话中缺少软件包

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

我找到了一个解决方法 - 希望。本质上,存储库上的setup.ini文件引用了该存储库上实际不存在的包的版本。阅读完毕后易于得到我才知道,我可以通过一个传统的标志,以获得包安装了早期版本:

[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文件指向不存在的版本。