如何在 Ubuntu 12.10 上安装 Riak?

如何在 Ubuntu 12.10 上安装 Riak?

有人能从包riak中安装吗basho?我按照此处指定的说明进行操作并且正在403 禁止更新期间出错:

erturne@node10:~$ curl http://apt.basho.com/gpg/basho.apt.key | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1016  100  1016    0     0   4256      0 --:--:-- --:--:-- --:--:-- 13546
OK
erturne@node10:~$ sudo bash -c "echo deb http://apt.basho.com $(lsb_release -sc) main > /etc/apt/sources.list.d/basho.list"
erturne@node10:~$ sudo apt-get update
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://us.archive.ubuntu.com quantal InRelease
Ign http://apt.basho.com quantal InRelease     
Ign http://apt.basho.com quantal Release.gpg   
Hit http://security.ubuntu.com quantal-security Release.gpg
Ign http://us.archive.ubuntu.com quantal-updates InRelease
Ign http://apt.basho.com quantal Release       
Hit http://security.ubuntu.com quantal-security Release
Ign http://us.archive.ubuntu.com quantal-backports InRelease
Hit http://us.archive.ubuntu.com quantal Release.gpg                  
Hit http://security.ubuntu.com quantal-security/main Sources
Hit http://us.archive.ubuntu.com quantal-updates Release.gpg
Hit http://security.ubuntu.com quantal-security/restricted Sources
Hit http://us.archive.ubuntu.com quantal-backports Release.gpg
Hit http://security.ubuntu.com quantal-security/universe Sources
Hit http://us.archive.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security/multiverse Sources                          
Hit http://us.archive.ubuntu.com quantal-updates Release             
Hit http://security.ubuntu.com quantal-security/main i386 Packages                          
Hit http://us.archive.ubuntu.com quantal-backports Release           
Hit http://security.ubuntu.com quantal-security/restricted i386 Packages                    
Hit http://us.archive.ubuntu.com quantal/main Sources                
Hit http://security.ubuntu.com quantal-security/universe i386 Packages
Hit http://us.archive.ubuntu.com quantal/restricted Sources
Hit http://security.ubuntu.com quantal-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com quantal/universe Sources
Hit http://us.archive.ubuntu.com quantal/multiverse Sources
Hit http://security.ubuntu.com quantal-security/main Translation-en  
Err http://apt.basho.com quantal/main i386 Packages                  
  403  Forbidden
Hit http://us.archive.ubuntu.com quantal/main i386 Packages
Hit http://us.archive.ubuntu.com quantal/restricted i386 Packages
Ign http://apt.basho.com quantal/main Translation-en_US
Hit http://security.ubuntu.com quantal-security/multiverse Translation-en
Ign http://apt.basho.com quantal/main Translation-en
Hit http://us.archive.ubuntu.com quantal/universe i386 Packages
Hit http://us.archive.ubuntu.com quantal/multiverse i386 Packages
Hit http://security.ubuntu.com quantal-security/restricted Translation-en
Hit http://us.archive.ubuntu.com quantal/main Translation-en
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://us.archive.ubuntu.com quantal/multiverse Translation-en
Hit http://us.archive.ubuntu.com quantal/restricted Translation-en
Hit http://us.archive.ubuntu.com quantal/universe Translation-en
Hit http://us.archive.ubuntu.com quantal-updates/main Sources
Hit http://us.archive.ubuntu.com quantal-updates/restricted Sources
Hit http://us.archive.ubuntu.com quantal-updates/universe Sources
Hit http://us.archive.ubuntu.com quantal-updates/multiverse Sources
Hit http://us.archive.ubuntu.com quantal-updates/main i386 Packages
Hit http://us.archive.ubuntu.com quantal-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com quantal-updates/universe i386 Packages
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Hit http://us.archive.ubuntu.com quantal-updates/multiverse i386 Packages
Ign http://security.ubuntu.com quantal-security/multiverse Translation-en_US
Ign http://security.ubuntu.com quantal-security/restricted Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Hit http://us.archive.ubuntu.com quantal-updates/main Translation-en
Hit http://us.archive.ubuntu.com quantal-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com quantal-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com quantal-updates/universe Translation-en
Hit http://us.archive.ubuntu.com quantal-backports/main Sources
Hit http://us.archive.ubuntu.com quantal-backports/restricted Sources
Hit http://us.archive.ubuntu.com quantal-backports/universe Sources
Hit http://us.archive.ubuntu.com quantal-backports/multiverse Sources
Hit http://us.archive.ubuntu.com quantal-backports/main i386 Packages
Hit http://us.archive.ubuntu.com quantal-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com quantal-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com quantal-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com quantal-backports/main Translation-en
Hit http://us.archive.ubuntu.com quantal-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com quantal-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com quantal-backports/universe Translation-en
Ign http://us.archive.ubuntu.com quantal/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/universe Translation-en_US
W: Failed to fetch http://apt.basho.com/dists/quantal/main/binary-i386/Packages  403  Forbidden

E: Some index files failed to download. They have been ignored, or old ones used instead.
erturne@node10:~$ sudo apt-get install riak
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package riak

答案1

Basho Apt 存储库不提供 Quantal (12.10) 的软件包,因此它返回403 禁止错误。您可以通过以下方式验证http://apt.basho.com/dists,正如您所见,的目录quantal不存在。

Basho Apt 存储库

因此,您面前的最佳选择是从源代码安装 Riak。按照其官方网站上提到的说明进行操作。

我在这里为您总结了安装说明。打开您的终端(Ctrl++ )。然后按照以下步骤操作AltT

  1. 安装 Riak 的依赖项:

    sudo apt-get install build-essential libc6-dev-i386 git
    
  2. 从源代码安装 Erlang

    • 获取必要的开发库:

      sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
      
    • 下载并构建 Erlang:

      wget http://erlang.org/download/otp_src_R15B01.tar.gz
      tar zxvf otp_src_R15B01.tar.gz
      cd otp_src_R15B01
      ./configure && make && sudo make install
      
  3. 下载并安装 Riak:

    wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.3/1.3.0/riak-1.3.0.tar.gz
    tar zxvf riak-1.3.0.tar.gz
    cd riak-1.3.0
    make rel
    
  4. 如果构建成功,rel/riak目录中将存在 Riak 的全新构建。

答案2

Aditya 的答案很好,但如果您确实想要一个包,您可以构建自己的 .deb 并使用 dpkg 安装它。首先按照 Aditya 的说明获取依赖项(例如 erlang)。然后:

  1. 克隆 riak 源代码

    git clone git://github.com/basho/riak.git
    
  2. 建造

    cd riak
    make package RELEASE=1
    
  3. 安装

    sudo dpkg -i package/packages/riak_1.3.0rc2-f87560a7-1_i386.deb
    

您的.deb 文件的名称可能与我的不同。

相关内容