简体   繁体   English

E: 无法定位 package ea-utils | Ubuntu 18.04

[英]E: Unable to locate package ea-utils | Ubuntu 18.04

I am following this tutorial .我正在关注本教程 I already have .fastq files.我已经有.fastq文件。 I want to install ea-utils .我想安装ea-utils

My setup is Ubuntu 18.04 bionic , via Oracle VM Virtual Box .我的设置是Ubuntu 18.04 bionic ,通过Oracle VM Virtual Box

In terminal , I entered the command:terminal中,我输入了命令:

>>>sudo apt install ea-utils
E: Unable to locate package ea-utils

First, I installed latest Ubuntu updates via.首先,我通过安装最新Ubuntu更新。 Software Updater . Software Updater

Then,然后,

>>>sudo apt-get update
E: Some index files failed to download. They have been ignored, or old ones used instead.

Still throwing an error:仍然抛出错误:

>>>sudo apt-get install ea-utils
Second command said: E: Unable to locate package ea-utils.

You cannot install it using Git-Bash.您无法使用 Git-Bash 安装它。 Git-Bash is not a Linux environment (apt-get is a Linux utility that can be used in a Linux environment). Git-Bash 不是 Linux 环境(apt-get 是一个 Linux 实用程序,可用于 Linux 环境)。 Git-Bash is a subset of the MSYS (or MSYS2, not sure) collection of open source tools compiled for Windows Git-Bash 是为 Windows 编译的开源工具 MSYS(或 MSYS2,不确定)集合的子集

What you can try is你可以尝试的是

  1. build your own version of ea-utils for Windows.为 Windows 构建您自己的ea-utils版本。 build guide - I will elaborate if required 构建指南- 如果需要,我会详细说明
  2. check if there are any precompiled binaries for it检查是否有任何预编译的二进制文件

Expanding on building/compiling your own binaries of programs扩展构建/编译您自己的程序二进制文件

  1. Normally a program is written in a programming language (eg C/C++, Java) that humans can read.通常,程序是用人类可以阅读的编程语言(例如 C/C++、Java)编写的。 These are plain text files.这些是纯文本文件。
  2. That is compiled into something computers can read编译成计算机可以读取的东西
  3. This compiled file is executable on the platform which it is compiled for - ends in .exe for Windows此编译文件在编译它的平台上执行 - 以 Windows 的.exe结尾
  4. This executable file is distributed as a 'precompiled binary' that is copied into (usually) C:\Program Files by the installation procedure此可执行文件作为“预编译二进制文件”分发,通过安装过程复制到(通常) C:\Program Files

But things change in the world of open source software但是开源软件的世界发生了变化

  1. You are given the original files of code written in a programming language您将获得以编程语言编写的原始代码文件
  2. You use a compiler combined with other libraries to compile it into an executable file您使用与其他结合的编译器将其编译为可执行文件
  3. MinGW is a collection of tools, including the C/C++ compiler for Windows MinGW 是一组工具,包括用于 Windows 的 C/C++ 编译器
  4. GSL is a library that provides some other code that ea-utils depends on for the compilation of the binaries GSL是一个库,它提供了一些其他代码,ea-utils 依赖于这些代码来编译二进制文件

General instructions for building建筑的一般说明

(Sorry I cannot test these. I do not use Windows any more) (对不起,我无法测试这些。我不再使用 Windows)

  1. Install MinGW - accepting the defaults should work fine安装MinGW - 接受默认值应该可以正常工作
  2. Install GSL - try the link that says Setup (again, accept defaults)安装GSL - 尝试显示设置的链接(再次,接受默认值)
  3. Unzip the file you downloaded earlier from ea-utils' GitHub解压您之前从 ea-utils 的 GitHub 下载的文件
  4. Open command prompt打开命令提示符
  5. cd into the unzipped folder cd进入解压后的文件夹
  6. (based on instructions on their wiki) make (根据他们 wiki 上的make
  7. make test

Since your updated question is based on using Ubuntu 18.04 in a VM and you there is still an error, I suggest trying由于您更新的问题是基于在 VM 中使用 Ubuntu 18.04 并且您仍然存在错误,我建议尝试

sudo apt-get update
sudo apt-get install ea-utils

Commonly, software in the Linux word is distributed as "packages" - eg ea-utils .通常,Linux 字中的软件作为“包”分发 - 例如ea-utils The first command contacts Ubuntu's repositories (they serve the packages) and generates a list of all the available packages.第一个命令联系 Ubuntu 的存储库(它们为软件包提供服务)并生成所有可用软件包的列表。

That should fix the error of ea-utils not being found.应该可以解决找不到ea-utils的错误。


Following the constant errors being thrown, Download the.deb file 64-bit version or 32-bit version according to the virtual machine you are running.在不断抛出错误之后,根据您正在运行的虚拟机下载64 位版本32 位版本的 .deb 文件。 Open it inside the virtual machine, and follow the onscreen instructions.在虚拟机中打开它,然后按照屏幕上的说明进行操作。


声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM