Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Has anyone been able to install riak from the basho package? I'm following the instructions specified here and am getting 403 Forbidden errors during update:

erturne@node10:~$ curl | 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
erturne@node10:~$ sudo bash -c "echo deb $(lsb_release -sc) main > /etc/apt/sources.list.d/basho.list"
erturne@node10:~$ sudo apt-get update
Ign quantal-security InRelease
Ign quantal InRelease
Ign quantal InRelease     
Ign quantal Release.gpg   
Hit quantal-security Release.gpg
Ign quantal-updates InRelease
Ign quantal Release       
Hit quantal-security Release
Ign quantal-backports InRelease
Hit quantal Release.gpg                  
Hit quantal-security/main Sources
Hit quantal-updates Release.gpg
Hit quantal-security/restricted Sources
Hit quantal-backports Release.gpg
Hit quantal-security/universe Sources
Hit quantal Release
Hit quantal-security/multiverse Sources                          
Hit quantal-updates Release             
Hit quantal-security/main i386 Packages                          
Hit quantal-backports Release           
Hit quantal-security/restricted i386 Packages                    
Hit quantal/main Sources                
Hit quantal-security/universe i386 Packages
Hit quantal/restricted Sources
Hit quantal-security/multiverse i386 Packages
Hit quantal/universe Sources
Hit quantal/multiverse Sources
Hit quantal-security/main Translation-en  
Err quantal/main i386 Packages                  
  403  Forbidden
Hit quantal/main i386 Packages
Hit quantal/restricted i386 Packages
Ign quantal/main Translation-en_US
Hit quantal-security/multiverse Translation-en
Ign quantal/main Translation-en
Hit quantal/universe i386 Packages
Hit quantal/multiverse i386 Packages
Hit quantal-security/restricted Translation-en
Hit quantal/main Translation-en
Hit quantal-security/universe Translation-en
Hit quantal/multiverse Translation-en
Hit quantal/restricted Translation-en
Hit quantal/universe Translation-en
Hit quantal-updates/main Sources
Hit quantal-updates/restricted Sources
Hit quantal-updates/universe Sources
Hit quantal-updates/multiverse Sources
Hit quantal-updates/main i386 Packages
Hit quantal-updates/restricted i386 Packages
Hit quantal-updates/universe i386 Packages
Ign quantal-security/main Translation-en_US
Hit quantal-updates/multiverse i386 Packages
Ign quantal-security/multiverse Translation-en_US
Ign quantal-security/restricted Translation-en_US
Ign quantal-security/universe Translation-en_US
Hit quantal-updates/main Translation-en
Hit quantal-updates/multiverse Translation-en
Hit quantal-updates/restricted Translation-en
Hit quantal-updates/universe Translation-en
Hit quantal-backports/main Sources
Hit quantal-backports/restricted Sources
Hit quantal-backports/universe Sources
Hit quantal-backports/multiverse Sources
Hit quantal-backports/main i386 Packages
Hit quantal-backports/restricted i386 Packages
Hit quantal-backports/universe i386 Packages
Hit quantal-backports/multiverse i386 Packages
Hit quantal-backports/main Translation-en
Hit quantal-backports/multiverse Translation-en
Hit quantal-backports/restricted Translation-en
Hit quantal-backports/universe Translation-en
Ign quantal/main Translation-en_US
Ign quantal/multiverse Translation-en_US
Ign quantal/restricted Translation-en_US
Ign quantal/universe Translation-en_US
Ign quantal-updates/main Translation-en_US
Ign quantal-updates/multiverse Translation-en_US
Ign quantal-updates/restricted Translation-en_US
Ign quantal-updates/universe Translation-en_US
Ign quantal-backports/main Translation-en_US
Ign quantal-backports/multiverse Translation-en_US
Ign quantal-backports/restricted Translation-en_US
Ign quantal-backports/universe Translation-en_US
W: Failed to fetch  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
share|improve this question

2 Answers 2

up vote 2 down vote accepted

Aditya's answer is good, but if you really want a package you can build your own .deb and install it using dpkg. Start by following Aditya's instructions for getting dependencies (e.g. erlang). Then:

  1. Clone the riak source code

    git clone git://
  2. Build

    cd riak
    make package RELEASE=1
  3. Install

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

The name of your .deb file will probably be different than mine.

share|improve this answer

The Basho Apt Repository doesn't provide packages for Quantal (12.10) and hence it is returning 403 Forbidden Errors. You can verify it by going to, as you can see that the directory for quantal is not present.

Basho Apt Repository

So, the best option before you is to install Riak from Source. Follow the instructions mentioned on their Official Website.

I am summarizing the installation instructions for you here. Open your Terminal (Ctrl + Alt + T). Then follow as below:

  1. Install dependencies for Riak:

    sudo apt-get install build-essential libc6-dev-i386 git
  2. Install Erlang from Source:

    • Get the necessary development libraries:

      sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
    • Download and build Erlang:

      tar zxvf otp_src_R15B01.tar.gz
      cd otp_src_R15B01
      ./configure && make && sudo make install
  3. Download and install Riak:

    tar zxvf riak-1.3.0.tar.gz
    cd riak-1.3.0
    make rel
  4. If the build was successful, a fresh build of Riak will exist in the rel/riak directory.

share|improve this answer
Building from source is not the problem. I'd like to be able to install a package because it simplifies installing riak via Puppet on all the nodes of my cluster. – erturne Mar 10 '13 at 0:50
On the instructions it says that for non LTS releases it's safe to use the same instructions as the previous LTS release. So this should be possible? – giovannibotta Mar 4 '14 at 18:24
@giovannibotta Yes.. You should be able to build from source without any problems. – Aditya Mar 4 '14 at 18:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.