W:无法获取http://repo.mongodb.org/apt/ubuntu/dists/freya/mongodb-org/3.0/multiverse/binary-amd64/Packages 404 Not Found

时间:2016-02-28 22:48:04

标签: mongodb ubuntu

我正在使用小学os freya。我正在尝试按照this指南安装MongoDB。

我添加了GPG密钥

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".fragments.PlacesCategoriesAdmin"
android:weightSum="1"
android:id="@+id/places_search">

<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/buttonGPS" />

<EditText
    android:layout_width="357dp"
    android:layout_height="wrap_content"
    android:id="@+id/searchFieldCatPlace"
    android:hint="@string/search_place_cat"
    android:layout_margin="10dp"
    android:imeOptions="actionSearch"
    android:inputType="text"
    />

<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/search_button"
    android:id="@+id/search_place_gps" />

<TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/result_count_text"
    android:padding="10dp"
    android:layout_margin="10dp"
    android:text="@string/result_text"
    android:textSize="20sp"
    android:textAlignment="center"/>


<ListView
    android:layout_width="wrap_content"
    android:layout_height="0dp"
    android:layout_weight="1"
    android:id="@+id/listview_category_place">


</ListView>

按照创建列表文件

的下一步骤进行操作
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

当我运行echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list 时。我有以下错误:

sudo-apt-update

1 个答案:

答案 0 :(得分:2)

freya不是ubuntu的发布名称 而不是$(lsb_release -sc)尝试信任 这是用于freya的ubuntu发行版的名称