gpt4 book ai didi

linux - Ubuntu 15.04下安装MongoDB时无法正常执行 "apt-get update"

转载 作者:太空宇宙 更新时间:2023-11-04 04:35:42 26 4
gpt4 key购买 nike

我正在尝试在我的 Ubuntu 15.04 下安装 MongoDB,我完成了这些步骤:

  1. 导入 MongoDB 公共(public) GPG key :

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

  2. 创建/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

  3. 现在,当尝试执行 apt-get update 时,我收到此错误:

Atteint http://security.ubuntu.com vivid-security InRelease Réception de : 1 http://repo.mongodb.org wheezy/mongodb-org/3.0 InRelease
79% [1 InRelease gpgv 109 B] [Attente des fichiers d'en-tête] [Attente des ficSplitting up /var/lib/apt/lists/partial/repo.mongodb.org_apt_debian_dists_wheezy_mIgn http://repo.mongodb.org wheezy/mongodb-org/3.0 InRelease
E: Erreur de GPG : http://repo.mongodb.org wheezy/mongodb-org/3.0 InRelease : Le fichier signé en clair n'est pas valable, ce qui a été reçu est « NODATA ». Peut-être le réseau nécessite-t-il une authentification.

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

# 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

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

最佳答案

尝试,

sudo apt-get update

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

关于linux - Ubuntu 15.04下安装MongoDB时无法正常执行 "apt-get update",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44423119/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com