我正在使用小学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
答案 0 :(得分:2)
freya不是ubuntu的发布名称 而不是$(lsb_release -sc)尝试信任 这是用于freya的ubuntu发行版的名称