当前位置: 首页 > 知识库问答 >
问题:

在Ubuntu 15.04下安装MongoDB时无法正确执行“apt-get更新”

苏宾鸿
2023-03-14

我试图在我的Ubuntu15.04下面安装MongoDB,我完成了以下步骤:

创建/etc/apt/sources.list.d/mongodb-org-3.0.list列表文件,从debian wheezy存储库获取包

echo“deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main”sudo tee/etc/apt/sources.list.d/mongodb-org-3.0.list

现在,在尝试执行apt-get update时,我出现了以下错误:

我检查了我的源文件,其中包含以下内容:

# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://tn.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://tn.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://tn.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid universe
deb http://tn.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://tn.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://tn.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://tn.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://tn.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner

deb http://archive.canonical.com/ vivid partner
# deb-src http://archive.canonical.com/ utopic partner

由于我还不知道问题的来源,以及如何解决它,有什么建议吗??

共有1个答案

章宏恺
2023-03-14

试试看,

sudo apt-get update

您现在正在以管理的身份运行该命令,因此它可能会有所帮助。

 类似资料:
  • 我使用Ubuntu 14.04和尝试安装Trac批处理修改以下命令: 但会出现以下错误: 阅读包裹清单。。。已完成构建依赖关系树 读取状态信息。。。已完成E:找不到包trac batchmodify 是否有任何理由不通过apt get提供此软件包?

  • 我安装了ubuntu 14.04虚拟机并运行docker(1.11.2)。我尝试构建示例映像(这里)。 Docker文件: 我发现以下错误: 我尝试过以下解决方案,但没有成功。 > 我是码头工人 以apt get-qq-y安装curl运行:相同错误:( 如何查看详细的错误消息?a有办法解决这个问题吗?

  • 我正在尝试使用以下说明安装JavaJDK 8: 但我在运行最后一个命令时得到了404: 连接到download.oracle.com(download.oracle.com)|95.101.180.41|: 80...已连接。发送HTTP请求,等待响应...404未找到2017-10-18 10:33:03错误404:未找到。 下载失败 这些问题发生了多少天了?对于Java安装程序来说,404是很

  • W:存储库“http://deb.debian.org/debian 拉伸发布”没有发布文件。 W:存储库http://deb.debian.org/debian拉伸更新版本没有发布文件。 E:无法获取http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages404未找到 E:无法获取http://cdn-fastly

  • 已从deb软件包安装docker1.6,但在运行时出现问题: sudo docker版本客户端版本: 1.6.2客户端API版本: 1.18 Go版本(客户端): go1.4.2 Git提交(客户端): 7c8fca2 OS/Arch(客户端): linux/amd64 FATA[0000]获取超文本传输协议:///var/run/docker.sock/v1.18/version:拨号unix

  • 无法完成安装,因为找不到一个或多个必需的项目。 正在安装的软件:M2E-Maven Integration for Eclipse(包括孵化组件)1.6.1.20150625-2338(org.Eclipse.m2e.feature.feature.group 1.6.1.20150625-2338)缺少要求:Maven Integration for Eclipse 1.6.0.20150526